Feature Requests item #3292408, was opened at 2011-04-24 13:14
Message generated for change (Tracker Item Submitted) made by christian_boltz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937967&aid=3292408&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christian Boltz (christian_boltz)
Assigned to: Nobody/Anonymous (nobody)
Summary: Provide a hook to override or add translations
Initial Comment:
Sometimes people need to override (or add) translations.
Currently this is only possible by editing languages/*, which is a maintenance hell on upgrades.
We should offer a $CONF option to call a PHP function after languages/* to allow overriding translations.
The selected language should be provided as parameter.
Skeleton for the hook function:
function lang_override($LANG, $language) {
if ($language == "de") {
$LANG['whatever'] = 'foo';
}
return $LANG;
}
I chose to hand over $LANG as parameter instead of using "global $LANG" because it avoids global variables, which might be a good idea on our way to move everything in classes ;-)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937967&aid=3292408&group_id=191583
|