Added support for translated text in svgcanvas.js, updated es, ja files, complete fr file by wormsxulla

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1004 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2009-12-08 19:38:14 +00:00
parent 161714b157
commit df642b1500
5 changed files with 207 additions and 61 deletions

View File

@@ -77,6 +77,11 @@ var svgWhiteList = {
function SvgCanvas(c)
{
var uiStrings = {
"pathNodeTooltip":"Drag node to move it. Double-click node to change segment type",
"pathCtrlPtTooltip":"Drag control point to adjust curve properties"
};
var toXml = function(str) {
return str.replace("&", "&amp;").replace("<", "&lt;").replace(">","&gt;");
};
@@ -3208,7 +3213,7 @@ function BatchCommand(text) {
'stroke-width': 2,
'cursor': 'move',
'style': 'pointer-events:all',
'xlink:title': 'Drag point to move it. Double-click point to change segment type.'
'xlink:title': uiStrings.pathNodeTooltip
});
pointGrip = pointGripContainer.appendChild(pointGrip);
@@ -3537,7 +3542,7 @@ function BatchCommand(text) {
'stroke-width': 1,
'cursor': 'move',
'style': 'pointer-events:all',
'xlink:title': 'Drag control point to adjust curve properties'
'xlink:title': uiStrings.pathCtrlPtTooltip
});
pointGrip = ctrlPointGripContainer.appendChild(pointGrip);
}
@@ -6088,6 +6093,11 @@ function BatchCommand(text) {
return "svgcanvas.js ($Rev$)";
};
this.setUiStrings = function(strs){
$.extend(uiStrings, strs);
console.log(uiStrings)
}
this.clear();
};