Greek translation

This commit is contained in:
Christos Koulaxizis
2017-12-22 14:58:51 +02:00
parent cfc9ce33d6
commit 7f3a08f0c2
2 changed files with 793 additions and 5 deletions

7
customize.dist/messages.js Normal file → Executable file
View File

@@ -8,6 +8,7 @@ var map = {
'pt-br': 'Português do Brasil',
'ro': 'Română',
'zh': '繁體中文',
'el': 'Ελληνικά',
};
var messages = {};
@@ -93,11 +94,7 @@ define(req, function(Util, Default, Language) {
var text = messages[key];
if (typeof(text) === 'string') {
return text.replace(/\{(\d+)\}/g, function (str, p1) {
if (typeof(argArray[p1]) === 'string' || typeof(argArray[p1]) === "number") {
return argArray[p1];
}
console.error("Only strings and numbers can be used in _getKey params!");
return '';
return argArray[p1] || null;
});
} else {
return text;