mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #24356
[Bug 1271010] Re: Set the "pt" language pack as the parent to the "pt_BR" language pack
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.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1271010
Title:
Set the "pt" language pack as the parent to the "pt_BR" language pack
Status in Mahara ePortfolio:
Confirmed
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1271010/+subscriptions
References