Skip to content

Commit b8e8e80

Browse files
committed
Import more non-English strings from TranslateWiki ; add the pt-br fallback for pt. #492 and #530
1 parent 88c26b3 commit b8e8e80

File tree

20 files changed

+869
-9
lines changed

20 files changed

+869
-9
lines changed

unpacked/MathJax.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,13 +1067,19 @@ MathJax.Localization = {
10671067
strings: {
10681068
// Currently, this list is not modified by the MathJax-i18n script. You can
10691069
// 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*
1070+
//
1071+
// 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*
1072+
//
1073+
// This only takes languages with localization data so you must also add
1074+
// the languages that use a remap but are not translated at all.
1075+
//
10711076
"br": {menuTitle: "brezhoneg"},
10721077
"cdo": {menuTitle: "M\u00ECng-d\u0115\u0324ng-ng\u1E73\u0304"},
10731078
"cs": {menuTitle: "\u010Desky"},
10741079
"de": {menuTitle: "Deutsch"},
10751080
"en": {menuTitle: "English", isLoaded: true},
10761081
"es": {menuTitle: "espa\u00F1ol"},
1082+
"fa": {menuTitle: "\u0641\u0627\u0631\u0633\u06CC"},
10771083
"fi": {menuTitle: "suomi"},
10781084
"fr": {menuTitle: "fran\u00E7ais"},
10791085
"gl": {menuTitle: "galego"},
@@ -1087,6 +1093,7 @@ MathJax.Localization = {
10871093
"nl": {menuTitle: "Nederlands"},
10881094
"pl": {menuTitle: "polski"},
10891095
"pt-br": {menuTitle: "portugu\u00EAs do Brasil"},
1096+
"pt": {menuTitle: "portugus\u00EA"},
10901097
"ru": {menuTitle: "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"},
10911098
"sl": {menuTitle: "sloven\u0161\u010Dina"},
10921099
"sv": {menuTitle: "svenska"},

unpacked/localization/es/es.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ MathJax.Localization.addTranslation("es",null,{
3939
Processing: "Procesando",
4040
TypesetMath: "Composici\u00F3n tipogr\u00E1fica en curso: %1 %%",
4141
Typesetting: "Composici\u00F3n tipogr\u00E1fica",
42-
MathJaxNotSupported: "El navegador no admite MathJax"
42+
MathJaxNotSupported: "El navegador no admite MathJax",
43+
CookieConfig: "MathJax ha encontrado una cookie de configuraci\u00F3n de usuario que incluye c\u00F3digo para ser ejecutado.\u00BFQuieres ejecutarlo?\n\\n\n(Pulse Cancelar al menos que configure la cookie)."
4344
}
4445
},
4546
"FontWarnings": {},
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/fa/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("fa","FontWarnings",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
29+
}
30+
});
31+
32+
MathJax.Ajax.loadComplete("[MathJax]/localization/fa/FontWarnings.js");

unpacked/localization/fa/HTML-CSS.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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/fa/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("fa","HTML-CSS",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
LoadWebFont: "\u0628\u0627\u0631\u06AF\u06CC\u0631\u06CC \u0642\u0644\u0645 \u0648\u0628\u06CC %1",
29+
CantLoadWebFont: "\u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646 \u0642\u0644\u0645 \u0648\u0628\u06CC %1 \u0631\u0627 \u0628\u0627\u0631\u06AF\u06CC\u0631\u06CC \u06A9\u0631\u062F",
30+
FirefoxCantLoadWebFont: "\u0641\u0627\u06CC\u0631\u0641\u0627\u06A9\u0633 \u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646\u062F \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u0648\u0628\u06CC \u0631\u0627 \u0627\u0632 \u06CC\u06A9 \u0645\u06CC\u0632\u0627\u0646 \u0627\u0632 \u0631\u0627\u0647 \u062F\u0648\u0631 \u0628\u0627\u0631\u06AF\u06CC\u0631\u06CC \u06A9\u0646\u062F",
31+
CantFindFontUsing: "\u0646\u0645\u06CC\u200C\u062A\u0648\u0627\u0646 \u06CC\u06A9 \u0642\u0644\u0645 \u0645\u0639\u062A\u0628\u0631 \u0628\u0627\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 %1 \u06CC\u0627\u0641\u062A",
32+
WebFontsNotAvailable: "\u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u0648\u0628\u06CC \u0646\u0627\u0645\u0648\u062C\u0648\u062F\u0646\u062F -- \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u062A\u0635\u0648\u06CC\u0631\u06CC \u0628\u0647 \u062C\u0627\u06CC \u0622\u0646"
33+
}
34+
});
35+
36+
MathJax.Ajax.loadComplete("[MathJax]/localization/fa/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/fa/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("fa","HelpDialog",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
29+
}
30+
});
31+
32+
MathJax.Ajax.loadComplete("[MathJax]/localization/fa/HelpDialog.js");

