Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/l10n.js
blob: a0b080803a56720487d288f58965deccb002b960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Localization API


// Change current language setting
__$FC_l10n = Abcd.frTexts;
__$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;
}