Forums | Mahara Community

Support /
Language File


anonymous profile picture
Account deleted
Posts: 7

26 September 2013, 0:32

Hi, I want to change the word 'Student ID' To Teacher ID' and also change 'Official website'. I found the string in the language file in statistics, but changing it did nothing. Is there somewhere else it needs to be changed?

Aaron Wells's profile picture
Posts: 896

27 September 2013, 11:21

Hi Sam,

I believe the language strings in htdocs/lang/en.utf8/statistics.php are only used on admin reporting pages. If you're trying to change those strings on the user profile page, then you want to change the values in htdocs/artefact/internal/lang/en.utf8/artefact.internal.php

And, strictly speaking, you don't actually need to update that file directly. The recommended way to do it (in order to avoid conflicts when upgrading) is to use a local lang file, under your Mahara "local" directory. See https://wiki.mahara.org/index.php/User:Aaronw/Language_strings#Custom_lang_strings_in_.2Flocal

Basically, you'd create a file called htdocs/local/lang/en.utf8/artefact.internal.php . And in that, you'd put this:

<?php
defined('INTERNAL') || die();

$string['studentid'] = 'Teacher ID';
$string['officialwebsite'] = 'Something else";

Cheers,

Aaron

anonymous profile picture
Account deleted
Posts: 7

30 September 2013, 23:55

Thanks Aaron, That's working now for me.

3 results