unpacked/localization/fa/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/fa/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("fa","MathML",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
BadMglyph: "mglyph \u0646\u0627\u0645\u0646\u0627\u0633\u0628: %1",
29+
BadMglyphFont: "\u0642\u0644\u0645 \u0646\u0627\u0645\u0646\u0627\u0633\u0628: %1",
30+
UnknownNodeType: "\u0646\u0648\u0639 \u06AF\u0631\u0647\u0654 \u0646\u0627\u0634\u0646\u0627\u062E\u062A\u0647: %1",
31+
UnexpectedTextNode: "\u06AF\u0631\u0647\u0654 \u0645\u062A\u0646\u06CC \u063A\u06CC\u0631\u0645\u0646\u062A\u0638\u0631\u0647:\u200C %1",
32+
ErrorParsingMathML: "\u062E\u0637\u0627\u06CC \u062A\u062C\u0632\u06CC\u0647\u0654 MathML",
33+
ParsingError: "\u062E\u0637\u0627\u06CC \u062A\u062C\u0632\u06CC\u0647\u0654 MathML: %1",
34+
MathMLSingleElement: "MathML \u0628\u0627\u06CC\u062F \u0628\u0647 \u062F\u0646\u0628\u0627\u0644 \u06CC\u06A9 \u0639\u0646\u0635\u0631 \u0648\u0627\u062D\u062F \u0628\u06CC\u0627\u06CC\u062F"
35+
}
36+
});
37+
38+
MathJax.Ajax.loadComplete("[MathJax]/localization/fa/MathML.js");

