Change extension locale but not the browser locale

Hello Moz and extension developers,

We have a need to override the locale applied to my extension after it
is loaded depending on certain test condition. And here is the bigger
problem. That locale might not be in sync with the the browser locale.
In other words, can I tell moz to use this locale for my extension?
Any ideas would be highly appreciated.

The simple workaround is to update the mapping in chrome.manifest
after the locale is known, but that is kind of ugly, hackish and also
not very useful, since I only know the locale after the extension is
loaded.

Thanks!
0
goldenv
11/20/2008 10:20:33 PM
mozilla.dev.extensions 5694 articles. 0 followers. Post Follow

0 Replies
556 Views

Similar Articles

[PageSpeed] 39

Reply:

Similar Artilces:

localizing an extension
Hi, We have an extension (XForms) we've created translatable strings for and keep under our locale/en-US directory but to this point we haven't worried much about non-English users. Is there documentation anywhere that would show how to 'properly' localize an extension? For example, is there a service in Mozilla that we can use to query what the proper decimal separator is, what date format to use, what currency symbol to use, etc? Or is all of this up to the extension author ->putting these things among our translatable strings and make the translator co...

The local of the extension
Hello everyone sorry for asking so many questions these days, and I have another question about the extension development. When user install the extension, i have a option to let user choose his location (such as England,China etc.), and I want to know if i have a way to set the location automatically when first install the extension?and how do i get the local from FF or System? I know a extension project have local folder for different language, but how do browser know that? so i think the browser should know the location, if i get that information, i can set the location auto...

locales in extensions
Hello! Can anyone explain why extensions setup ALL locales avail for them? I use us-US browser, but after installing quotecolors, users chrome.rdf has all locales enries in it. thanx Sergey schreef: > Hello! > Can anyone explain why extensions setup ALL locales avail for them? > I use us-US browser, but after installing quotecolors, users chrome.rdf > has all locales enries in it. > > thanx You probably mean en-US. This is a known issue and I think people are working on a fix. Sergey wrote: > Hello! > Can anyone explain why extensions setup ALL l...

How to change locale before loading any extension context menus
Hello guys, I developed an extension in which I've added some options in the right click menu in the main window. The text on this buttons needs to be changed according to some locale set in some .ini file. Where should I change the locale in order to have the options in the language corresponding to the locale? All other buttons from compose window and normal message window are ok, but the context menu options are changed only if I restart the Thunderbird twice after changing the locale in the .ini file. That is because the menu is created before the locale is changed. For th...

A cool new way to search Google with the Firefox browser (no localization problem with this extension)
Hello everyone, We've developed a new search feature for the Firefox browser. You can see a short demo of us using this on Google here: http://www.visual-search.net/Visual%20Search%202/Visual%20Search%202.html You can download the extension on this page: http://www.visual-search.net or on the Firefox addons page: https://addons.mozilla.org/en-US/firefox/addon/5309 I hope everyone in the Google community likes this as much as we do! ...

superreview granted: [Bug 286108] Build Thunderbird Locales from CVS (--enable-ui-locale) : [Attachment 180633] extensions/wallet/jar.mn ifdef
Scott MacGregor <mscott@mozilla.org> has granted Zbigniew Braniecki <gandalf@aviary.pl>'s request for superreview: Bug 286108: Build Thunderbird Locales from CVS (--enable-ui-locale) https://bugzilla.mozilla.org/show_bug.cgi?id=286108 Attachment 180633: extensions/wallet/jar.mn ifdef https://bugzilla.mozilla.org/attachment.cgi?id=180633&action=edit ------- Additional Comments from Scott MacGregor <mscott@mozilla.org> I verified that we've already forked the SignonViewer properties file which we still use. So we should be ok on that front. ...

superreview requested: [Bug 286108] Build Thunderbird Locales from CVS (--enable-ui-locale) : [Attachment 180633] extensions/wallet/jar.mn ifdef
Zbigniew Braniecki <gandalf@aviary.pl> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 286108: Build Thunderbird Locales from CVS (--enable-ui-locale) https://bugzilla.mozilla.org/show_bug.cgi?id=286108 Attachment 180633: extensions/wallet/jar.mn ifdef https://bugzilla.mozilla.org/attachment.cgi?id=180633&action=edit ------- Additional Comments from Zbigniew Braniecki <gandalf@aviary.pl> this patch removes locales from building with Thunderbird. Those are not needed nor localizable. ...

User profiles changing to Local-local
NetWare 6.5 sp7 servers 4.91 sp 4 clients Windows XP For a reason that we haven't been able to determine a large number of users are having their workstation profiles suddenly changing from Roaming-Roaming to Local-Local. Yes, we're using Zen's DLU, but I don't think that's the issue, and here's why I say that. We've been able to determine that on the machines that are having this problem the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Novell\NWGINA\Roaming Profiles\CachedProfilePaths is no longer being populated. Nothing has changed on any of the Z...

