Forums | Mahara Community

Support /
changing words in the languagepack


08 June 2021, 20:47

I would like to change "staff" (in german "Mitarbeiter:in") into "teacher" ("Lehrer:in") .

On way is to edit the languagefiles, but after updateing or resyncing the language the changes would be lost.

Is there a way to make persistant changes to single words in mahara?

 

Ralf Hilgenstock's profile picture
Posts: 160

08 June 2021, 22:02

Hello Andreas

this may make sense if only schools would use Mahara. What shall we do with universities, adult education institutions, corporates, NGOs, govs?

In the logic of Mahara staff are people who organize. This are not only teachers but often people from administration: staff.

 

Ralf

 

 

Robert Lyon's profile picture
Posts: 756

09 June 2021, 9:20

Hello Andreas,

If you are wanting certain language strings overridden for your instance of Mahara you can add them via this way:

Find the language file(s) that the strings belong to, for example if the language string was $string['makestaffintousers'] then the file in the language pack would be in the dataroot's langpacks/de.utf8/lang/de.utf8/admin.php file

So we need to create a local version of the file in our local section of the site's files, eg if you are wanting to override the German version of the language file admin.php you would need to create the following directory htdocs/local/lang/de.utf8/  and put a new admin.php file in there containing only the strings you wanted to override. So the file would contain something like this:

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

$string['makestaffintousers'] = 'Your local translation of the string';

This way when the language pack gets updated you local changes stay untouched

Cheers

Robert

 

Kristina Hoeppner's profile picture
Posts: 4729

23 June 2021, 14:23

Hi Andreas,

You can find information on things that can be localised in Mahara without touching core code on our wiki. It's quite amazing what you can change and keep for yourself and have smoothly running updates and upgrades.

Cheers

Kristina

4 results