Server Locale

Define locale settings for specific servers. (Install Server Locale)

The products that I write are often localized and internationalized. I have found it hard to test the various languages from my primary machine because when I switch my browser's locale this will change the language for too many web applications. In order to make this easier, I wrote my first firefox extension Server Locale. This extension will allow you to specify the accept-language http header for a specific server. The extension will replace the header with whatever is specified for any request made to that server.

Screenshot of the ServerLocale preferences screen

After installing this extension you may have to restart firefox once or twice, not sure why twice, to get it working. Once installed, you can set up per server locales through the "Server Locale Preferences" option on the tools menu or by selecting tools > add-ons > extensions. In this list you should see "Server Locale 1.0" then select the options button. In both cases you will get a dialog that looks like the picture above.

Enter the name of the server without the protocol or path in the server name field. In the locale ID field, you can specify anything that you want to send as the accept language header for this server. You can see in my screen shot that I am using es, the language code for Spanish for the server listed. The extension will monitor requests and when it finds one going to a matching server, it will replace the accept language header with whatever is specified here.