Fix a number of message ID's and message texts. Add menuTitle to fr.js file.

This commit is contained in:
Davide P. Cervone 2013-04-09 13:13:25 -04:00
parent eeea99922b
commit 7cd9180b0b
8 changed files with 31 additions and 27 deletions

View File

@ -773,7 +773,7 @@
MENU.Scale = function () { MENU.Scale = function () {
var HTMLCSS = OUTPUT["HTML-CSS"], nMML = OUTPUT.NativeMML, SVG = OUTPUT.SVG; var HTMLCSS = OUTPUT["HTML-CSS"], nMML = OUTPUT.NativeMML, SVG = OUTPUT.SVG;
var SCALE = (HTMLCSS||nMML||SVG||{config:{scale:100}}).config.scale; var SCALE = (HTMLCSS||nMML||SVG||{config:{scale:100}}).config.scale;
var scale = prompt(_("ScaleMath", "Scale all mathematics (compared to surrounding text) by"),SCALE+"%"); var scale = prompt(_("ScaleMath","Scale all mathematics (compared to surrounding text) by"),SCALE+"%");
if (scale) { if (scale) {
if (scale.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)) { if (scale.match(/^\s*\d+(\.\d*)?\s*%?\s*$/)) {
scale = parseFloat(scale); scale = parseFloat(scale);
@ -873,7 +873,7 @@
SVG: { SVG: {
MSIE: ["MSIESVGWarning", MSIE: ["MSIESVGWarning",
"SVG is not implemented in Internet Explorer prior to " + "SVG is not implemented in Internet Explorer prior to " +
"IE9, or when the browser is emulating IE8 or below. " + "IE9 or when it is emulating IE8 or below. " +
"Switching to SVG output will cause the mathemtics to " + "Switching to SVG output will cause the mathemtics to " +
"not display properly."] "not display properly."]
} }

View File

@ -460,7 +460,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
}, },
EndRow: function () { EndRow: function () {
if (this.row.length != 1) { if (this.row.length != 1) {
TEX.Error(["MultipleRowsOneCol", TEX.Error(["MultlineRowsOneCol",
"multline rows must have exactly one column"]); "multline rows must have exactly one column"]);
} }
this.table.push(this.row); this.row = []; this.table.push(this.row); this.row = [];

View File

@ -287,7 +287,7 @@
return(this.parseDIV); return(this.parseDIV);
}, },
parserCreationError: function () { parserCreationError: function () {
alert(_("MathPlayer", alert(_("CantCreateXMLParser",
"MathJax can't create an XML parser for MathML. Check that\n"+ "MathJax can't create an XML parser for MathML. Check that\n"+
"the 'Script ActiveX controls marked safe for scripting' security\n"+ "the 'Script ActiveX controls marked safe for scripting' security\n"+
"setting is enabled (use the Internet Options item in the Tools\n"+ "setting is enabled (use the Internet Options item in the Tools\n"+

View File

@ -80,8 +80,8 @@
var STACKITEM = STACK.Item = MathJax.Object.Subclass({ var STACKITEM = STACK.Item = MathJax.Object.Subclass({
type: "base", type: "base",
closeError: ["ExtraCloseMissingOpen","Extra close brace or missing open brace"], closeError: /*_()*/ ["ExtraCloseMissingOpen","Extra close brace or missing open brace"],
rightError: ["MissingLeftExtraRight","Missing \\left or extra \\right"], rightError: /*_()*/ ["MissingLeftExtraRight","Missing \\left or extra \\right"],
Init: function () { Init: function () {
if (this.isOpen) {this.env = {}} if (this.isOpen) {this.env = {}}
this.data = []; this.data = [];
@ -98,7 +98,7 @@
if (item.type === "over" && this.isOpen) {item.num = this.mmlData(false); this.data = []} if (item.type === "over" && this.isOpen) {item.num = this.mmlData(false); this.data = []}
if (item.type === "cell" && this.isOpen) { if (item.type === "cell" && this.isOpen) {
if (item.linebreak) {return false} if (item.linebreak) {return false}
TEX.Error(["Misplaced %1","Misplaced ",item.name]); TEX.Error(["Misplaced","Misplaced %1",item.name]);
} }
if (item.isClose && this[item.type+"Error"]) {TEX.Error(this[item.type+"Error"])} if (item.isClose && this[item.type+"Error"]) {TEX.Error(this[item.type+"Error"])}
if (!item.isNotStack) {return true} if (!item.isNotStack) {return true}
@ -129,7 +129,7 @@
STACKITEM.open = STACKITEM.Subclass({ STACKITEM.open = STACKITEM.Subclass({
type: "open", isOpen: true, type: "open", isOpen: true,
stopError: ["ExtraOpenMissingClose","Extra open brace or missing close brace"], stopError: /*_()*/ ["ExtraOpenMissingClose","Extra open brace or missing close brace"],
checkItem: function (item) { checkItem: function (item) {
if (item.type === "close") { if (item.type === "close") {
var mml = this.mmlData(); var mml = this.mmlData();
@ -155,7 +155,7 @@
STACKITEM.subsup = STACKITEM.Subclass({ STACKITEM.subsup = STACKITEM.Subclass({
type: "subsup", type: "subsup",
stopError: ["MissingScript","Missing superscript or subscript argument"], stopError: /*_()*/ ["MissingScript","Missing superscript or subscript argument"],
checkItem: function (item) { checkItem: function (item) {
var script = ["","subscript","superscript"][this.position]; var script = ["","subscript","superscript"][this.position];
if (item.type === "open" || item.type === "left") {return true} if (item.type === "open" || item.type === "left") {return true}
@ -195,7 +195,7 @@
STACKITEM.left = STACKITEM.Subclass({ STACKITEM.left = STACKITEM.Subclass({
type: "left", isOpen: true, delim: '(', type: "left", isOpen: true, delim: '(',
stopError: ["ExtraLeftMissingRight", "Extra \\left or missing \\right"], stopError: /*_()*/ ["ExtraLeftMissingRight", "Extra \\left or missing \\right"],
checkItem: function (item) { checkItem: function (item) {
if (item.type === "right") { if (item.type === "right") {
var mml = MML.mfenced(this.data.length === 1 ? this.data[0] : MML.mrow.apply(MML,this.data)); var mml = MML.mfenced(this.data.length === 1 ? this.data[0] : MML.mrow.apply(MML,this.data));
@ -1371,7 +1371,7 @@
}, },
MoveRoot: function (name,id) { MoveRoot: function (name,id) {
if (!this.stack.env.inRoot) if (!this.stack.env.inRoot)
{TEX.Error(["BadMoveRoot","%1 can appear only within a root"])} {TEX.Error(["MisplacedMoveRoot","%1 can appear only within a root",name])}
if (this.stack.global[id]) if (this.stack.global[id])
{TEX.Error(["MultipleMoveRoot","Multiple use of %1",name])} {TEX.Error(["MultipleMoveRoot","Multiple use of %1",name])}
var n = this.GetArgument(name); var n = this.GetArgument(name);
@ -1432,7 +1432,7 @@
data = this.GetArgument(name), data = this.GetArgument(name),
def = {attrNames:[]}, match; def = {attrNames:[]}, match;
if (!MML[type] || !MML[type].prototype.isToken) if (!MML[type] || !MML[type].prototype.isToken)
{TEX.Error(["NotMathMLToken", "%1 is not a token element",type])} {TEX.Error(["NotMathMLToken","%1 is not a token element",type])}
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)
@ -1589,7 +1589,7 @@
this.string = this.AddArgs(macro,this.string.slice(this.i)); this.string = this.AddArgs(macro,this.string.slice(this.i));
this.i = 0; this.i = 0;
if (++this.macroCount > TEX.config.MAXMACROS) { if (++this.macroCount > TEX.config.MAXMACROS) {
TEX.Error(["MaxMacroSub", TEX.Error(["MaxMacroSub1",
"MathJax maximum macro substitution count exceeded; " + "MathJax maximum macro substitution count exceeded; " +
"is there a recursive macro call?"]); "is there a recursive macro call?"]);
} }
@ -1866,7 +1866,7 @@
case '\\': this.i++; break; case '\\': this.i++; break;
case '}': case '}':
if (parens-- <= 0) { if (parens-- <= 0) {
TEX.Error(["ExtraCloseBrace", TEX.Error(["ExtraCloseLooking",
"Extra close brace while looking for %1","']'"]); "Extra close brace while looking for %1","']'"]);
} }
break; break;
@ -1928,7 +1928,7 @@
case '{': parens++; break; case '{': parens++; break;
case '}': case '}':
if (parens == 0) { if (parens == 0) {
TEX.Error(["ExtraCloseBrace", TEX.Error(["ExtraCloseLooking",
"Extra close brace while looking for %1",token]) "Extra close brace while looking for %1",token])
} }
parens--; parens--;

View File

@ -141,10 +141,6 @@
// //
// If that fails, give an alert about security settings // If that fails, give an alert about security settings
// //
// Localization: this seems to use "\n" to force new lines in the
// dialog: is it really necessary? If so, we need a localization note
// to explain that to localizers. Handling of concatenation might
// be an additional difficulty for the string extractor.
alert(MathJax.Localization._(["MathML", "MathPlayer"], alert(MathJax.Localization._(["MathML", "MathPlayer"],
"MathJax was not able to set up MathPlayer.\n\n"+ "MathJax was not able to set up MathPlayer.\n\n"+
"If MathPlayer is not installed, you need to install it first.\n"+ "If MathPlayer is not installed, you need to install it first.\n"+

View File

@ -78,6 +78,16 @@ MathJax.Localization.addTranslation("fr","MathMenu",{
"toutes les fonctionnalités requises par MathJax, certaines " + "toutes les fonctionnalités requises par MathJax, certaines " +
"expressions pourront donc ne pas s'afficher correctement.", "expressions pourront donc ne pas s'afficher correctement.",
LoadURL:
"Load translation data from this URL:",
BadURL:
"The URL should be for a javascript file that defines MathJax translation data. " +
"Javascript file names should end with '.js'",
BadData:
"Failed to load translation data from %1",
SwitchAnyway: SwitchAnyway:
"Êtes vous certain de vouloir changer le mode de rendu ?\n\n" + "Êtes vous certain de vouloir changer le mode de rendu ?\n\n" +
"Appuyez sur OK pour valider ou Annuler pour continuer avec le " + "Appuyez sur OK pour valider ou Annuler pour continuer avec le " +

View File

@ -75,8 +75,8 @@ MathJax.Localization.addTranslation("fr","TeX",{
MisplacedMoveRoot: MisplacedMoveRoot:
"La commande %1 n'est autorisée qu'à l'intérieur d'une racine", "La commande %1 n'est autorisée qu'à l'intérieur d'une racine",
MultipleMoveRoot: MultipleCommand:
"Commande %1 redondante", "Usage multiple de la commande %1",
IntegerArg: IntegerArg:
"L'argument de la commande %1 doit être un entier", "L'argument de la commande %1 doit être un entier",
@ -120,8 +120,8 @@ MathJax.Localization.addTranslation("fr","TeX",{
ExtraClose: ExtraClose:
"Accolade fermante non attendue", "Accolade fermante non attendue",
ExtraCloseInBrackets: ExtraCloseLooking:
"Accolade fermante non attendue avant le crochet fermant.", "Extra close brace while looking for %1"
MissingCloseBracket: MissingCloseBracket:
"Impossible de trouver le crochet fermant pour l'argument de la commande %1", "Impossible de trouver le crochet fermant pour l'argument de la commande %1",
@ -132,9 +132,6 @@ MathJax.Localization.addTranslation("fr","TeX",{
MissingDimOrUnits: MissingDimOrUnits:
"Dimension ou unité manquante pour la commande %1", "Dimension ou unité manquante pour la commande %1",
ExtraCloseBraceInUpTo:
"Accolade fermante non attendue avant la commande %1",
TokenNotFoundForCommand: TokenNotFoundForCommand:
"Impossible de trouver la commande %1 pour la commande %2", "Impossible de trouver la commande %1 pour la commande %2",
@ -171,7 +168,7 @@ MathJax.Localization.addTranslation("fr","TeX",{
ErroneousNestingEq: ErroneousNestingEq:
"Emboitement incorrect des structures d'équation", "Emboitement incorrect des structures d'équation",
MultipleRowsOneCol: MultlineRowsOneCol:
"Les lignes multiples doivent avoir exactement une colonne", "Les lignes multiples doivent avoir exactement une colonne",
NoClosingDelim: NoClosingDelim:

View File

@ -1,4 +1,5 @@
MathJax.Localization.addTranslation("fr",null,{ MathJax.Localization.addTranslation("fr",null,{
menuTitle: "Fran\u00E7ais",
isLoaded: true, isLoaded: true,
domains: { domains: {
"_": { "_": {