Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 813811 - Localized login title for identity signin
Browse files Browse the repository at this point in the history
  • Loading branch information
jedp committed Jan 12, 2013
1 parent 86549ba commit 26a3beb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/system/js/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var Identity = (function() {

if (e.detail.showUI) {
// The identity flow is shown within the trusted UI.
TrustedUIManager.open('IdentityFlow', frame, this.chromeEventId);
TrustedUIManager.open(navigator.mozL10n.get('persona-signin'), frame, this.chromeEventId);
} else {
var container = document.getElementById('screen');
container.appendChild(frame);
Expand All @@ -79,5 +79,11 @@ var Identity = (function() {
};
})();

Identity.init();
// Make sure L10n is ready before init
if (navigator.mozL10n.readyState == 'complete' ||
navigator.mozL10n.readyState == 'interactive') {
Identity.init();
} else {
window.addEventListener('localized', Identity.init.bind(Identity));
}

3 changes: 3 additions & 0 deletions apps/system/locales/system.en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ activity-browse=Browse with:
activity-configure=Configure with:
activity-dial=Dial from:

# Persona dialog and Identity
persona-signin=Sign In

# Remote Debugger Connection Dialog
remoteDebuggerMessage=An incoming request to permit remote debugging connection was detected. Allow connection?

0 comments on commit 26a3beb

Please sign in to comment.