Set the "pt" language pack as the parent to the "pt_BR" language pack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Medium
|
Unassigned |
Bug Description
See https:/
The Mahara language pack system is set up to allow a language pack to specify a "parent" langpack, which will be used as its fallback for untranslated terms in preference to English. This is a feature we've never used, but basically inherited by porting Moodle's langpack system.
Among our existing langpacks, the only one that could benefit from this is the "pt_BR" Portuguese (Brazil) language pack. There is a much more complete "pt" Portuguese (Portugal) language pack, and it would be great if the pt_BR pack used that as its fallback for untranslated terms.
What needs to happen is this line of code added to the lanfconfig.php file for the pt_BR langpack:
$string[
Unfortunately, I've no idea how to make that happen under our current Launchpad-based translation system. As mentioned on the forum, I suspect I'd have to do it via a bzr push, but I'm clueless at actually using bzr.
Changed in mahara: | |
assignee: | Son Nguyen (ngson2000) → nobody |
Just a note here. The string should actually be:
$string[ 'parentlanguage '] = 'pt.utf8';
Because the result is being retrieved by this line in htdocs/ lib/mahara. php:
$result = get_string_ local(get_ language_ root($parentlan g) . 'lang/', $parentlang . '/' . $section . '.php', $identifier);
So, make sure there is '.utf8' attached.