From 73a4490b1deef2284f5ce5d65e453d9beb8094ea Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 3 Jan 2011 18:45:36 +0000 Subject: [PATCH] Made many more localization fixes/additions git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1895 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/ext-imagelib.js | 20 +++-- editor/locale/lang.test.js | 68 +++++++++++++-- editor/locale/locale.js | 53 +++++++++++- editor/svg-editor.js | 136 ++++++++++++++++-------------- editor/svgcanvas.js | 2 +- 5 files changed, 198 insertions(+), 81 deletions(-) diff --git a/editor/extensions/ext-imagelib.js b/editor/extensions/ext-imagelib.js index 5f8d7997..99f386ad 100644 --- a/editor/extensions/ext-imagelib.js +++ b/editor/extensions/ext-imagelib.js @@ -9,6 +9,8 @@ svgEditor.addExtension("imagelib", function() { + var uiStrings = svgEditor.uiStrings; + var img_libs = [{ name: 'Demo library (local)', url: 'extensions/imagelib/index.html', @@ -89,7 +91,9 @@ svgEditor.addExtension("imagelib", function() { pending[cur_meta.id] = cur_meta; - var message = 'Retrieving "' + (cur_meta.name || 'file') + '"...'; + var name = (cur_meta.name || 'file'); + + var message = uiStrings.notification.retrieving.replace('%s', name); if(mode != 'm') { $.process_cancel(message, function() { @@ -261,13 +265,14 @@ svgEditor.addExtension("imagelib", function() { } function showBrowser() { + var browser = $('#imgbrowse'); if(!browser.length) { $('
\
').insertAfter('#svg_docprops'); browser = $('#imgbrowse'); - var all_libs = 'Select an image library'; + var all_libs = uiStrings.imagelib.select_lib; var lib_opts = $('