Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Properly localize Cookies panel using fbInternational

  • Loading branch information...
commit 93b7cce030a70b2d05668f38e1625debc06483bb 1 parent 694eb35
@janodvarko janodvarko authored
View
18 extension/content/firebug/cookies/cookieModule.js
@@ -178,24 +178,6 @@ Firebug.CookieModule = Obj.extend(Firebug.ActivableModule,
//Firebug.Debugger.removeListener(this.DebuggerListener);
},
- internationalizeUI: function()
- {
- var elements = ["fcCookiesMenu", "fcExportAll", "fcExportForSite", "fcRemoveAllSession",
- "fcRemoveAll", "fcCreate", "fcCookieViewAll", "fcCookieViewExceptions",
- "fcToolsMenu", "fcFilterMenu", "fcFilterByPath",
- "fcShowRejectedCookies", "fbConsoleFilter-cookies"];
-
- for (var i=0; i<elements.length; i++)
- {
- var element = Firebug.chrome.$(elements[i]);
- if (element.hasAttribute("label"))
- Locale.internationalize(element, "label");
-
- if (element.hasAttribute("tooltiptext"))
- Locale.internationalize(element, "tooltiptext");
- }
- },
-
registerObservers: function()
{
if (this.observersRegistered)
View
26 extension/content/firebug/cookies/cookiePanel.xul
@@ -30,7 +30,7 @@
<hbox id="fbConsoleButtons">
<toolbarbutton id="fbConsoleFilter-cookies"
label="firecookie.console.Cookies" type="radio"
- group="firebugConsoleFilter" class="toolbar-text-button"
+ group="firebugConsoleFilter" class="toolbar-text-button fbInternational"
tooltiptext="firecookie.console.Filter By Cookies"
oncommand="Firebug.Console.onToggleFilter(Firebug.currentContext, 'cookies')"
collapsed="true"/>
@@ -43,13 +43,14 @@
<toolbarseparator class="fbPanelSpecificButtonsSeparator"/>
<!-- General cookies actions -->
- <toolbarbutton id="fcCookiesMenu" label="firecookie.menu.Cookies" type="menu">
+ <toolbarbutton id="fcCookiesMenu" label="firecookie.menu.Cookies" type="menu"
+ class="fbInternational">
<menupopup id="fcCookiesMenuPopup">
<!-- Create cookies -->
<tooltip id="fcCreateCookieTooltip"
onpopupshowing="return Firebug.CookieModule.onCreateCookieShowTooltip(this, Firebug.currentContext)"/>
- <menuitem id="fcCreate"
+ <menuitem id="fcCreate" class="fbInternational"
label="firecookie.Create"
tooltip="fcCreateCookieTooltip" command="cmd_cookieCreate"/>
<menuseparator/>
@@ -57,7 +58,7 @@
<!-- Remove all cookies -->
<tooltip id="fcRemoveAllTooltip"
onpopupshowing="return Firebug.CookieModule.onRemoveAllShowTooltip(this, Firebug.currentContext)"/>
- <menuitem id="fcRemoveAll"
+ <menuitem id="fcRemoveAll" class="fbInternational"
label="firecookie.RemoveAll"
key="key_removeAllCookies"
tooltip="fcRemoveAllTooltip" command="cmd_cookieRemoveAll"/>
@@ -65,36 +66,37 @@
<!-- Remove all session cookies -->
<tooltip id="fcRemoveAllSessionTooltip"
onpopupshowing="return Firebug.CookieModule.onRemoveAllSessionShowTooltip(this, Firebug.currentContext)"/>
- <menuitem id="fcRemoveAllSession"
+ <menuitem id="fcRemoveAllSession" class="fbInternational"
label="firecookie.Remove Session Cookies"
tooltip="fcRemoveAllSessionTooltip" command="cmd_cookieRemoveAllSession"/>
<menuseparator/>
<!-- Export cookies -->
- <menuitem id="fcExportAll"
+ <menuitem id="fcExportAll" class="fbInternational"
label="firecookie.export.Export All Cookies"
tooltiptext="firecookie.export.Export All Cookies Tooltip"
command="cmd_cookieExportAll"/>
<tooltip id="fcExportForSiteTooltip"
onpopupshowing="return Firebug.CookieModule.onExportForSiteShowTooltip(this, Firebug.currentContext)"/>
- <menuitem id="fcExportForSite"
+ <menuitem id="fcExportForSite" class="fbInternational"
label="firecookie.export.Export For Site"
tooltip="fcExportForSiteTooltip" command="cmd_cookieExportForSite"/>
</menupopup>
</toolbarbutton>
<!-- Filter cookies -->
- <toolbarbutton id="fcFilterMenu" type="menu"
+ <toolbarbutton id="fcFilterMenu" type="menu" class="fbInternational"
label="firecookie.Filter"
tooltiptext="firecookie.FilterTooltip">
<menupopup id="fcFilterMenuPopup"
onpopupshowing="return Firebug.CookieModule.onFilterPopupShowing(this)">
- <menuitem id="fcFilterByPath" type="checkbox"
+ <menuitem id="fcFilterByPath" type="checkbox" class="fbInternational"
value="cookies.filterByPath"
label="firecookie.filter.byPath"
tooltiptext="firecookie.filter.byPathTooltip"
command="cmd_cookieFilterByPath"/>
<menuitem id="fcShowRejectedCookies" type="checkbox"
+ class="fbInternational"
value="cookies.showRejectedCookies"
label="firecookie.filter.showRejectedCookies"
tooltiptext="firecookie.filter.showRejectedCookiesTooltip"
@@ -128,15 +130,15 @@
<toolbarseparator/>
<!-- Tools -->
- <toolbarbutton id="fcToolsMenu" type="menu"
+ <toolbarbutton id="fcToolsMenu" type="menu" class="fbInternational"
label="firecookie.Tools"
tooltiptext="firecookie.ToolsTooltip">
<menupopup>
- <menuitem id="fcCookieViewAll"
+ <menuitem id="fcCookieViewAll" class="fbInternational"
command="cmd_cookieViewAll"
label="firecookie.ViewAll"
tooltiptext="firecookie.ViewAllTooltip"/>
- <menuitem id="fcCookieViewExceptions"
+ <menuitem id="fcCookieViewExceptions" class="fbInternational"
command="cmd_cookieViewExceptions"
label="firecookie.ViewExceptions"
tooltiptext="firecookie.ViewExceptionsTooltip"/>
View
2  extension/locale/en-US/cookies.properties
@@ -99,7 +99,7 @@ firecookie.removeallsession.tooltip=Remove all session cookies in the list.
# LOCALIZATION NOTE (firecookie.createcookie.tooltip): A tooltip for Cookies->Create Cookie menu
# examples: Create new cookie for www.softwareishard.com
-firecookie.createcookie.tooltip=Create new cookie for %S
+firecookie.createcookie.tooltip=Create a new cookie for %S
# LOCALIZATION NOTE (firecookie.createcookie.defaultvalue): Default value for newly created cookie.
firecookie.createcookie.defaultvalue=Value
Please sign in to comment.
Something went wrong with that request. Please try again.