mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 14:11:21 +00:00
GUAC-1230: Add all messageformat.js locales.
This commit is contained in:
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';
|
||||
};
|
Reference in New Issue
Block a user