summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMaciej Bendkowski2012-08-22 06:12:30 (EDT)
committer Szymon Brandys2012-08-24 10:44:42 (EDT)
commit66c7e7f9dddd5656ebf48c0acbdc1ba050345600 (patch)
tree29f4a90ae86452a7376eb765de2fff596c2b5a13
parentc243830f3f22e2186c2d105df0bb96ee8e468cab (diff)
downloadorg.eclipse.orion.client-66c7e7f9dddd5656ebf48c0acbdc1ba050345600.zip
org.eclipse.orion.client-66c7e7f9dddd5656ebf48c0acbdc1ba050345600.tar.gz
org.eclipse.orion.client-66c7e7f9dddd5656ebf48c0acbdc1ba050345600.tar.bz2
Bug 381769 - "Upload..." string on "Import a file or zip" dialog unexternalized
-rw-r--r--bundles/org.eclipse.orion.client.core/web/dojox/form/Uploader.js5
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js3
2 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/dojox/form/Uploader.js b/bundles/org.eclipse.orion.client.core/web/dojox/form/Uploader.js
index 9780589..c7f1be6 100644
--- a/bundles/org.eclipse.orion.client.core/web/dojox/form/Uploader.js
+++ b/bundles/org.eclipse.orion.client.core/web/dojox/form/Uploader.js
@@ -1,8 +1,7 @@
-define(["dojo", "dijit", "dojox", "dojox/form/uploader/Base"], function(dojo, dijit, dojox) {
+define(["i18n!orion/widgets/nls/messages", "dojo", "dijit", "dojox", "dojox/form/uploader/Base"], function(messages, dojo, dijit, dojox) {
//
// TODO:
- // i18n
// label via innerHTML
// Doc and or test what can be extended.
// Doc custom file events
@@ -46,7 +45,7 @@ dojo.declare("dojox.form.Uploader", [dojox.form.uploader.Base], {
//
// label: String
// The text used in the button that when clicked, opens a system Browse Dialog.
- label:"Upload...",
+ label: messages["Upload..."],
//
// url: String
// The url targeted for upload. An absolute URL is preferred. Relative URLs are
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js b/bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js
index c09fc26..50b4667 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js
@@ -70,5 +70,6 @@ define({
"Overwrite if source is newer" : "Overwrite if source is newer",
"New" : "New",
"Building file skeleton..." : "Building file skeleton...",
- "Add" : "Add"
+ "Add" : "Add",
+ "Upload..." : "Upload..."
});