Commit b39d99fe authored by Luc Didry's avatar Luc Didry
Browse files

Fix #12

parent a0d96d86
Pipeline #24692 passed with stage
in 21 seconds
......@@ -24,9 +24,11 @@ var domIsReady = (function(domIsReady) {
return domIsReady;
})(domIsReady || {});
var svg = new C2S(800,400);
var svg = new C2S(800,400);
var showSettings = 'Show advanced settings';
var hideSettings = 'Hide advanced settings';
var workCanvas = 'Work with canvas';
var workSvg = 'Work with SVG';
(function(document, window, domIsReady, undefined) {
domIsReady(function() {
......@@ -75,6 +77,12 @@ var hideSettings = 'Hide advanced settings';
if (locale['settings-hide'] !== undefined) {
hideSettings = locale['settings-hide'];
}
if (locale['toggle-canvas'] !== undefined) {
workCanvas = locale['toggle-canvas'];
}
if (locale['toggle-svg'] !== undefined) {
workSvg = locale['toggle-svg'];
}
if (locale['footer'] !== undefined) {
document.querySelector('footer p').innerHTML = locale['footer'];
}
......@@ -113,14 +121,14 @@ var hideSettings = 'Hide advanced settings';
hide('download');
show('svg');
show('download-svg');
this.text = 'Work with canvas';
this.text = workCanvas;
} else {
this.classList.remove('button-primary');
hide('svg');
hide('download-svg');
show('canvas');
show('download');
this.text = 'Work with SVG';
this.text = workSvg;
}
refreshFilename();
});
......
......@@ -35,6 +35,7 @@
"porn-y": "Ordonnée de la seconde ligne",
"porn-size": "Taille du texte de la seconde ligne",
"toggle-svg": "Travailler en SVG",
"toggle-canvas": "Travailler en Canvas",
"download": "Télécharger",
"reset": "Réinitialiser les paramètres",
"settings-show": "Afficher les paramètres",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment