Bug 636353 - Default file name for sync key isn't localized. r=rnewman
This commit is contained in:
@@ -194,12 +194,13 @@ let gSyncUtils = {
|
|||||||
*/
|
*/
|
||||||
passphraseSave: function(elid) {
|
passphraseSave: function(elid) {
|
||||||
let dialogTitle = this.bundle.GetStringFromName("save.synckey.title");
|
let dialogTitle = this.bundle.GetStringFromName("save.synckey.title");
|
||||||
|
let defaultSaveName = this.bundle.GetStringFromName("save.default.label");
|
||||||
this._preparePPiframe(elid, function(iframe) {
|
this._preparePPiframe(elid, function(iframe) {
|
||||||
let filepicker = Cc["@mozilla.org/filepicker;1"]
|
let filepicker = Cc["@mozilla.org/filepicker;1"]
|
||||||
.createInstance(Ci.nsIFilePicker);
|
.createInstance(Ci.nsIFilePicker);
|
||||||
filepicker.init(window, dialogTitle, Ci.nsIFilePicker.modeSave);
|
filepicker.init(window, dialogTitle, Ci.nsIFilePicker.modeSave);
|
||||||
filepicker.appendFilters(Ci.nsIFilePicker.filterHTML);
|
filepicker.appendFilters(Ci.nsIFilePicker.filterHTML);
|
||||||
filepicker.defaultString = "Firefox Sync Key.html";
|
filepicker.defaultString = defaultSaveName;
|
||||||
let rv = filepicker.show();
|
let rv = filepicker.show();
|
||||||
if (rv == Ci.nsIFilePicker.returnOK
|
if (rv == Ci.nsIFilePicker.returnOK
|
||||||
|| rv == Ci.nsIFilePicker.returnReplace) {
|
|| rv == Ci.nsIFilePicker.returnReplace) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ historyDaysCount.label = #1 day of history;#1 days of history
|
|||||||
passwordsCount.label = #1 password;#1 passwords
|
passwordsCount.label = #1 password;#1 passwords
|
||||||
|
|
||||||
save.synckey.title = Save Sync Key
|
save.synckey.title = Save Sync Key
|
||||||
|
save.default.label = Firefox Sync Key.html
|
||||||
|
|
||||||
newAccount.action.label = Firefox Sync is now set up to automatically sync all of your browser data.
|
newAccount.action.label = Firefox Sync is now set up to automatically sync all of your browser data.
|
||||||
newAccount.change.label = You can choose exactly what to sync by selecting Sync Options below.
|
newAccount.change.label = You can choose exactly what to sync by selecting Sync Options below.
|
||||||
|
|||||||
Reference in New Issue
Block a user