summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMaciej Bendkowski2012-07-10 07:13:08 (EDT)
committer Malgorzata Janczarska2012-07-25 05:07:38 (EDT)
commitd154d5fc73ec890f1cec01187919bc99a8913913 (patch)
treeb083aa08c36f49a1737631b043e688c53902bc50
parent63d6e994477e81f0167071144746eaf3341f5ddb (diff)
downloadorg.eclipse.orion.client-d154d5fc73ec890f1cec01187919bc99a8913913.zip
org.eclipse.orion.client-d154d5fc73ec890f1cec01187919bc99a8913913.tar.gz
org.eclipse.orion.client-d154d5fc73ec890f1cec01187919bc99a8913913.tar.bz2
Bug 381759 - Unexternalized strings for SFTP Transfer dialog
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/SFTPConnectionDialog.js7
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/nls/root/messages.js8
-rw-r--r--bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/SFTPConnectionDialog.html12
3 files changed, 20 insertions, 7 deletions
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/SFTPConnectionDialog.js b/bundles/org.eclipse.orion.client.core/web/orion/widgets/SFTPConnectionDialog.js
index 37bee4a..f947fbc 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/SFTPConnectionDialog.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/SFTPConnectionDialog.js
@@ -51,6 +51,13 @@ dojo.declare("orion.widgets.SFTPConnectionDialog", [dijit.Dialog, orion.widgets.
this.buttonOk = messages['Start Transfer'];
this.locationLabelText = messages['Location:'];
sftpConnectionStoreData= JSON.parse(localStorage.getItem("orion.sftpConnections")); //$NON-NLS-0$
+
+ this.preRadioDescriptionText = messages["If the same file exists in both the source and destination:"];
+ this.firstRadioLabelText = messages["Cancel the transfer"];
+ this.secondRadioLabelText = messages["Always overwrite destination"];
+ this.thirdRadioLabelText = messages["Overwrite if source is newer"];
+ this.newLabelText = messages["New"];
+ this.addLabelText = messages["Add"];
},
postCreate: function() {
this.inherited(arguments);
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 9588153..9dd18bd 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
@@ -63,5 +63,11 @@ define({
"Profiles": "Profiles",
"Information Needed": "Information Needed",
"Cancel": "Cancel",
- "Sorry, the Console is not supported on your browser.": "Sorry, the Console is not supported on your browser."
+ "Sorry, the Console is not supported on your browser.": "Sorry, the Console is not supported on your browser.",
+ "If the same file exists in both the source and destination:" : "If the same file exists in both the source and destination:",
+ "Cancel the transfer" : "Cancel the transfer",
+ "Always overwrite destination" : "Always overwrite destination",
+ "Overwrite if source is newer" : "Overwrite if source is newer",
+ "New" : "New",
+ "Add" : "Add"
});
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/SFTPConnectionDialog.html b/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/SFTPConnectionDialog.html
index dd6b0fb..4a6338d 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/SFTPConnectionDialog.html
+++ b/bundles/org.eclipse.orion.client.core/web/orion/widgets/templates/SFTPConnectionDialog.html
@@ -18,7 +18,7 @@
<div dojoType="dijit.form.ComboBox" store="sftpConnectionStore" style="display: inline-block; width: 88%;" dojoAttachPoint="sftpConnectionList" searchAttr="name">
</div>
<div dojoType="dijit.form.DropDownButton">
- <span>New</span>
+ <span>${newLabelText}</span>
<div dojoType="dijit.TooltipDialog">
<div style="display: table">
<div style="display: table-row">
@@ -48,7 +48,7 @@
<div style="display: table-row">
<div style="display: table-cell; padding: 5"></div>
<div style="display: table-cell; padding: 5">
- <button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">Add</button>
+ <button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">${addLabelText}</button>
</div>
</div>
</div><!-- End inner table-->
@@ -67,15 +67,15 @@
<div style="display: table-row">
<div style="display: table-cell; padding: 5"></div>
<div style="display: table-cell; padding: 5">
- <p>If the same file exists in both the source and destination:</p>
+ <p>${preRadioDescriptionText}</p>
<input type="radio" dojoAttachPoint="overwriteCancel" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" />
- <label for="radioOne">Cancel the transfer</label>
+ <label for="radioOne">${firstRadioLabelText}</label>
<br />
<input type="radio" dojoAttachPoint="overwriteAll" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteAll"/>
- <label for="radioOne">Always overwrite destination</label>
+ <label for="radioOne">${secondRadioLabelText}</label>
<br />
<input type="radio" dojoAttachPoint="overwriteOlder" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteOlder"/>
- <label for="radioOne">Overwrite if source is newer</label>
+ <label for="radioOne">${thirdRadioLabelText}</label>
</div>
</div><!-- End table row -->
<div style="display: table-row">