mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1244887: Fixing userContext label on awesomebar, r=baku
This commit is contained in:
parent
07a85c1de1
commit
0f2bcfe9aa
@ -15,14 +15,14 @@ XPCOMUtils.defineLazyGetter(this, "gBrowserBundle", function() {
|
||||
|
||||
this.UserContextUI = {
|
||||
getUserContextLabel(userContextId) {
|
||||
switch (userContextId) {
|
||||
switch (parseInt(userContextId)) {
|
||||
// No UserContext:
|
||||
case 0: return "";
|
||||
|
||||
case 1: return gBrowserBundle.GetStringFromName("usercontext.personal.label");
|
||||
case 2: return gBrowserBundle.GetStringFromName("usercontext.work.label");
|
||||
case 3: return gBrowserBundle.GetStringFromName("usercontext.shopping.label");
|
||||
case 4: return gBrowserBundle.GetStringFromName("usercontext.banking.label");
|
||||
case 3: return gBrowserBundle.GetStringFromName("usercontext.banking.label");
|
||||
case 4: return gBrowserBundle.GetStringFromName("usercontext.shopping.label");
|
||||
|
||||
// Display the context IDs for values outside the pre-defined range.
|
||||
// Used for debugging, no localization necessary.
|
||||
|
Loading…
Reference in New Issue
Block a user