Skip to content

Commit 50ea2bb

Browse files
committed
Merge pull request #600 from fred-wang/issue530
Import language translations. Issue #530
2 parents ff06343 + 8bfecda commit 50ea2bb

File tree

159 files changed

+6396
-407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+6396
-407
lines changed

unpacked/MathJax.js

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,13 +1065,33 @@ MathJax.Localization = {
10651065
locale: "en",
10661066
directory: "[MathJax]/localization",
10671067
strings: {
1068-
en: {menuTitle: "English", isLoaded: true}, // nothing needs to be loaded for this
1069-
de: {menuTitle: "Deutsch"},
1070-
fr: {menuTitle: "Fran\u00E7ais"},
1071-
it: {menuTitle: "Italiano"},
1072-
pl: {menuTitle: "Polski"},
1073-
pt: {menuTitle: "portugus\u00EA", remap: "pt-br"},
1074-
"pt-br": {menuTitle: "portugu\u00EAs do Brasil"}
1068+
// Currently, this list is not modified by the MathJax-i18n script. You can
1069+
// run the following command in MathJax/unpacked/localization to update it:
1070+
// find -name *.js | xargs grep menuTitle\: | | grep -v qqq | sed "s/^\.\/\(.*\)\/.*\.js\: / \"\1\"\: \{/" | sed "s/,$/\},/" | sed "s/\"English\"/\"English\", isLoaded: true/" > tmp ; sort tmp > tmp2 ; sed "$ s/,$//" tmp2 ; rm tmp*
1071+
"br": {menuTitle: "brezhoneg"},
1072+
"cdo": {menuTitle: "M\u00ECng-d\u0115\u0324ng-ng\u1E73\u0304"},
1073+
"cs": {menuTitle: "\u010Desky"},
1074+
"de": {menuTitle: "Deutsch"},
1075+
"en": {menuTitle: "English", isLoaded: true},
1076+
"es": {menuTitle: "espa\u00F1ol"},
1077+
"fi": {menuTitle: "suomi"},
1078+
"fr": {menuTitle: "fran\u00E7ais"},
1079+
"gl": {menuTitle: "galego"},
1080+
"he": {menuTitle: "\u05E2\u05D1\u05E8\u05D9\u05EA"},
1081+
"ia": {menuTitle: "interlingua"},
1082+
"it": {menuTitle: "italiano"},
1083+
"ja": {menuTitle: "\u65E5\u672C\u8A9E"},
1084+
"ko": {menuTitle: "\uD55C\uAD6D\uC5B4"},
1085+
"lb": {menuTitle: "L\u00EBtzebuergesch"},
1086+
"mk": {menuTitle: "\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"},
1087+
"nl": {menuTitle: "Nederlands"},
1088+
"pl": {menuTitle: "polski"},
1089+
"pt-br": {menuTitle: "portugu\u00EAs do Brasil"},
1090+
"ru": {menuTitle: "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"},
1091+
"sl": {menuTitle: "sloven\u0161\u010Dina"},
1092+
"sv": {menuTitle: "svenska"},
1093+
"uk": {menuTitle: "\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},
1094+
"zh-hans": {menuTitle: "\u4E2D\u6587\uFF08\u7B80\u4F53\uFF09"}
10751095
},
10761096

10771097
//
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/FontWarnings.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","FontWarnings",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
29+
}
30+
});
31+
32+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/FontWarnings.js");

unpacked/localization/br/HTML-CSS.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/HTML-CSS.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","HTML-CSS",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
LoadWebFont: "O karga\u00F1 ar font web %1",
29+
CantLoadWebFont: "Ne c'haller ket karga\u00F1 ar font web %1",
30+
CantFindFontUsing: "Ne c'haller ket kavout ur font dereat e-touez %1"
31+
}
32+
});
33+
34+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/HTML-CSS.js");
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/HelpDialog.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","HelpDialog",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
29+
}
30+
});
31+
32+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/HelpDialog.js");

unpacked/localization/br/MathML.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/MathML.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","MathML",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
BadMglyph: "mglyph fall : %1",
29+
BadMglyphFont: "Font fall : %1",
30+
UnknownNodeType: "Seurt skoulm dianav : %1",
31+
UnexpectedTextNode: "Skoulm testenn dic'hortoz : %1",
32+
ErrorParsingMathML: "Fazi o tielfenna\u00F1 MathML",
33+
ParsingError: "Fazi o ielfenna\u00F1 MathML : %1",
34+
MathMLSingleElement: "MathML a rank beza\u00F1 stummet gant un elfenn hepken"
35+
}
36+
});
37+
38+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/MathML.js");

