mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Merge pull request #214 from glyptodon/translation-fallback
GUAC-1230: Fix translation fallback
This commit is contained in:
@@ -155,28 +155,16 @@
|
|||||||
<jsFinalFile>guacamole.js</jsFinalFile>
|
<jsFinalFile>guacamole.js</jsFinalFile>
|
||||||
|
|
||||||
<jsSourceFiles>
|
<jsSourceFiles>
|
||||||
<jsSourceFile>lib/jquery.js</jsSourceFile>
|
<jsSourceFile>lib/jquery/jquery.js</jsSourceFile>
|
||||||
<jsSourceFile>lib/lodash.js</jsSourceFile>
|
<jsSourceFile>lib/angular/angular.min.js</jsSourceFile>
|
||||||
<jsSourceFile>lib/angular.min.js</jsSourceFile>
|
<jsSourceFile>lib/angular-module-shim/angular-module-shim.js</jsSourceFile>
|
||||||
<jsSourceFile>lib/angular-module-shim.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/angular-touch.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/plugins/angular-cookies.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/plugins/angular-route.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/plugins/angular-translate.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/plugins/angular-translate-loader-static-files.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/plugins/angular-translate-interpolation-messageformat.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/blob/blob.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/filesaver/filesaver.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/messageformat/messageformat.js</jsSourceFile>
|
<jsSourceFile>lib/messageformat/messageformat.js</jsSourceFile>
|
||||||
<jsSourceFile>lib/messageformat/de.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/messageformat/fr.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/messageformat/nl.js</jsSourceFile>
|
|
||||||
<jsSourceFile>lib/messageformat/ru.js</jsSourceFile>
|
|
||||||
<jsSourceFile>license.txt</jsSourceFile>
|
<jsSourceFile>license.txt</jsSourceFile>
|
||||||
<jsSourceFile>guacamole-common-js/all.js</jsSourceFile>
|
<jsSourceFile>guacamole-common-js/all.js</jsSourceFile>
|
||||||
</jsSourceFiles>
|
</jsSourceFiles>
|
||||||
|
|
||||||
<jsSourceIncludes>
|
<jsSourceIncludes>
|
||||||
|
<jsSourceInclude>lib/**/*.js</jsSourceInclude>
|
||||||
<jsSourceInclude>app/**/*.js</jsSourceInclude>
|
<jsSourceInclude>app/**/*.js</jsSourceInclude>
|
||||||
<jsSourceInclude>generated/**/*.js</jsSourceInclude>
|
<jsSourceInclude>generated/**/*.js</jsSourceInclude>
|
||||||
</jsSourceIncludes>
|
</jsSourceIncludes>
|
||||||
|
@@ -30,19 +30,16 @@ angular.module('index').config(['$injector', function($injector) {
|
|||||||
var preferenceServiceProvider = $injector.get('preferenceServiceProvider');
|
var preferenceServiceProvider = $injector.get('preferenceServiceProvider');
|
||||||
|
|
||||||
// Fallback to US English
|
// Fallback to US English
|
||||||
var fallbackLanguages = ['en'];
|
$translateProvider.fallbackLanguage('en');
|
||||||
|
|
||||||
// Prefer chosen language, use fallback languages if necessary
|
// Prefer chosen language
|
||||||
$translateProvider.fallbackLanguage(fallbackLanguages);
|
|
||||||
$translateProvider.preferredLanguage(preferenceServiceProvider.preferences.language);
|
$translateProvider.preferredLanguage(preferenceServiceProvider.preferences.language);
|
||||||
|
|
||||||
// Escape any HTML in translation strings
|
// Escape any HTML in translation strings
|
||||||
$translateProvider.useSanitizeValueStrategy('escape');
|
$translateProvider.useSanitizeValueStrategy('escape');
|
||||||
|
|
||||||
// Load translations via translationLoader service
|
// Load translations via translationLoader service
|
||||||
$translateProvider.useLoader('translationLoader', {
|
$translateProvider.useLoader('translationLoader');
|
||||||
fallbackLanguages : fallbackLanguages
|
|
||||||
});
|
|
||||||
|
|
||||||
// Provide pluralization, etc. via messageformat.js
|
// Provide pluralization, etc. via messageformat.js
|
||||||
$translateProvider.useMessageFormatInterpolation();
|
$translateProvider.useMessageFormatInterpolation();
|
||||||
|
@@ -56,9 +56,9 @@ angular.module('locale').factory('translationLoader', ['$injector', function tra
|
|||||||
// Get current language key
|
// Get current language key
|
||||||
var currentKey = remainingKeys.shift();
|
var currentKey = remainingKeys.shift();
|
||||||
|
|
||||||
// If no languages to try, just fail
|
// If no languages to try, "succeed" with an empty translation (force fallback)
|
||||||
if (!currentKey) {
|
if (!currentKey) {
|
||||||
deferred.reject(requestedKey);
|
deferred.resolve('{}');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,14 +122,8 @@ angular.module('locale').factory('translationLoader', ['$injector', function tra
|
|||||||
|
|
||||||
var translation = $q.defer();
|
var translation = $q.defer();
|
||||||
|
|
||||||
// Get requested language from options
|
// Satisfy the translation request using possible variations of the given key
|
||||||
var requestedKey = options.key;
|
satisfyTranslation(translation, options.key, getKeyVariations(options.key));
|
||||||
|
|
||||||
// Append fallback languages to requested language
|
|
||||||
var keys = getKeyVariations(requestedKey).concat(options.fallbackLanguages);
|
|
||||||
|
|
||||||
// Satisfy the translation request
|
|
||||||
satisfyTranslation(translation, requestedKey, keys);
|
|
||||||
|
|
||||||
// Return promise which is resolved only after the translation file is loaded
|
// Return promise which is resolved only after the translation file is loaded
|
||||||
return translation.promise;
|
return translation.promise;
|
||||||
|
@@ -127,7 +127,7 @@ angular.module('settings').provider('preferenceService', function preferenceServ
|
|||||||
*
|
*
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
language : 'en'
|
language : getDefaultLanguageKey()
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -1,35 +0,0 @@
|
|||||||
|
|
||||||
/**
|
|
||||||
* Workaround to make defining and retrieving angular modules easier and more intuitive.
|
|
||||||
* https://gist.github.com/hiddentao/7300694
|
|
||||||
*/
|
|
||||||
|
|
||||||
(function(angular) {
|
|
||||||
var origMethod = angular.module;
|
|
||||||
|
|
||||||
var alreadyRegistered = {};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register/fetch a module.
|
|
||||||
*
|
|
||||||
* @param name {string} module name.
|
|
||||||
* @param reqs {array} list of modules this module depends upon.
|
|
||||||
* @param configFn {function} config function to run when module loads (only applied for the first call to create this module).
|
|
||||||
* @returns {*} the created/existing module.
|
|
||||||
*/
|
|
||||||
angular.module = function(name, reqs, configFn) {
|
|
||||||
reqs = reqs || [];
|
|
||||||
var module = null;
|
|
||||||
|
|
||||||
if (alreadyRegistered[name]) {
|
|
||||||
module = origMethod(name);
|
|
||||||
module.requires.push.apply(module.requires, reqs);
|
|
||||||
} else {
|
|
||||||
module = origMethod(name, reqs, configFn);
|
|
||||||
alreadyRegistered[name] = module;
|
|
||||||
}
|
|
||||||
|
|
||||||
return module;
|
|
||||||
};
|
|
||||||
|
|
||||||
})(angular);
|
|
21
guacamole/src/main/webapp/lib/angular-module-shim/LICENSE
Normal file
21
guacamole/src/main/webapp/lib/angular-module-shim/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Jed Richards
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
32
guacamole/src/main/webapp/lib/angular-module-shim/angular-module-shim.js
vendored
Normal file
32
guacamole/src/main/webapp/lib/angular-module-shim/angular-module-shim.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
(function(angular) {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
if ( !angular ) {
|
||||||
|
throw new Error('angular-module-shim: Missing Angular');
|
||||||
|
}
|
||||||
|
|
||||||
|
var origFn = angular.module;
|
||||||
|
var hash = {};
|
||||||
|
|
||||||
|
angular.module = function(name,requires,configFn) {
|
||||||
|
|
||||||
|
var requires = requires || [];
|
||||||
|
var registered = hash[name];
|
||||||
|
var module;
|
||||||
|
|
||||||
|
if ( registered ) {
|
||||||
|
module = origFn(name);
|
||||||
|
module.requires.push.apply(module.requires,requires);
|
||||||
|
// Register the config function if it exists.
|
||||||
|
if (configFn) {
|
||||||
|
module.config(configFn);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
hash[name] = true;
|
||||||
|
module = origFn(name,requires,configFn);
|
||||||
|
}
|
||||||
|
|
||||||
|
return module;
|
||||||
|
};
|
||||||
|
})(window.angular);
|
21
guacamole/src/main/webapp/lib/angular-translate/LICENSE
Normal file
21
guacamole/src/main/webapp/lib/angular-translate/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) <2014> <pascal.precht@gmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
22
guacamole/src/main/webapp/lib/angular/LICENSE
Normal file
22
guacamole/src/main/webapp/lib/angular/LICENSE
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
The MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2010-2014 Google, Inc. http://angularjs.org
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
21
guacamole/src/main/webapp/lib/jquery/MIT-LICENSE.txt
Normal file
21
guacamole/src/main/webapp/lib/jquery/MIT-LICENSE.txt
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Copyright 2014 jQuery Foundation and other contributors
|
||||||
|
http://jquery.com/
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
guacamole/src/main/webapp/lib/lodash/LICENSE.txt
Normal file
22
guacamole/src/main/webapp/lib/lodash/LICENSE.txt
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
|
Based on Underscore.js 1.5.2, copyright 2009-2013 Jeremy Ashkenas,
|
||||||
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
14
guacamole/src/main/webapp/lib/messageformat/LICENSE
Normal file
14
guacamole/src/main/webapp/lib/messageformat/LICENSE
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
|
6
guacamole/src/main/webapp/lib/messageformat/locale/af.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/af.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.af = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/am.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/am.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.am = function(n) {
|
||||||
|
if (n === 0 || n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
18
guacamole/src/main/webapp/lib/messageformat/locale/ar.js
Normal file
18
guacamole/src/main/webapp/lib/messageformat/locale/ar.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
MessageFormat.locale.ar = function(n) {
|
||||||
|
if (n === 0) {
|
||||||
|
return 'zero';
|
||||||
|
}
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2) {
|
||||||
|
return 'two';
|
||||||
|
}
|
||||||
|
if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/bg.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/bg.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.bg = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/bn.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/bn.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.bn = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
18
guacamole/src/main/webapp/lib/messageformat/locale/br.js
Normal file
18
guacamole/src/main/webapp/lib/messageformat/locale/br.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
MessageFormat.locale.br = function (n) {
|
||||||
|
if (n === 0) {
|
||||||
|
return 'zero';
|
||||||
|
}
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2) {
|
||||||
|
return 'two';
|
||||||
|
}
|
||||||
|
if (n == 3) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if (n == 6) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/ca.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/ca.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.ca = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
9
guacamole/src/main/webapp/lib/messageformat/locale/cs.js
Normal file
9
guacamole/src/main/webapp/lib/messageformat/locale/cs.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.cs = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2 || n == 3 || n == 4) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
18
guacamole/src/main/webapp/lib/messageformat/locale/cy.js
Normal file
18
guacamole/src/main/webapp/lib/messageformat/locale/cy.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
MessageFormat.locale.cy = function (n) {
|
||||||
|
if (n === 0) {
|
||||||
|
return 'zero';
|
||||||
|
}
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2) {
|
||||||
|
return 'two';
|
||||||
|
}
|
||||||
|
if (n == 3) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if (n == 6) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/da.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/da.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.da = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/el.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/el.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.el = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/en.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/en.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.en = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/es.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/es.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.es = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/et.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/et.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.et = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/eu.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/eu.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.eu = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/fa.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/fa.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.fa = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/fi.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/fi.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.fi = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.fil = function(n) {
|
||||||
|
if (n === 0 || n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
9
guacamole/src/main/webapp/lib/messageformat/locale/ga.js
Normal file
9
guacamole/src/main/webapp/lib/messageformat/locale/ga.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.ga = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2) {
|
||||||
|
return 'two';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/gl.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/gl.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.gl = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.gsw = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/gu.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/gu.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.gu = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/he.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/he.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.he = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/hi.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/hi.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.hi = function(n) {
|
||||||
|
if (n === 0 || n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
14
guacamole/src/main/webapp/lib/messageformat/locale/hr.js
Normal file
14
guacamole/src/main/webapp/lib/messageformat/locale/hr.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
MessageFormat.locale.hr = function (n) {
|
||||||
|
if ((n % 10) == 1 && (n % 100) != 11) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 4 &&
|
||||||
|
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) ||
|
||||||
|
((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/hu.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/hu.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.hu = function(n) {
|
||||||
|
return 'other';
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/id.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/id.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.id = function(n) {
|
||||||
|
return 'other';
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/in.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/in.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale["in"] = function(n) {
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/is.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/is.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.is = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/it.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/it.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.it = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/iw.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/iw.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.iw = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/ja.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/ja.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.ja = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/kn.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/kn.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.kn = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/ko.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/ko.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.ko = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.lag = function (n) {
|
||||||
|
if (n === 0) {
|
||||||
|
return 'zero';
|
||||||
|
}
|
||||||
|
if (n > 0 && n < 2) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/ln.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/ln.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.ln = function(n) {
|
||||||
|
if (n === 0 || n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
10
guacamole/src/main/webapp/lib/messageformat/locale/lt.js
Normal file
10
guacamole/src/main/webapp/lib/messageformat/locale/lt.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
MessageFormat.locale.lt = function (n) {
|
||||||
|
if ((n % 10) == 1 && ((n % 100) < 11 || (n % 100) > 19)) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 9 &&
|
||||||
|
((n % 100) < 11 || (n % 100) > 19) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
9
guacamole/src/main/webapp/lib/messageformat/locale/lv.js
Normal file
9
guacamole/src/main/webapp/lib/messageformat/locale/lv.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.lv = function (n) {
|
||||||
|
if (n === 0) {
|
||||||
|
return 'zero';
|
||||||
|
}
|
||||||
|
if ((n % 10) == 1 && (n % 100) != 11) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/mk.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/mk.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.mk = function (n) {
|
||||||
|
if ((n % 10) == 1 && n != 11) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/ml.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/ml.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.ml = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
10
guacamole/src/main/webapp/lib/messageformat/locale/mo.js
Normal file
10
guacamole/src/main/webapp/lib/messageformat/locale/mo.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
MessageFormat.locale.mo = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n === 0 || n != 1 && (n % 100) >= 1 &&
|
||||||
|
(n % 100) <= 19 && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/mr.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/mr.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.mr = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/ms.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/ms.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.ms = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
12
guacamole/src/main/webapp/lib/messageformat/locale/mt.js
Normal file
12
guacamole/src/main/webapp/lib/messageformat/locale/mt.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
MessageFormat.locale.mt = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n === 0 || ((n % 100) >= 2 && (n % 100) <= 4 && n == Math.floor(n))) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 100) >= 11 && (n % 100) <= 19 && n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/no.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/no.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.no = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/or.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/or.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.or = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
15
guacamole/src/main/webapp/lib/messageformat/locale/pl.js
Normal file
15
guacamole/src/main/webapp/lib/messageformat/locale/pl.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
MessageFormat.locale.pl = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 4 &&
|
||||||
|
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 10) === 0 || n != 1 && (n % 10) == 1 ||
|
||||||
|
((n % 10) >= 5 && (n % 10) <= 9 || (n % 100) >= 12 && (n % 100) <= 14) &&
|
||||||
|
n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/pt.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/pt.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.pt = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
10
guacamole/src/main/webapp/lib/messageformat/locale/ro.js
Normal file
10
guacamole/src/main/webapp/lib/messageformat/locale/ro.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
MessageFormat.locale.ro = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n === 0 || n != 1 && (n % 100) >= 1 &&
|
||||||
|
(n % 100) <= 19 && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.shi = function(n) {
|
||||||
|
if (n >= 0 && n <= 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n >= 2 && n <= 10 && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
9
guacamole/src/main/webapp/lib/messageformat/locale/sk.js
Normal file
9
guacamole/src/main/webapp/lib/messageformat/locale/sk.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
MessageFormat.locale.sk = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if (n == 2 || n == 3 || n == 4) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
12
guacamole/src/main/webapp/lib/messageformat/locale/sl.js
Normal file
12
guacamole/src/main/webapp/lib/messageformat/locale/sl.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
MessageFormat.locale.sl = function (n) {
|
||||||
|
if ((n % 100) == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 100) == 2) {
|
||||||
|
return 'two';
|
||||||
|
}
|
||||||
|
if ((n % 100) == 3 || (n % 100) == 4) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/sq.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/sq.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.sq = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
14
guacamole/src/main/webapp/lib/messageformat/locale/sr.js
Normal file
14
guacamole/src/main/webapp/lib/messageformat/locale/sr.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
MessageFormat.locale.sr = function (n) {
|
||||||
|
if ((n % 10) == 1 && (n % 100) != 11) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 4 &&
|
||||||
|
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) ||
|
||||||
|
((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/sv.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/sv.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.sv = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/sw.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/sw.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.sw = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/ta.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/ta.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.ta = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/te.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/te.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.te = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/th.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/th.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.th = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/tl.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/tl.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.tl = function(n) {
|
||||||
|
if (n === 0 || n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/tr.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/tr.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.tr = function(n) {
|
||||||
|
return 'other';
|
||||||
|
};
|
14
guacamole/src/main/webapp/lib/messageformat/locale/uk.js
Normal file
14
guacamole/src/main/webapp/lib/messageformat/locale/uk.js
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
MessageFormat.locale.uk = function (n) {
|
||||||
|
if ((n % 10) == 1 && (n % 100) != 11) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 4 &&
|
||||||
|
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) ||
|
||||||
|
((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
6
guacamole/src/main/webapp/lib/messageformat/locale/ur.js
Normal file
6
guacamole/src/main/webapp/lib/messageformat/locale/ur.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
MessageFormat.locale.ur = function ( n ) {
|
||||||
|
if ( n === 1 ) {
|
||||||
|
return "one";
|
||||||
|
}
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/vi.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/vi.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.vi = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
3
guacamole/src/main/webapp/lib/messageformat/locale/zh.js
Normal file
3
guacamole/src/main/webapp/lib/messageformat/locale/zh.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MessageFormat.locale.zh = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
Reference in New Issue
Block a user