Fix some places where localization strings are wrongly used. #504

This commit is contained in:
Frédéric Wang 2013-08-02 14:26:55 +02:00
parent 4263db98d3
commit 227aebed65
6 changed files with 11 additions and 12 deletions

View File

@ -2655,7 +2655,7 @@ MathJax.Hub.Startup = {
BASE.InputJax = JAX.Subclass({
elementJax: "mml", // the element jax to load for this input jax
sourceMenuTitle: /*_(MathMenu)*/ ["OriginalForm","Original Form"],
sourceMenuTitle: /*_(MathMenu)*/ ["Original","Original Form"],
copyTranslate: true,
Process: function (script,state) {
var queue = CALLBACK.Queue(), file;
@ -2851,7 +2851,7 @@ MathJax.Hub.Startup = {
};
BASE.InputJax.Error = {
id: "Error", version: "2.2", config: {},
sourceMenuTitle: /*_(MathMenu)*/ ["OriginalForm","Original Form"]
sourceMenuTitle: /*_(MathMenu)*/ ["Original","Original Form"]
};
})("MathJax");

View File

@ -26,7 +26,7 @@ MathJax.Hub.Config({
mpMouse: true
},
errorSettings: {
message: ["[Math Error]"]
message: ["[",["MathError","MathError"],"]"]
}
});

View File

@ -26,7 +26,7 @@ MathJax.Hub.Config({
mpMouse: true
},
errorSettings: {
message: ["[Math Error]"]
message: ["[",["MathError","MathError"],"]"]
}
});

View File

@ -237,8 +237,7 @@ MathJax.Hub.Config({
// jax that prevents it from operating properly).
//
errorSettings: {
message: ["[Math Processing Error]"], // HTML snippet structure for message to use
messageId: "MathProcessingError", // ID of snippet for localization
message: ["[",["MathProcessingError","Math Processing Error"],"]"],
style: {color: "#CC0000", "font-style":"italic"} // style for message
},

View File

@ -134,7 +134,7 @@
"This will render slower than usual, and the mathematics may not print "+
"at the full resolution of your printer."],
["fonts"],
["webfonts"]
["webFonts"]
],
noFonts: [
@ -146,7 +146,7 @@
"your browser will be able to display them. Some characters "+
"may not show up properly, or possibly not at all."],
["fonts"],
["webfonts"]
["webFonts"]
]
},
@ -178,9 +178,9 @@
[["span",{style:{position:"relative", bottom:".2em"}},["x"]]]
]],
webfonts: [
webFonts: [
["p"],
["webfonts",
["webFonts",
"Most modern browsers allow for fonts to be downloaded over the web. "+
"Updating to a more recent version of your browser (or changing "+
"browsers) could improve the quality of the mathematics on this page."
@ -252,7 +252,7 @@
data.splice.apply(data,[i,1].concat(CONFIG.HTML[data[i][0]]));
} else if (typeof data[i][1] === "string") {
var message = MathJax.Localization.lookupPhrase(["FontWarnings",data[i][0]],data[i][1]);
message = MathJax.Localization.processString(message,data[i].slice(2),"FontWarnings");
message = MathJax.Localization.processMarkdown(message,data[i].slice(2),"FontWarnings");
data.splice.apply(data,[i,1].concat(message));
i += message.length;
} else {i++}

View File

@ -1435,7 +1435,7 @@
while (attr !== "") {
match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i);
if (!match)
{TEX.Error("InvalidMathMLAttr","Invalid MathML attribute: %1",attr)}
{TEX.Error(["InvalidMathMLAttr","Invalid MathML attribute: %1",attr])}
if (!MML[type].prototype.defaults[match[1]] && !this.MmlTokenAllow[match[1]]) {
TEX.Error(["UnknownAttrForElement",
"%1 is not a recognized attribute for %2",