diff options
Diffstat (limited to 'sources/samples/old/assets/uilanguages')
-rw-r--r-- | sources/samples/old/assets/uilanguages/languages.js | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/sources/samples/old/assets/uilanguages/languages.js b/sources/samples/old/assets/uilanguages/languages.js new file mode 100644 index 00000000..c2db0e1c --- /dev/null +++ b/sources/samples/old/assets/uilanguages/languages.js | |||
@@ -0,0 +1,89 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | /* exported CKEDITOR_LANGS */ | ||
7 | |||
8 | var CKEDITOR_LANGS = ( function() { | ||
9 | var langs = { | ||
10 | af: 'Afrikaans', | ||
11 | ar: 'Arabic', | ||
12 | bg: 'Bulgarian', | ||
13 | bn: 'Bengali/Bangla', | ||
14 | bs: 'Bosnian', | ||
15 | ca: 'Catalan', | ||
16 | cs: 'Czech', | ||
17 | cy: 'Welsh', | ||
18 | da: 'Danish', | ||
19 | de: 'German', | ||
20 | el: 'Greek', | ||
21 | en: 'English', | ||
22 | 'en-au': 'English (Australia)', | ||
23 | 'en-ca': 'English (Canadian)', | ||
24 | 'en-gb': 'English (United Kingdom)', | ||
25 | eo: 'Esperanto', | ||
26 | es: 'Spanish', | ||
27 | et: 'Estonian', | ||
28 | eu: 'Basque', | ||
29 | fa: 'Persian', | ||
30 | fi: 'Finnish', | ||
31 | fo: 'Faroese', | ||
32 | fr: 'French', | ||
33 | 'fr-ca': 'French (Canada)', | ||
34 | gl: 'Galician', | ||
35 | gu: 'Gujarati', | ||
36 | he: 'Hebrew', | ||
37 | hi: 'Hindi', | ||
38 | hr: 'Croatian', | ||
39 | hu: 'Hungarian', | ||
40 | id: 'Indonesian', | ||
41 | is: 'Icelandic', | ||
42 | it: 'Italian', | ||
43 | ja: 'Japanese', | ||
44 | ka: 'Georgian', | ||
45 | km: 'Khmer', | ||
46 | ko: 'Korean', | ||
47 | ku: 'Kurdish', | ||
48 | lt: 'Lithuanian', | ||
49 | lv: 'Latvian', | ||
50 | mk: 'Macedonian', | ||
51 | mn: 'Mongolian', | ||
52 | ms: 'Malay', | ||
53 | nb: 'Norwegian Bokmal', | ||
54 | nl: 'Dutch', | ||
55 | no: 'Norwegian', | ||
56 | pl: 'Polish', | ||
57 | pt: 'Portuguese (Portugal)', | ||
58 | 'pt-br': 'Portuguese (Brazil)', | ||
59 | ro: 'Romanian', | ||
60 | ru: 'Russian', | ||
61 | si: 'Sinhala', | ||
62 | sk: 'Slovak', | ||
63 | sq: 'Albanian', | ||
64 | sl: 'Slovenian', | ||
65 | sr: 'Serbian (Cyrillic)', | ||
66 | 'sr-latn': 'Serbian (Latin)', | ||
67 | sv: 'Swedish', | ||
68 | th: 'Thai', | ||
69 | tr: 'Turkish', | ||
70 | tt: 'Tatar', | ||
71 | ug: 'Uighur', | ||
72 | uk: 'Ukrainian', | ||
73 | vi: 'Vietnamese', | ||
74 | zh: 'Chinese Traditional', | ||
75 | 'zh-cn': 'Chinese Simplified' | ||
76 | }; | ||
77 | |||
78 | var langsArray = []; | ||
79 | |||
80 | for ( var code in CKEDITOR.lang.languages ) { | ||
81 | langsArray.push( { code: code, name: ( langs[ code ] || code ) } ); | ||
82 | } | ||
83 | |||
84 | langsArray.sort( function( a, b ) { | ||
85 | return ( a.name < b.name ) ? -1 : 1; | ||
86 | } ); | ||
87 | |||
88 | return langsArray; | ||
89 | } )(); | ||