unpacked/localization/br/MathMenu.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/MathMenu.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","MathMenu",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
Show: "Diskouez ar formulenn evel",
29+
MathMLcode: "Kod MathML",
30+
OriginalMathML: "MathML orin",
31+
TeXCommands: "Urzhio\u00F9 TeX",
32+
ErrorMessage: "Kemennadenn fazi",
33+
Annotation: "Notenn",
34+
TeX: "TeX",
35+
StarMath: "StarMath",
36+
OpenMath: "OpenMath",
37+
Click: "Klika\u00F1",
38+
DoubleClick: "Daouglika\u00F1",
39+
NoZoom: "Zoum ebet",
40+
Option: "Dibarzh",
41+
Command: "Urzhiad",
42+
Control: "Kontroll",
43+
ZoomFactor: "Feur zoum",
44+
ForHTMLCSS: "Evit HTML-CSS :",
45+
Auto: "Emgefre",
46+
TeXLocal: "TeX (lec'hel)",
47+
TeXWeb: "TeX (web)",
48+
TeXImage: "TeX (skeudenn)",
49+
STIXLocal: "STIX (lec'hel)",
50+
ContextMenu: "La\u00F1ser kemperzhel",
51+
Browser: "Merdeer",
52+
Locale: "Yezh",
53+
LoadLocale: "Karga\u00F1 diwar an URL ...",
54+
About: "Diwar-benn MathJax",
55+
Help: "Sikour MathJax",
56+
wofforotffonts: "fonto\u00F9 woff pe otf",
57+
eotffonts: "fonto\u00F9 eot",
58+
svgfonts: "Fonto\u00F9 svg",
59+
LoadURL: "Karga\u00F1 roadenno\u00F9 trei\u00F1 eus an URL-ma\u00F1 :",
60+
Close: "Serri\u00F1",
61+
Original: "Furmskrid orin",
62+
Settings: "Arventenno\u00F9 ar matematiko\u00F9"
63+
}
64+
});
65+
66+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/MathMenu.js");

unpacked/localization/br/TeX.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/TeX.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br","TeX",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
ExtraOpenMissingClose: "Briataenn digeri\u00F1 a re pe briataenn serri\u00F1 diank",
29+
ExtraCloseMissingOpen: "Briataenn serri\u00F1 a re pe briataenn digeri\u00F1 diank",
30+
MissingLeftExtraRight: "\\left diank pe \\right a re",
31+
ExtraLeftMissingRight: "\\left a re pe \\right diank",
32+
Misplaced: "%1 lec'hiet fall",
33+
AmbiguousUseOf: "Implij forc'hellek eus %1",
34+
EnvBadEnd: "\\begin{%1} zo echuet gant \\end{%2}",
35+
EnvMissingEnd: "\\end{%1} a vank",
36+
MissingBoxFor: "Ar voest a vank evit %1",
37+
MissingCloseBrace: "Ar vriataenn serri\u00F1 a vank",
38+
MisplacedMiddle: "%1 a rank beza\u00F1 e-barzh \\left ha \\right",
39+
MisplacedMoveRoot: "%1 ne c'hall beza\u00F1 nemet e-barzh ur wrizienn",
40+
MultipleCommand: "Meur a %1",
41+
IntegerArg: "Arguzenn %1 a rank beza\u00F1 un niver anterin",
42+
InvalidMathMLAttr: "Doareenn MathML direizh : %1",
43+
MissingArgFor: "Arguzenn diank evit %1",
44+
InvalidEnv: "Anv endro \"%1\" direizh",
45+
UnknownEnv: "endro dianav \"%1\"",
46+
TokenNotFoundForCommand: "N'eus ket bet gallet kavout %1 evit %2",
47+
MathNotTerminated: "Formulenn diechu er voest testenn",
48+
CommandNotAllowedInEnv: "%1 n'eo ket aotreet en endro %2",
49+
MultipleLabel: "Label '%1' termenet meur a wech",
50+
CommandAtTheBeginingOfLine: "%1 a rank beza\u00F1 e dero\u00F9 al linenn",
51+
BadMathStyleFor: "Stil matematikel direizh evit %1",
52+
PositiveIntegerArg: "Arguzenn %1 a rank beza\u00F1 un niver pozitivel anterin",
53+
MultlineRowsOneCol: "Ar renko\u00F9 e-barzh an endro %1 a rank kaout ur bann dres",
54+
MultipleBBoxProperty: "%1 diferet div wech e-barzh %2",
55+
ExtraEndMissingBegin: "%1 a re pe \\begingroup diank",
56+
GlobalNotFollowedBy: "%1 n'eo ket heuliet gant \\let, \\def, pe \\newcommand",
57+
UndefinedColorModel: "N'eo ket termenet patrom liv \"%1\"",
58+
InvalidDecimalNumber: "Niver degel direizh",
59+
InvalidNumber: "Niver direizh",
60+
NewextarrowArg2: "Eil arguzenn %1 a rank beza\u00F1 daou niver anterin dispartiet gant ur virgulenn",
61+
NewextarrowArg3: "Trede arguzenn %1 a rank beza\u00F1 un niverenn arouezenn unicode",
62+
NoClosingChar: "Ne c'haller ket kavout an %1 serri\u00F1",
63+
CantUseHash2: "Implij direizh eus # er patrom evit %1",
64+
MismatchUseDef: "An implij eus %1 ne glot ket gant an termenadur anezha\u00F1",
65+
RunawayArgument: "Arguzenn diechu evit %1 ?",
66+
NoClosingDelim: "Ne c'haller ket kavout ur bevenner serri\u00F1 evit %1"
67+
}
68+
});
69+
70+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/TeX.js");

unpacked/localization/br/br.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
2+
/* vim: set ts=2 et sw=2 tw=80: */
3+
4+
/*************************************************************
5+
*
6+
* MathJax/localization/br/br.js
7+
*
8+
* Copyright (c) 2009-2013 The MathJax Consortium
9+
*
10+
* Licensed under the Apache License, Version 2.0 (the "License");
11+
* you may not use this file except in compliance with the License.
12+
* You may obtain a copy of the License at
13+
*
14+
* http://www.apache.org/licenses/LICENSE-2.0
15+
*
16+
* Unless required by applicable law or agreed to in writing, software
17+
* distributed under the License is distributed on an "AS IS" BASIS,
18+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19+
* See the License for the specific language governing permissions and
20+
* limitations under the License.
21+
*
22+
*/
23+
24+
MathJax.Localization.addTranslation("br",null,{
25+
menuTitle: "brezhoneg",
26+
version: "2.3",
27+
isLoaded: true,
28+
domains: {
29+
"_": {
30+
version: "2.3",
31+
isLoaded: true,
32+
strings: {
33+
MathProcessingError: "Fazi o treta\u00F1 ar formulenn",
34+
MathError: "Fazi er formulenn",
35+
LoadFile: "O karga\u00F1 %1",
36+
Loading: "O karga\u00F1",
37+
LoadFailed: "N'eus ket bet gallet karga\u00F1 %1",
38+
ProcessMath: "Treta\u00F1 ar formulenno\u00F9 : %1%%",
39+
Processing: "O treta\u00F1",
40+
TypesetMath: "Aoza\u00F1 formulenno\u00F9 : %1%%",
41+
Typesetting: "Aoza\u00F1",
42+
MathJaxNotSupported: "Ne c'hall ket ho merdeer ober gant MathJax"
43+
}
44+
},
45+
"FontWarnings": {},
46+
"HTML-CSS": {},
47+
"HelpDialog": {},
48+
"MathML": {},
49+
"MathMenu": {},
50+
"TeX": {}
51+
},
52+
plural: function (n) {
53+
if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 ||
54+
n % 100 === 91)) {return 1} // one
55+
if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 ||
56+
n % 100 === 92)) {return 2} // two
57+
if ((n % 10 === 3 || n % 10 === 4 || n % 10 === 9) &&
58+
!(10 <= n % 100 && n % 100 <= 19 ||
59+
70 <= n % 100 && n % 100 <= 79 ||
60+
90 <= n % 100 && n % 100 <= 99)) {return 3} // few
61+
if (n !== 0 && n % 1000000 === 0) {return 4} // other
62+
return 5;
63+
},
64+
number: function (n) {
65+
return n;
66+
}
67+
});
68+
69+
MathJax.Ajax.loadComplete("[MathJax]/localization/br/br.js");

0 commit comments

Comments
 (0)