[cros] Refresh all localized content on image screen.

BUG=chromium-os:23642
TEST=None.

Review URL: http://codereview.chromium.org/8775013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112676 0039d316-1c4b-4281-b951-d872f2087c98
parent 77931ff3
......@@ -128,8 +128,7 @@ cr.define('oobe', function() {
this.profileImageLoading_ = value;
$('user-image-screen-main').classList[
value ? 'add' : 'remove']('profile-image-loading');
this.profileImageCaption = localStrings.getString(
value ? 'profilePhotoLoading' : 'profilePhoto');
this.updateProfileImageCaption_();
},
/**
......@@ -319,6 +318,23 @@ cr.define('oobe', function() {
updateCaption_: function() {
$('user-image-preview-caption').textContent =
this.profileImageSelected ? this.profileImageCaption : '';
},
/**
* Updates localized content of the screen that is not updated via template.
* @public
*/
updateLocalizedContent: function() {
this.updateProfileImageCaption_();
},
/**
* Updates profile image caption.
* @private
*/
updateProfileImageCaption_: function() {
this.profileImageCaption = localStrings.getString(
this.profileImageLoading_ ? 'profilePhotoLoading' : 'profilePhoto');
}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment