blob: 8d6eac7e56b38f62a99f5c1fbf1ee6e3da881d2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Localization API
// Change current language setting
__$FC_l10n = (Abcd.context !== undefined && Abcd.context.lang !== undefined && Abcd.context.lang == "fr" ) ? Abcd.frTexts : Abcd.enTexts;
Abcd.letters = (Abcd.context !== undefined && Abcd.context.lang !== undefined && Abcd.context.lang == "fr" ) ? Abcd.frLetters : Abcd.enLetters;
__$FC_l10n_set = function(texts) {
__$FC_l10n = texts;
Abcd.context.lang = __$FC_l10n[0];
}
// Localization function
__$FC = function(code) {
// Look in array
var value = __$FC_l10n[code];
if (value != undefined)
return value.replace("%27", "'").replace("%22", '"');
return code;
}
|