Fix some places where localization strings are wrongly used. #504
This commit is contained in:
parent
4263db98d3
commit
227aebed65
|
@ -2655,7 +2655,7 @@ MathJax.Hub.Startup = {
|
||||||
|
|
||||||
BASE.InputJax = JAX.Subclass({
|
BASE.InputJax = JAX.Subclass({
|
||||||
elementJax: "mml", // the element jax to load for this input jax
|
elementJax: "mml", // the element jax to load for this input jax
|
||||||
sourceMenuTitle: /*_(MathMenu)*/ ["OriginalForm","Original Form"],
|
sourceMenuTitle: /*_(MathMenu)*/ ["Original","Original Form"],
|
||||||
copyTranslate: true,
|
copyTranslate: true,
|
||||||
Process: function (script,state) {
|
Process: function (script,state) {
|
||||||
var queue = CALLBACK.Queue(), file;
|
var queue = CALLBACK.Queue(), file;
|
||||||
|
@ -2851,7 +2851,7 @@ MathJax.Hub.Startup = {
|
||||||
};
|
};
|
||||||
BASE.InputJax.Error = {
|
BASE.InputJax.Error = {
|
||||||
id: "Error", version: "2.2", config: {},
|
id: "Error", version: "2.2", config: {},
|
||||||
sourceMenuTitle: /*_(MathMenu)*/ ["OriginalForm","Original Form"]
|
sourceMenuTitle: /*_(MathMenu)*/ ["Original","Original Form"]
|
||||||
};
|
};
|
||||||
|
|
||||||
})("MathJax");
|
})("MathJax");
|
||||||
|
|
|
@ -26,7 +26,7 @@ MathJax.Hub.Config({
|
||||||
mpMouse: true
|
mpMouse: true
|
||||||
},
|
},
|
||||||
errorSettings: {
|
errorSettings: {
|
||||||
message: ["[Math Error]"]
|
message: ["[",["MathError","MathError"],"]"]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ MathJax.Hub.Config({
|
||||||
mpMouse: true
|
mpMouse: true
|
||||||
},
|
},
|
||||||
errorSettings: {
|
errorSettings: {
|
||||||
message: ["[Math Error]"]
|
message: ["[",["MathError","MathError"],"]"]
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -237,8 +237,7 @@ MathJax.Hub.Config({
|
||||||
// jax that prevents it from operating properly).
|
// jax that prevents it from operating properly).
|
||||||
//
|
//
|
||||||
errorSettings: {
|
errorSettings: {
|
||||||
message: ["[Math Processing Error]"], // HTML snippet structure for message to use
|
message: ["[",["MathProcessingError","Math Processing Error"],"]"],
|
||||||
messageId: "MathProcessingError", // ID of snippet for localization
|
|
||||||
style: {color: "#CC0000", "font-style":"italic"} // style for message
|
style: {color: "#CC0000", "font-style":"italic"} // style for message
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
"This will render slower than usual, and the mathematics may not print "+
|
"This will render slower than usual, and the mathematics may not print "+
|
||||||
"at the full resolution of your printer."],
|
"at the full resolution of your printer."],
|
||||||
["fonts"],
|
["fonts"],
|
||||||
["webfonts"]
|
["webFonts"]
|
||||||
],
|
],
|
||||||
|
|
||||||
noFonts: [
|
noFonts: [
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
"your browser will be able to display them. Some characters "+
|
"your browser will be able to display them. Some characters "+
|
||||||
"may not show up properly, or possibly not at all."],
|
"may not show up properly, or possibly not at all."],
|
||||||
["fonts"],
|
["fonts"],
|
||||||
["webfonts"]
|
["webFonts"]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -178,9 +178,9 @@
|
||||||
[["span",{style:{position:"relative", bottom:".2em"}},["x"]]]
|
[["span",{style:{position:"relative", bottom:".2em"}},["x"]]]
|
||||||
]],
|
]],
|
||||||
|
|
||||||
webfonts: [
|
webFonts: [
|
||||||
["p"],
|
["p"],
|
||||||
["webfonts",
|
["webFonts",
|
||||||
"Most modern browsers allow for fonts to be downloaded over the web. "+
|
"Most modern browsers allow for fonts to be downloaded over the web. "+
|
||||||
"Updating to a more recent version of your browser (or changing "+
|
"Updating to a more recent version of your browser (or changing "+
|
||||||
"browsers) could improve the quality of the mathematics on this page."
|
"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]]));
|
data.splice.apply(data,[i,1].concat(CONFIG.HTML[data[i][0]]));
|
||||||
} else if (typeof data[i][1] === "string") {
|
} else if (typeof data[i][1] === "string") {
|
||||||
var message = MathJax.Localization.lookupPhrase(["FontWarnings",data[i][0]],data[i][1]);
|
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));
|
data.splice.apply(data,[i,1].concat(message));
|
||||||
i += message.length;
|
i += message.length;
|
||||||
} else {i++}
|
} else {i++}
|
||||||
|
|
|
@ -1435,7 +1435,7 @@
|
||||||
while (attr !== "") {
|
while (attr !== "") {
|
||||||
match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i);
|
match = attr.match(/^([a-z]+)\s*=\s*(\'[^']*'|"[^"]*"|[^ ]*)\s*/i);
|
||||||
if (!match)
|
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]]) {
|
if (!MML[type].prototype.defaults[match[1]] && !this.MmlTokenAllow[match[1]]) {
|
||||||
TEX.Error(["UnknownAttrForElement",
|
TEX.Error(["UnknownAttrForElement",
|
||||||
"%1 is not a recognized attribute for %2",
|
"%1 is not a recognized attribute for %2",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user