From 8128b5b7562eaae4e9bcca28967c7d1463e71693 Mon Sep 17 00:00:00 2001 From: Julien Wajsberg Date: Mon, 21 Jan 2013 10:43:42 +0100 Subject: [PATCH] Bug 830708 - updatable.js references undefined 'updateReady' string r=etienne r=pike --- apps/system/js/updatable.js | 2 +- apps/system/locales/system.en-US.properties | 1 + apps/system/test/unit/updatable_test.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/system/js/updatable.js b/apps/system/js/updatable.js index b01b2d446e78..57ce737c73d1 100644 --- a/apps/system/js/updatable.js +++ b/apps/system/js/updatable.js @@ -223,7 +223,7 @@ SystemUpdatable.prototype.showApplyPrompt = function() { }; UtilityTray.hide(); - CustomDialog.show(_('updateReady'), _('wantToInstall'), + CustomDialog.show(_('systemUpdateReady'), _('wantToInstall'), cancel, confirm); }; diff --git a/apps/system/locales/system.en-US.properties b/apps/system/locales/system.en-US.properties index 3d8b607997f2..eb2359947b30 100644 --- a/apps/system/locales/system.en-US.properties +++ b/apps/system/locales/system.en-US.properties @@ -112,6 +112,7 @@ numberOfUpdates[few]={{ n }} updates available numberOfUpdates[many]={{ n }} updates available numberOfUpdates[other]={{ n }} updates available systemUpdate=System update +systemUpdateReady=System Update Ready required=Required uncompressingMessage=Uncompressing… This can take a few minutes. downloadNoWifiWarning=Wi-Fi unavailable. Updating over current connection may incur additional charges. diff --git a/apps/system/test/unit/updatable_test.js b/apps/system/test/unit/updatable_test.js index 3dd06b8d6a09..7af2abf6b2ad 100644 --- a/apps/system/test/unit/updatable_test.js +++ b/apps/system/test/unit/updatable_test.js @@ -587,7 +587,7 @@ suite('system/Updatable', function() { function testSystemApplyPrompt() { test('apply prompt shown', function() { assert.isTrue(MockCustomDialog.mShown); - assert.equal('updateReady', MockCustomDialog.mShowedTitle); + assert.equal('systemUpdateReady', MockCustomDialog.mShowedTitle); assert.equal('wantToInstall', MockCustomDialog.mShowedMsg); assert.equal('later', MockCustomDialog.mShowedCancel.title);