unpacked/localization/fa/MathMenu.js

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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/fa/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("fa","MathMenu",{
25+
version: "2.3",
26+
isLoaded: true,
27+
strings: {
28+
Show: "\u0646\u0645\u0627\u06CC\u0634 \u0631\u06CC\u0627\u0636\u06CC\u0627\u062A \u0628\u0647\u200C\u0639\u0646\u0648\u0627\u0646",
29+
MathMLcode: "\u06A9\u062F MathML",
30+
OriginalMathML: "MathML \u0627\u0635\u0644\u06CC",
31+
TeXCommands: "\u062F\u0633\u062A\u0648\u0631\u0627\u062A \u062A\u06A9",
32+
AsciiMathInput: "\u0648\u0631\u0648\u062F\u06CC AsciiMathML",
33+
Original: "\u062D\u0627\u0644\u062A \u0627\u0635\u0644\u06CC",
34+
ErrorMessage: "\u067E\u06CC\u0627\u0645 \u062E\u0637\u0627",
35+
Annotation: "\u06CC\u0627\u062F\u062F\u0627\u0634\u062A",
36+
TeX: "\u062A\u06A9",
37+
StarMath: "StarMath",
38+
Maple: "Maple",
39+
ContentMathML: "MathML \u0645\u062D\u062A\u0648\u0627",
40+
OpenMath: "OpenMath",
41+
texHints: "\u0646\u0645\u0627\u06CC\u0634 \u0646\u06A9\u062A\u0647\u200C\u0647\u0627\u06CC \u062A\u06A9 \u062F\u0631 MathML",
42+
Settings: "\u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u0631\u06CC\u0627\u0636\u06CC\u0627\u062A",
43+
ZoomTrigger: "\u0645\u0627\u0634\u0647\u0654 \u0628\u0632\u0631\u06AF/\u06A9\u0648\u0686\u06A9\u200C\u0646\u0645\u0627\u06CC\u06CC",
44+
Hover: "\u0642\u0631\u0627\u0631\u062F\u0627\u062F\u0646 \u0645\u0648\u0634\u0648\u0627\u0631\u0647 \u0628\u0631 \u0631\u0648\u06CC \u0622\u0646",
45+
Click: "\u06A9\u0644\u06CC\u06A9",
46+
DoubleClick: "\u062F\u0648\u0628\u0627\u0631 \u06A9\u0644\u06CC\u06A9",
47+
NoZoom: "\u0628\u062F\u0648\u0646 \u0628\u0632\u0631\u06AF/\u06A9\u0648\u0686\u06A9\u200C\u0646\u0645\u0627\u06CC\u06CC",
48+
Option: "\u06AF\u0632\u06CC\u0646\u0647",
49+
Alt: "\u062F\u06AF\u0631\u0633\u0627\u0632",
50+
Command: "\u062F\u0633\u062A\u0648\u0631",
51+
Control: "\u0645\u0647\u0627\u0631",
52+
Shift: "\u062A\u0628\u062F\u06CC\u0644",
53+
ZoomFactor: "\u0636\u0631\u06CC\u0628 \u0628\u0632\u0631\u06AF\u0646\u0645\u0627\u06CC\u06CC",
54+
Renderer: "\u0627\u0631\u0627\u0626\u0647\u200C\u062F\u0647\u0646\u062F\u0647\u0654 \u0631\u06CC\u0627\u0636\u06CC",
55+
MenuEvents: "\u0631\u0648\u06CC\u062F\u0627\u062F\u0647\u0627\u06CC \u0645\u0646\u0648",
56+
MouseEvents: "\u0631\u0648\u06CC\u062F\u0627\u062F\u0647\u0627\u06CC \u0645\u0648\u0634\u0648\u0627\u0631\u0647",
57+
MenuAndMouse: "\u0631\u0648\u06CC\u062F\u0627\u062F\u0647\u0627\u06CC \u0645\u0648\u0634\u0648\u0627\u0631\u0647 \u0648 \u0645\u0646\u0648",
58+
FontPrefs: "\u062A\u0631\u062C\u06CC\u062D\u0627\u062A \u0642\u0644\u0645",
59+
ForHTMLCSS: "\u0628\u0631\u0627\u06CC \u0627\u0686\u200C\u062A\u06CC\u200C\u0627\u0645\u200C\u0627\u0644-\u0633\u06CC\u200C\u0627\u0633\u200C\u0627\u0633:",
60+
Auto: "\u062E\u0648\u062F\u06A9\u0627\u0631",
61+
TeXLocal: "\u062A\u06A9 (\u0645\u062D\u0644\u06CC)",
62+
TeXWeb: "\u062A\u06A9 (\u0648\u0628)",
63+
TeXImage: "\u062A\u06A9 (\u0646\u06AF\u0627\u0631\u0647)",
64+
STIXLocal: "STIX (\u0645\u062D\u0644\u06CC)",
65+
ContextMenu: "\u0645\u0646\u0648 \u0645\u062A\u0646\u06CC",
66+
Browser: "\u0645\u0631\u0648\u0631\u06AF\u0631",
67+
Scale: "\u0645\u0642\u06CC\u0627\u0633 \u0647\u0645\u0647 \u0631\u06CC\u0627\u0636\u06CC ...",
68+
Locale: "\u0632\u0628\u0627\u0646",
69+
LoadLocale: "\u0628\u0627\u0631\u06AF\u06CC\u0631\u06CC \u0627\u0632 \u0646\u0634\u0627\u0646\u06CC \u0627\u06CC\u0646\u062A\u0631\u0646\u062A\u06CC ...",
70+
About: "\u062F\u0631\u0628\u0627\u0631\u0647\u0654 MathJax",
71+
Help: "\u0631\u0627\u0647\u0646\u0645\u0627\u06CC MathJax",
72+
localTeXfonts: "\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u062A\u06A9 \u0645\u062D\u0644\u06CC",
73+
webTeXfonts: "\u0628\u0627 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645 \u0648\u0628\u06CC \u062A\u06A9",
74+
imagefonts: "\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u062A\u0635\u0648\u06CC\u0631\u06CC",
75+
localSTIXfonts: "\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC STIX \u0645\u062D\u0644\u06CC",
76+
webSVGfonts: "\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u0648\u0628\u06CC SVG",
77+
genericfonts: "\u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u0627\u0632 \u0642\u0644\u0645\u200C\u0647\u0627\u06CC \u0639\u0645\u0648\u0645\u06CC \u06CC\u0648\u0646\u06CC\u06A9\u062F",
78+
wofforotffonts: "\u0642\u0644\u0645\u200C\u0647\u0627\u06CC woff \u06CC\u0627 otf",
79+
eotffonts: "\u0642\u0644\u0645\u200C\u0647\u0627\u06CC eot",
80+
svgfonts: "\u0642\u0644\u0645\u200C\u0647\u0627\u06CC svg",
81+
WebkitNativeMMLWarning: "\u0628\u0647 \u0646\u0638\u0631 \u0645\u0631\u0648\u0631\u06AF\u0631 \u0634\u0645\u0627 \u0627\u0632 MathML \u0628\u0647\u200C\u0635\u0648\u0631\u062A \u0645\u062D\u0644\u06CC \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0646\u0645\u06CC\u200C\u06A9\u0646\u062F\u060C \u0628\u0646\u0627\u0628\u0631\u0627\u06CC\u0646 \u0631\u0641\u062A\u0646 \u0628\u0647 \u062D\u0627\u0644\u062A \u062E\u0631\u0648\u062C\u06CC MathML \u0645\u0645\u06A9\u0646 \u0627\u0633\u062A \u06A9\u0647 \u0631\u06CC\u0627\u0636\u06CC\u0627\u062A \u0645\u0648\u062C\u0648\u062F \u062F\u0631 \u0635\u0641\u062D\u0647 \u063A\u06CC\u0631\u0642\u0627\u0628\u0644 \u062E\u0648\u0627\u0646\u062F\u0646 \u0634\u0648\u0646\u062F.",
82+
MSIENativeMMLWarning: "\u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0627\u06A9\u0633\u067E\u0644\u0648\u0631\u0631 \u0628\u0647 \u0627\u0641\u0632\u0627\u06CC\u0647\u0654 MathPlayer \u0628\u0631\u0627\u06CC \u067E\u0631\u062F\u0627\u0632\u0634 \u062E\u0631\u0648\u062C\u06CC MathML \u0646\u06CC\u0627\u0632\u0645\u0646\u062F \u0627\u0633\u062A.",
83+
NoOriginalForm: "\u062D\u0627\u0644\u062A \u0627\u0648\u0644\u0628\u0647 \u0645\u0648\u062C\u0648\u062F \u0646\u06CC\u0633\u062A",
84+
Close: "\u0628\u0633\u062A\u0646",
85+
EqSource: "\u0645\u0646\u0628\u0639 \u0645\u0639\u0627\u062F\u0644\u0647\u0654 MathJax"
86+
}
87+
});
88+
89+
MathJax.Ajax.loadComplete("[MathJax]/localization/fa/MathMenu.js");

0 commit comments

Comments
 (0)