<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ben Hearsum (Posts about l10n)</title><link>https://hearsum.ca/</link><description></description><atom:link href="https://hearsum.ca/categories/l10n.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:ben@hearsum.ca"&gt;Ben Hearsum&lt;/a&gt; </copyright><lastBuildDate>Thu, 30 Jan 2025 16:13:56 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>B2G builds with multilocale Gaia now available (attention localizers!)</title><link>https://hearsum.ca/posts/b2g-builds-with-multilocale-gaia-now-available-attention-localizers/</link><dc:creator>Ben Hearsum</dc:creator><description>&lt;p&gt;As I &lt;a href="http://hearsum.ca/blog/upcoming-l10n-changes-to-b2g-device-and-desktop-builds/"&gt;mentioned last week&lt;/a&gt;, we've been working hard to get multilocale B2G builds going. This morning we flipped the switch and turned on multilocale Gaia across the board. The existing desktop and device builds on TBPL will now include a Gaia profile with Arabic, English, Spanish, French, Brazilian Portuguese, and Mandarin Chinese (zh-TW).



Additionally, we now have new desktop builds with all of &lt;a href="https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/languages-all.json"&gt;the locales listed in this file&lt;/a&gt; available -- meaning that most people localizing B2G can now test their translations in-app. These are available for Linux, Mac, and Windows in the "localizer" packages &lt;a href="https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-beta/"&gt;in this directory&lt;/a&gt;.



A few notes:

&lt;/p&gt;&lt;ul&gt;

&lt;li&gt;Linux users who have run a B2G desktop build in the past may need to rm -rf ~/.mozilla/b2g before these new builds will function correctly.&lt;/li&gt;

&lt;li&gt;Gecko is still en-US only. Expect network errors and other such things to be in en-US for now. Multilocale gecko for B2G work is being tracked in &lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=817197"&gt;bug 817197&lt;/a&gt; and the bugs that it blocks.&lt;/li&gt;

&lt;li&gt;All of the desktop builds will be updated on a nightly basis. However, there are no automatic updates for them - you must download by hand whenever you want to test newer code or translations.&lt;/li&gt;

&lt;/ul&gt;</description><category>b2g</category><category>l10n</category><category>planet-mozilla</category><guid>https://hearsum.ca/posts/b2g-builds-with-multilocale-gaia-now-available-attention-localizers/</guid><pubDate>Thu, 06 Dec 2012 20:13:37 GMT</pubDate></item><item><title>Creating a new localization for Firefox 3.1</title><link>https://hearsum.ca/posts/creating-a-new-localization-for-firefox-3-1/</link><dc:creator>Ben Hearsum</dc:creator><description>&lt;p&gt;Someone I know recently expressed interest in translating Firefox into her native language, &lt;a href="http://en.wikipedia.org/wiki/Tagalog_language"&gt;Tagalog&lt;/a&gt;. Being a build guy, I decided to spare her the pain of getting everything setup and let her focus on the translation. Much to my dismay I discovered that the &lt;a href="https://developer.mozilla.org/en/Create_a_new_localization"&gt;Create a New Localization&lt;/a&gt; page hasn't been fully updated for Firefox 3.1 yet. By mashing together information on a &lt;a href="https://developer.mozilla.org/en/Creating_a_Language_Pack"&gt;couple&lt;/a&gt; of &lt;a href="https://developer.mozilla.org/En/Compare-locales"&gt;pages&lt;/a&gt; and a lot of help from #l10n I managed to get an environment up and running that allowed her to dive in.



Here's how to do it. (Note: This has been tested on Mac and Windows. On Windows, this depends on MozillaBuild 1.3; on both it depends on Python setuptools.)

&lt;/p&gt;&lt;ol&gt;

&lt;li&gt;Install compare-locales&lt;/li&gt;

&lt;blockquote&gt;wget http://pypi.python.org/packages/2.5/c/compare-locales/compare_locales-0.6.1-py2.5.egg#md5=0b939a22d87427d80f5286dc5eb1eab2

easy_install compare_locales-0.6.1-py2.5.egg&lt;/blockquote&gt;

&lt;li&gt;Clone mozilla-1.9.1&lt;/li&gt;

&lt;blockquote&gt;hg clone http://hg.mozilla.org/releases/mozilla-1.9.1&lt;/blockquote&gt;

&lt;li&gt;Create the barebones localization&lt;/li&gt;

&lt;blockquote&gt;mkdir -p tl/browser/installer tl/browser/profile/chrome tl/browser/searchplugins tl/browser/updater tl/toolkit

cp mozilla-1.9.1/browser/locales/en-US/defines.inc tl/browser

cp mozilla-1.9.1/browser/locales/en-US/profile/chrome/userC* tl/browser/profile/chrome

cp mozilla-1.9.1/browser/locales/en-US/firefox-l10n.js tl/browser

cp mozilla-1.9.1/browser/locales/en-US/README.txt tl/browser

cp mozilla-1.9.1/browser/locales/en-US/searchplugins/list.txt tl/browser/searchplugins

cp mozilla-1.9.1/browser/locales/en-US/updater/updater.ini tl/browser/updater/updater.ini

cp mozilla-1.9.1/toolkit/locales/en-US/defines.inc tl/toolkit&lt;/blockquote&gt;

&lt;li&gt;Create a mozconfig file, setup your object directory&lt;/li&gt;

&lt;blockquote&gt;cd mozilla-1.9.1

echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fx-tl" &amp;gt; .mozconfig

echo "ac_add_options --with-l10n-base=../" &amp;gt;&amp;gt; .mozconfig

echo "ac_add_options --disable-compile-environment" &amp;gt;&amp;gt; .mozconfig

echo "ac_add_options --enable-application=browser" &amp;gt;&amp;gt; .mozconfig

make -f client.mk configure&lt;/blockquote&gt;



&lt;li&gt;Test merge-ab-CD and langpack-ab-CD targets&lt;/li&gt;

&lt;blockquote&gt;cd ../fx-tl

make -C browser/locales merge-tl LOCALE_MERGEDIR=`pwd`/../merge

make -C browser/locales langpack-tl LOCALE_MERGEDIR=`pwd`/../merge LANGPACK_FILE=`pwd`/../firefox-tl.xpi&lt;/blockquote&gt;

&lt;/ol&gt;



If everything went well, you should be ready to translate now!</description><category>l10n</category><guid>https://hearsum.ca/posts/creating-a-new-localization-for-firefox-3-1/</guid><pubDate>Fri, 30 Jan 2009 06:21:36 GMT</pubDate></item></channel></rss>