<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ben&#039;s Blog &#187; Uncategorized</title>
	<atom:link href="http://blog.mozilla.com/bhearsum/archives/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mozilla.com/bhearsum</link>
	<description></description>
	<lastBuildDate>Fri, 12 Mar 2010 12:38:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a new localization for Firefox 3.1</title>
		<link>http://blog.mozilla.com/bhearsum/archives/78</link>
		<comments>http://blog.mozilla.com/bhearsum/archives/78#comments</comments>
		<pubDate>Fri, 30 Jan 2009 06:21:36 +0000</pubDate>
		<dc:creator>bhearsum</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[planet]]></category>

		<guid isPermaLink="false">http://blog.mozilla.com/bhearsum/?p=78</guid>
		<description><![CDATA[Someone I know recently expressed interest in translating Firefox into her native language, Tagalog. 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 Create a New Localization page hasn&#8217;t been fully updated for Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>Someone I know recently expressed interest in translating Firefox into her native language, <a href="http://en.wikipedia.org/wiki/Tagalog_language">Tagalog</a>. 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 <a href="https://developer.mozilla.org/en/Create_a_new_localization">Create a New Localization</a> page hasn&#8217;t been fully updated for Firefox 3.1 yet. By mashing together information on a <a href="https://developer.mozilla.org/en/Creating_a_Language_Pack">couple</a> of <a href="https://developer.mozilla.org/En/Compare-locales">pages</a> and a lot of help from #l10n I managed to get an environment up and running that allowed her to dive in.</p>
<p>Here&#8217;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.)</p>
<ol>
<li>Install compare-locales</li>
<blockquote><p>wget http://pypi.python.org/packages/2.5/c/compare-locales/compare_locales-0.6.1-py2.5.egg#md5=0b939a22d87427d80f5286dc5eb1eab2<br />
easy_install compare_locales-0.6.1-py2.5.egg</p></blockquote>
<li>Clone mozilla-1.9.1</li>
<blockquote><p>hg clone http://hg.mozilla.org/releases/mozilla-1.9.1</p></blockquote>
<li>Create the barebones localization</li>
<blockquote><p>mkdir -p tl/browser/installer tl/browser/profile/chrome tl/browser/searchplugins tl/browser/updater tl/toolkit<br />
cp mozilla-1.9.1/browser/locales/en-US/defines.inc tl/browser<br />
cp mozilla-1.9.1/browser/locales/en-US/profile/chrome/userC* tl/browser/profile/chrome<br />
cp mozilla-1.9.1/browser/locales/en-US/firefox-l10n.js tl/browser<br />
cp mozilla-1.9.1/browser/locales/en-US/README.txt tl/browser<br />
cp mozilla-1.9.1/browser/locales/en-US/searchplugins/list.txt tl/browser/searchplugins<br />
cp mozilla-1.9.1/browser/locales/en-US/updater/updater.ini tl/browser/updater/updater.ini<br />
cp mozilla-1.9.1/toolkit/locales/en-US/defines.inc tl/toolkit</p></blockquote>
<li>Create a mozconfig file, setup your object directory</li>
<blockquote><p>cd mozilla-1.9.1<br />
echo &#8220;mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../fx-tl&#8221; > .mozconfig<br />
echo &#8220;ac_add_options &#8211;with-l10n-base=../&#8221; >> .mozconfig<br />
echo &#8220;ac_add_options &#8211;disable-compile-environment&#8221; >> .mozconfig<br />
echo &#8220;ac_add_options &#8211;enable-application=browser&#8221; >> .mozconfig<br />
make -f client.mk configure</p></blockquote>
</li>
<li>Test merge-ab-CD and langpack-ab-CD targets</li>
<blockquote><p>cd ../fx-tl<br />
make -C browser/locales merge-tl LOCALE_MERGEDIR=`pwd`/../merge<br />
make -C browser/locales langpack-tl LOCALE_MERGEDIR=`pwd`/../merge LANGPACK_FILE=`pwd`/../firefox-tl.xpi</p></blockquote>
</ol>
<p>If everything went well, you should be ready to translate now!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mozilla.com/bhearsum/archives/78/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
