Crowley Code! 
 (Take 12)

Launching a localized XULRunner app 2007/12/13

The average XULRunner developer gets to choose at the beginning of any project whether to work with the 1.8 or 1.9 series.  1.8 gets you stability and heartache; 1.9 gets you trunk-y goodness and a sweet thread library.  I'm of course simplifying things.

Until yesterday the prospect of localizing XULRunner itself had not even crossed my mind.  An error to be sure but one that was actually easily corrected.  We at Flickr chose to work with the 1.9 branch to take advantage of the newly enjoyable thread library.  Working with these nightly builds was great as I was able to watch bugs die each time I pulled a new nightly.

The trouble began when I started putting together final builds yesterday.  Things like the Mozilla upgrade system, file picker dialog and standard OK/Cancel buttons were not localized because nightly builds come only in English.  Bummer.  LXR came to my rescue, though.  I was able to pull together my own localizations of XULRunner by scraping pieces from the Firefox 2 codebase.

I am not sure what the lesson here is but with ample planning and testing, apps built on XULRunner trunk can be localized just like any other.  It would be awesome if, in the future, trunk builds included the entire localization tree, which would allow my build process to just pick out the appropriate JAR file for each language (which is essentially what I do now).  Look to the Flickr Uploadr source (more on that soon) for an example of how all this works.

Comments (0)

Richard Crowley?  Kentuckian engineer who cooks and eats in between bicycling and beering.

I blog mostly about programming and databases.  Browse by month or tag.

To blame for...


© 2009 Richard Crowley.  Managed by Bashpress.