diff options
author | Ian Moore <ian.moore@fireeye.com> | 2015-08-07 13:56:10 -0400 |
---|---|---|
committer | Ian Moore <ian.moore@fireeye.com> | 2015-08-07 13:56:10 -0400 |
commit | 5c84162ce332cddd75a4f15414f7ab24ab89c071 (patch) | |
tree | 2ddb677839d3707f1657d0d3eb3399d74bd0ba8b /endpoints/language.php | |
parent | 2a3cda7f1a11f7741b9074392fb7f6a2bc4bab6f (diff) | |
download | phpvirtualbox-5c84162ce332cddd75a4f15414f7ab24ab89c071.zip phpvirtualbox-5c84162ce332cddd75a4f15414f7ab24ab89c071.tar.gz phpvirtualbox-5c84162ce332cddd75a4f15414f7ab24ab89c071.tar.bz2 |
More language fixes
Diffstat (limited to 'endpoints/language.php')
-rw-r--r-- | endpoints/language.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/endpoints/language.php b/endpoints/language.php index 943ad76..e0769c6 100644 --- a/endpoints/language.php +++ b/endpoints/language.php @@ -51,7 +51,7 @@ function trans(s,c,n,h) { var r = transreal(s,c,n,h);
if(typeof r != 'string') {
- console.log('Could not translate ' + s + ' with ' + c);
+ // console.log('Could not translate ' + s + ' with ' + c);
return s;
}
@@ -75,9 +75,11 @@ function transreal(w,context,number,comment) { if(t[0]) return t[0];
return t[1];
}
+ /*
if (__vboxLangData['contexts'][context]['messages'][w] && __vboxLangData['contexts'][context]['messages'][w]['translation_attr'] && __vboxLangData['contexts'][context]['messages'][w]['translation_attr']['type'] == 'obsolete') {
console.log(w + ' in ' + context + ' is obsolete');
}
+ */
return __vboxLangData['contexts'][context]['messages'][w]['translation'];
} else if(__vboxLangData['contexts'][context]['messages'][w][0]) {
@@ -85,17 +87,21 @@ function transreal(w,context,number,comment) { if(comment) {
for(var i in __vboxLangData['contexts'][context]['messages'][w]) {
if(__vboxLangData['contexts'][context]['messages'][w][i]['comment'] == comment) {
+ /*
if (__vboxLangData['contexts'][context]['messages'][w][i]['translation_attr'] && __vboxLangData['contexts'][context]['messages'][w][i]['translation_attr']['type'] == 'obsolete') {
console.log(w + ' ' + ' and ' + comment + ' is obsolete');
}
+ */
return __vboxLangData['contexts'][context]['messages'][w][i]['translation'];
}
}
}
+ /*
if (__vboxLangData['contexts'][context]['messages'][w][0] && __vboxLangData['contexts'][context]['messages'][w][0]['translation_attr'] && __vboxLangData['contexts'][context]['messages'][w][0]['translation_attr']['type'] == 'obsolete') {
console.log(w + ' in ' + context + ' is obsolete');
}
+ */
return __vboxLangData['contexts'][context]['messages'][w][0]['translation'];
|