Firefox 4 Multi-Language

One of the features I really like of MacOS  X is that is is multi-language out of the box and, unlike M$ Windows, does not require a reinstall to switch language. For some people (like myself) English is the only language a computer should be, but or my kids having everything in their own language really helps them to find their way around (actually they are bilingual but that is no problem either as they can switch language as they like).

As we really got used to Firefox and really like its cross-platform availability, we also use that as our browser on our Macs. Unfortunately there is no multi-language version of Firefox. Since I don’t like to maintain multiple installed versions on the same computer (one for each language), I found a reall solution that was actually very simple.

Using the Quick Locale Switcher plugin for Firefox one can switch the locale of Firefox. One neat feature of it is that it will also change the language of Firefox if you have the right language pack installed. As it was not that obvious where to find these, I decided to document that here:

  • Go to the Firefox releases folder on the Mozilla website ftp://releases.mozilla.org/pub/mozilla.org/firefox/releases/
  • Select the folder of the version you use (or the latest version)
  • Select the folder of the platform you are using (i.e. mac for MacOS X)
  • Scroll down the list of available installer languages and enter the xpi folder (direct link to the latest MacOS X xpi folder)
  • Next click on the language packages to install them.
    A popup may appear requesting permission to install from an untrusted location,which looks like this on MacOS X with Firefoxe 4:
    Screenshot showing Firefox4's popup for an untrusted installation location on MacOS X
    Click allow to proceed with the normal installation of the language pack
  • After the installation of language packs, Firefox must be restarted to install them and make them active.
  • Once Firefox has been restarted, you can now switch locale using the Quick Locale Switcher’s controls and/or preferences and Firefox will switch locale/language as well if the corresponding language pack is installed.

I hope this is clear, let me know if not.

Glassfish Admin Console fix after 3.1 upgrade

After upgrading my GlassFish server from 3.0 to 3.1 using its updatetool the admin console was no longer working. When accessing the admin console, I only got an empty page. In the domain server.log file I noticed the following error:

[#|2011-05-07T20:58:45.708+0200|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=102;_ThreadName=Thread-1;|ApplicationDispatcher[] PWC1231: Servlet.service() for servlet FacesServlet threw exception java.lang.RuntimeException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'event1'.
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:422)
        at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
        at com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:348)
        at com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:288)
...
  

After a little searching I found that this issue was apparently already reported and fixed (GLASSFISH-16087). Unfortunately on my server the problem still existed and the suggested workaround didn’t work for me. Fortunately directly changing the domain’s config/server.xml file directly did work. I shutdown Glassfix and lookup the following entry:

    <property name="restAuthURL" value="http://localhost:${ADMIN_LISTENER_PORT}/management/sessions"/>
  

as I understood from the reported issue the server was no longer listening to localhost I changed it into (please note I added both the hostname and changed the protocol to https):

    <property name="restAuthURL" value="https://prod.glassfish.mydomain.tld:${ADMIN_LISTENER_PORT}/management/sessions"/>
  

and after restarting my Glassfish server the admin console worked normally again.