Set the "pt" language pack as the parent to the "pt_BR" language pack

Bug #1271010 reported by Aaron Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Unassigned

Bug Description

See https://mahara.org/interaction/forum/topic.php?id=5352&offset=10

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['parentlanguage'] = 'pt';

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.

Revision history for this message
Yuliya Bozhko (yuliya.bozhko) wrote :

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($parentlang) . 'lang/', $parentlang . '/' . $section . '.php', $identifier);

So, make sure there is '.utf8' attached.

Changed in mahara:
assignee: Son Nguyen (ngson2000) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers