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:
@@ -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("&", "&").replace("<", "<").replace(">",">");
|
||||
};
|
||||
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user