aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaciej Bendkowski2012-08-22 06:12:30 (EDT)
committerSzymon Brandys2012-08-24 10:44:42 (EDT)
commit0dfb7d08d4948dd391356d20784d1385ad23e7f0 (patch)
tree29f4a90ae86452a7376eb765de2fff596c2b5a13
parent389f99c40ed4540708769d4f1e14c41be17749f5 (diff)
downloadorg.eclipse.orion.client-0dfb7d08d4948dd391356d20784d1385ad23e7f0.zip
org.eclipse.orion.client-0dfb7d08d4948dd391356d20784d1385ad23e7f0.tar.gz
org.eclipse.orion.client-0dfb7d08d4948dd391356d20784d1385ad23e7f0.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..."
});