superreview cancelled: [Bug 246014] Extension manager does not generate appropriate chrome.rdf entries for locale entities : [Attachment 155490] Fix locale- and skin-selection issues in the chrome re
Simon 'sipaq' Paquet <bugzilla@babylonsounds.com> has cancelled Brendan Eich <brendan@mozilla.org>'s request for superreview: Bug 246014: Extension manager does not generate appropriate chrome.rdf entries for locale entities https://bugzilla.mozilla.org/show_bug.cgi?id=246014 Attachment 155490: Fix locale- and skin-selection issues in the chrome registry https://bugzilla.mozilla.org/attachment.cgi?id=155490&action=edit ------- Additional Comments from Simon 'sipaq' Paquet <bugzilla@babylonsounds.com> patch is obsolete ...

superreview requested: [Bug 246014] Extension manager does not generate appropriate chrome.rdf entries for locale entities : [Attachment 155490] Fix locale- and skin-selection issues in the chrome re
Brendan Eich <brendan@mozilla.org> has asked Brendan Eich <brendan@mozilla.org> for superreview: Bug 246014: Extension manager does not generate appropriate chrome.rdf entries for locale entities http://bugzilla.mozilla.org/show_bug.cgi?id=246014 Attachment 155490: Fix locale- and skin-selection issues in the chrome registry http://bugzilla.mozilla.org/attachment.cgi?id=155490&action=edit ...

Locale-switching extension
Due to the continued griping in this newsgroup, I have hacked up a locale-switching extension that will work for Firefox/Thunderbird 1.0. It will *not* work with Firefox PR/tbird 0.8, but it does work with recent nightly builds. http://www.saintpatrickdc.org/bsmedberg/locale-switcher/ --BDS * Benjamin D. Smedberg <bsmedberg@covad.net> [040928 22:39]: > Due to the continued griping in this newsgroup, I have hacked up a > locale-switching extension that will work for Firefox/Thunderbird 1.0. > It will *not* work with Firefox PR/tbird 0.8, but it does work with ...

Extensions and small locales
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8DD7E5E2C94C9D603FC2E7B8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi all I'd like to get some attention for bug 279952 (https://bugzilla.mozilla.org/show_bug.cgi?id=279952). It is not specifically only an issue for small locales, but small locale users see it's effect most easily and often. It could be argued, that this is an extension issue, but extension makers are prone and ever will be to make this sort of error, so why couldn't FF's st...

Individual locales for extensions
Hello, Is there a way to set the locale for an individual extension? about:config -> "general.useragent.locale" works, but it sets the locale for all the extensions simultaneously. Thanks. On 8/1/13 7:44 PM, Ilya wrote: > Hello, > > Is there a way to set the locale for an individual extension? > > about:config -> "general.useragent.locale" works, but it sets the locale > for all the extensions simultaneously. > > Thanks. > Actually, general.useragent.locale specifies the primary default language (localization) ...

Installing an extension locally
I have an extension file (.XPI) that I downloaded because its site does not offere direct installation into Firefox. How to install this file? -- Stan Goodman Qiryat Tiv'on Israel All those who believe that the best physicians in France, given two weeks, can't diagnose what ails a patient - please stand up. On Sat, 18 Dec 2004 09:16:03 UTC, "Stan Goodman" <SPAM_FOILER@hashkedim.com> wrote: > I have an extension file (.XPI) that I downloaded because its site does not > offere direct installation into Firefox. How to install this file? Drop i...

Web resources about - Change extension locale but not the browser locale - mozilla.dev.extensions

HNN extension - Wikipedia, the free encyclopedia
... subgroups of G are conjugate (through a given isomorphism) in G' . In terms of the fundamental group in algebraic topology , the HNN extension ...

We don't need more casinos, or extensions to the ones we're already stuck with
When the casino operators start playing nice to each other, we should worry.

Supreme Court gives federal government 4-month extension to pass assisted dying law
The Supreme Court of Canada has granted the federal government's request for more time to deal with assisted dying. But it will get only four ...

Neil Cavuto Signs Contract Extension with Fox
A day before he moderates the next GOP debate, Neil Cavuto has signed a new multi-year deal where he will continue as Senior Vice President, ...

Popular antivirus extension from AVG puts millions of Chrome users in danger
... dangerous than not having any security at all. According to a bug report filed by a Google employee on December 15th, the AVG Web TuneUp extension ...

Bills owner Kim Pegula announces contract extension for GM Doug Whaley
... organization during the final week of a disappointing 2015 season. On Sunday, Pegula acted on his words, as the team announced a contract extension ...

Congress Gets Renewable Tax Credit Extension Right
... Congress passed a new federal budget, notably extending tax credits for solar, wind, and other renewable energy technologies. The extension ...

PS Plus extension codes to make up for PSN outage going out this week, report says
Sony is making good on its promise to extend memberships after the PSN outage earlier this month.

Jeff Bewkes Gets Three-Year Extension At Time Warner
Time Warner is keeping the status quo at the top of its ranks. The conglomerate said today that it has renewed the contract of Chairman and CEO ...

Sony PlayStation Plus outage extensions on their way
If you have a valid PlayStation Plus subscription, keep an eye on your inbox - Sony is about to get in touch. Following the prolonged downtime ...

Resources last updated: 1/16/2016 5:50:51 PM