Skip to content

Commit a43a4af

Browse files
committed
Add source files for Italian localization
1 parent 94e5077 commit a43a4af

File tree

7 files changed

+774
-0
lines changed

7 files changed

+774
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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/en/FontWarnings.js
7+
*
8+
* Copyright (c) 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("en","FontWarnings",{
25+
version: "2.2",
26+
isLoaded: true,
27+
strings: {
28+
29+
webFont:
30+
"MathJax is using web-based fonts to display the mathematics "+
31+
"on this page. These take time to download, so the page would "+
32+
"render faster if you installed math fonts directly in your "+
33+
"system's font folder.",
34+
35+
imageFonts:
36+
"MathJax is using its image fonts rather than local or web-based fonts. "+
37+
"This will render slower than usual, and the mathematics may not print "+
38+
"at the full resolution of your printer.",
39+
40+
noFonts:
41+
"MathJax is unable to locate a font to use to display "+
42+
"its mathematics, and image fonts are not available, so it "+
43+
"is falling back on generic unicode characters in hopes that "+
44+
"your browser will be able to display them. Some characters "+
45+
"may not show up properly, or possibly not at all.",
46+
47+
webFonts:
48+
"Most modern browsers allow for fonts to be downloaded over the web. "+
49+
"Updating to a more recent version of your browser (or changing "+
50+
"browsers) could improve the quality of the mathematics on this page.",
51+
52+
fonts:
53+
"MathJax can use either the [STIX fonts](%1) or the [MathJax TeX fonts](%2). " +
54+
"Download and install one of those fonts to improve your MathJax experience.",
55+
56+
STIXPage:
57+
"This page is designed to use the [STIX fonts](%1). " +
58+
"Download and install those fonts to improve your MathJax experience.",
59+
60+
TeXPage:
61+
"This page is designed to use the [MathJax TeX fonts](%1). " +
62+
"Download and install those fonts to improve your MathJax experience."
63+
64+
}
65+
});
66+
67+
MathJax.Ajax.loadComplete("[MathJax]/localization/en/FontWarnings.js");

unpacked/localization/it/HTML-CSS.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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/en/HTML-CSS.js
7+
*
8+
* Copyright (c) 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("en","HTML-CSS",{
25+
version: "2.2",
26+
isLoaded: true,
27+
strings: {
28+
29+
LoadWebFont:
30+
"Loading web-font %1", // NOTE: %1 is the name of a webfont file
31+
32+
CantLoadWebFont:
33+
"Can't load web font %1",
34+
35+
FirefoxCantLoadWebFont:
36+
"Firefox can't load web fonts from a remote host",
37+
38+
CantFindFontUsing:
39+
"Can't find a valid font using %1", // Note: %1 is a list of font names
40+
41+
WebFontsNotAvailable:
42+
"Web-Fonts not available -- using image fonts instead"
43+
44+
}
45+
});
46+
47+
MathJax.Ajax.loadComplete("[MathJax]/localization/en/HTML-CSS.js");
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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/en/HelpDialog.js
7+
*
8+
* Copyright (c) 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("en","HelpDialog",{
25+
version: "2.2",
26+
isLoaded: true,
27+
strings: {
28+
29+
Help:
30+
"MathJax Help",
31+
32+
MathJax:
33+
"*MathJax* is a JavaScript library that allows page authors to include " + // NOTE: Markdown syntax *...*
34+
"mathematics within their web pages. As a reader, you don't need to do " +
35+
"anything to make that happen.",
36+
37+
Browsers:
38+
"*Browsers*: MathJax works with all modern browsers including IE6+, Firefox 3+, " +
39+
"Chrome 0.2+, Safari 2+, Opera 9.6+ and most mobile browsers.",
40+
41+
Menu:
42+
"*Math Menu*: MathJax adds a contextual menu to equations. Right-click or " +
43+
"CTRL-click on any mathematics to access the menu.",
44+
45+
ShowMath:
46+
"*Show Math As* allows you to view the formula's source markup " +
47+
"for copy & paste (as MathML or in its original format).",
48+
49+
Settings:
50+
"*Settings* gives you control over features of MathJax, such as the " +
51+
"size of the mathematics, and the mechanism used to display equations.",
52+
53+
Language:
54+
"*Language* lets you select the language used by MathJax for its menus " +
55+
"and warning messages.",
56+
57+
Zoom:
58+
"*Math Zoom*: If you are having difficulty reading an equation, MathJax can " +
59+
"enlarge it to help you see it better.",
60+
61+
Accessibilty:
62+
"*Accessibility*: MathJax will automatically work with screen readers to make " +
63+
"mathematics accessible to the visually impaired.",
64+
65+
Fonts:
66+
"*Fonts*: MathJax will use certain math fonts if they are installed on your " +
67+
"computer; otherwise, it will use web-based fonts. Although not required, " +
68+
"locally installed fonts will speed up typesetting. We suggest installing " +
69+
"the [STIX fonts](%1)." // NOTE: Markdown syntax for links. %1 is a URL to the STIX fonts
70+
71+
}
72+
});
73+
74+
MathJax.Ajax.loadComplete("[MathJax]/localization/en/HelpDialog.js");

unpacked/localization/it/MathML.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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/en/MathML.js
7+
*
8+
* Copyright (c) 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("en","MathML",{
25+
version: "2.2",
26+
isLoaded: true,
27+
strings: {
28+
29+
BadMglyph: // NOTE: refers to MathML's mglyph element.
30+
"Bad mglyph: %1",
31+
32+
BadMglyphFont:
33+
"Bad font: %1",
34+
35+
MathPlayer:
36+
"MathJax was not able to set up MathPlayer.\n\n"+
37+
"If MathPlayer is not installed, you need to install it first.\n"+
38+
"Otherwise, your security settings may be preventing ActiveX \n"+
39+
"controls from running. Use the Internet Options item under\n"+
40+
"the Tools menu and select the Security tab, then press the\n"+
41+
"Custom Level button. Check that the settings for\n"+
42+
"'Run ActiveX Controls', and 'Binary and script behaviors'\n"+
43+
"are enabled.\n\n"+
44+
"Currently you will see error messages rather than\n"+
45+
"typeset mathematics.",
46+
47+
CantCreateXMLParser:
48+
"MathJax can't create an XML parser for MathML. Check that\n"+
49+
"the 'Script ActiveX controls marked safe for scripting' security\n"+
50+
"setting is enabled (use the Internet Options item in the Tools\n"+
51+
"menu, and select the Security panel, then press the Custom Level\n"+
52+
"button to check this).\n\n"+
53+
"MathML equations will not be able to be processed by MathJax.",
54+
55+
UnknownNodeType:
56+
"Unknown node type: %1", // NOTE: refers to XML nodes
57+
58+
UnexpectedTextNode:
59+
"Unexpected text node: %1",
60+
61+
ErrorParsingMathML:
62+
"Error parsing MathML",
63+
64+
ParsingError:
65+
"Error parsing MathML: %1",
66+
67+
MathMLSingleElement:
68+
"MathML must be formed by a single element",
69+
70+
MathMLRootElement:
71+
"MathML must be formed by a <math> element, not %1"
72+
73+
}
74+
});
75+
76+
MathJax.Ajax.loadComplete("[MathJax]/localization/en/MathML.js");

0 commit comments

Comments
 (0)