<?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>Rails on the Run &#187; internationalization</title>
	<atom:link href="http://railsontherun.com/tag/internationalization/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsontherun.com</link>
	<description>Rails experiments by Matt Aimonetti</description>
	<lastBuildDate>Tue, 23 Feb 2010 07:28:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>New version of Globalite is coming up</title>
		<link>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/</link>
		<comments>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 14:10:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[activeRecord]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[translation]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up</guid>
		<description><![CDATA[I&#8217;m almost ready to update Globalite with 2 major changes:

Support for Chinese (Taiwan, Hong Kong and main land China) thanks to Ivan Chang
Better support for Active Record error messages in forms (based on contribution from Ivan)

I&#8217;m writing more tests and updating the sample app before releasing the updated version. It should be out in the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m almost ready to update Globalite with 2 major changes:</p>
<ul>
<li>Support for Chinese (Taiwan, Hong Kong and main land China) thanks to Ivan Chang</li>
<li>Better support for Active Record error messages in forms (based on contribution from Ivan)</li>
</ul>
<p>I&#8217;m writing more tests and updating the sample app before releasing the updated version. It should be out in the next few days.</p>
<p>[Globalite page @ Google Code](http://code.google.com/p/globalite/</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/08/29/new-version-of-globalite-is-coming-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Globalite &#8211; sample application</title>
		<link>http://railsontherun.com/2007/07/02/globalite-sample-application/</link>
		<comments>http://railsontherun.com/2007/07/02/globalite-sample-application/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 07:39:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[sample]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/08/03/globalite-sample-application</guid>
		<description><![CDATA[I recently received quite a lot of love because of Globalite. Even though I tried to write some documentation about the plugin, I know that there&#8217;s not much. I also know that there&#8217;s a difference between showing how to set a locale and how to actually use that code in a real application.
To fill this [...]]]></description>
			<content:encoded><![CDATA[<p>I recently received quite a lot of love because of Globalite. Even though I tried to write some documentation about the plugin, I know that there&#8217;s not much. I also know that there&#8217;s a difference between showing how to set a locale and how to actually use that code in a real application.</p>
<p>To fill this gap I wrote a very simple and rough Rails sample application with a fully localized User Interface:</p>
<p><img src="http://farm2.static.flickr.com/1347/691265267_bbc167f7ab.jpg?v=0" alt="UI Localization sample app"/></p>
<p>Looking at the code you will find out how to:</p>
<ul>
<li>use a different css per locale (language/country)</li>
<li>use a different picture per locale</li>
<li>set a default css/picture if the translator doesn&#8217;t specify one</li>
<li>UI localization</li>
<li>rails core localization examples</li>
<li>create a select box of available UI translations</li>
<li>get/set the locale only a specific user so other users start by seeing the default translation</li>
<li>use a translation with many dynamic arguments</li>
<li>nested translation</li>
</ul>
<p>note: I froze Edge for this sample app (it wasn&#8217;t required, Globalite works well with older version of Rails). </p>
<p>To install and run the app, just do the following:</p>
<pre><code>$ svn checkout http://globalite.googlecode.com/svn/sample/ui globalite-sample-app
</code></pre>
<p>edit config/database.example and rename it config/database.yml</p>
<pre><code>$ rake db:create

$ rake db:migrate

$ ruby script/server
</code></pre>
<p>Don&#8217;t hesitate to <a href="http://www.railsontherun.com/2007/7/2/globalite-sample-application#comments">leave a comment</a>, submit a Rails core localization file in your language or <a href="http://code.google.com/p/globalite/issues/list">submit a bug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/07/02/globalite-sample-application/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Globalite update</title>
		<link>http://railsontherun.com/2007/06/27/globalite-update/</link>
		<comments>http://railsontherun.com/2007/06/27/globalite-update/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 21:53:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/06/27/globalite-update</guid>
		<description><![CDATA[Today I updated Globalite, refactoring the code and fixing some issues.
I added a bunch of aliases since I was tired of typing:
Globalite.current_language = :fr

I shortened it to 
Globalite.language = :fr

But the old method is still available so it won&#8217;t break your code  
The major change with this update is a better support for locales. [...]]]></description>
			<content:encoded><![CDATA[<p>Today I updated Globalite, refactoring the code and fixing some issues.</p>
<p>I added a bunch of aliases since I was tired of typing:</p>
<pre><code>Globalite.current_language = :fr
</code></pre>
<p>I shortened it to </p>
<pre><code>Globalite.language = :fr
</code></pre>
<p>But the old method is still available so it won&#8217;t break your code <img src='http://railsontherun.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>The major change with this update is a better support for locales. Let&#8217;s say that in our application we setup the language to :fr (French) but we didn&#8217;t specify a country. Remember that Globalite lets you have specific translations/localizations per country so you can display dates, prices properly.  </p>
<p>Previously, if my locale was set to :fr-* then Globalite would try to load the fr.yml files and not fr-FR.yml.</p>
<p>If you decided to use a fr.yml file for your UI localization, you might have noticed that all the Rails core messages weren&#8217;t translated(now you know why). This update deals with this issue and if a translation isn&#8217;t found in your locale, it will look for translations in your language but from a different country and pick a random one.</p>
<p>I&#8217;m expecting Rails core translations in Japanese, Korean and Chinese. Feel free to email me your own file and let me know on what project you used Globalite.</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/06/27/globalite-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Globalite or another i18n/l10n solution</title>
		<link>http://railsontherun.com/2007/05/15/globalite-i18n-i10n-solution/</link>
		<comments>http://railsontherun.com/2007/05/15/globalite-i18n-i10n-solution/#comments</comments>
		<pubDate>Tue, 15 May 2007 15:58:00 +0000</pubDate>
		<dc:creator>Matt Aimonetti</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[globalite]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[internationalization]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[localization]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://railsontherun.com/2007/06/14/globalite-i18n-i10n-solution</guid>
		<description><![CDATA[I&#8217;ve been recently slightly annoyed by the lack of simple yet powerful internationalization/localization plugin for Rails.
It seems like the only real solution out there is Globalize 
However, it&#8217;s a heavy, bloated, hard to setup plugin. I might seem to complain, but I&#8217;m actually glad that someone came up with a decent solution. Globalize is quite [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been recently slightly annoyed by the lack of simple yet powerful internationalization/localization plugin for Rails.<br />
It seems like the only real solution out there is <a href="http://www.globalize-rails.org">Globalize</a> </p>
<p>However, it&#8217;s a heavy, bloated, hard to setup plugin. I might seem to complain, but I&#8217;m actually glad that someone came up with a decent solution. Globalize is quite powerful but I would like to see something simpler, lighter and easier to use.</p>
<p>While I was looking for alternate solutions, <a href="http://errtheblog.com/">Err</a> released <a href="http://errtheblog.com/post/4396">Gibberish</a> a simple and nice localization plugin.</p>
<p>Looking at Chris&#8217; code, I found a clean and nice solution but unfortunately too simple. The major problem I had with Giberrish was the lack of support for locales. That means that one cannot create an application supporting British English and American English. I lived in  both America and the UK and believe me, I can never spell some words properly. How should I spell the following words: colours or colors, behaviour or behavior, aluminium or aluminum? On top of that, your UI might be slightly different based on the region your visitor is coming from. Localization is more than translation.</p>
<p>Anyway, I decided to come up with my own solution, a breed of the best features from my favorite i18n/l10n projects. This hybrid solution should, hopefully be useful for people not needing all the resources of Globalize. I called my new project <em>Globa_lite_</em></p>
<h2>What&#8217;s cool with Globalite?</h2>
<ul>
<li>
<p>Simple UI localization</p>
<ul>
<li>support different locales</li>
<li>yml file based</li>
<li>simple syntax</li>
<li>no setup needed</li>
<li>enough for most projects needing localization</li>
<li>pass variables to the localization and let the translator deal with it</li>
</ul>
</li>
<li>
<p>Simple Rails Localization</p>
<ul>
<li>support different locales</li>
<li>nothing to do, rails comes in your own language (including currency conversion and other helpers)</li>
<li>yml file based localization for easy update</li>
<li>support for Rails 1.2x</li>
<li>simple to maintain</li>
<li>simple to add/edit a new locale</li>
</ul>
</li>
<li>
<p>Simple content i18n/l10n (coming soon)</p>
</li>
</ul>
<h2>UI localization:</h2>
<ul>
<li>Create a lang/ui folder at the root of the folder.</li>
<li>create 2 localization files: fr.yml and en-US.yml</li>
<li>add localization keys in the files:</li>
</ul>
<p>fr.yml:</p>
<pre><code>hello: bonjour

welcome: bienvenue
</code></pre>
<p>en-US.yml</p>
<pre><code>hello: howdy

welcome: welcome
</code></pre>
<ul>
<li>
<p>Declare the current locale or language </p>
<pre><code>Globalite.current_language :fr
</code></pre>
</li>
<li>
<p>In your view (or anywhere else) localize a key </p>
<pre><code>:hello.l
</code></pre>
</li>
</ul>
<p>or</p>
<pre><code>:hello.localize
</code></pre>
<p>you can also do </p>
<pre><code>:unknown_key.l("this is the default text to display if the localization isn't found")
</code></pre>
<p>Also you can pass one or many variables to the localization(check the documentation)</p>
<h2>Rails Localization</h2>
<p>Rails is automatically localized for you (meaning most helpers, including the currency converter are localized for the locale you declared).<br />
You really easily add a new supported rails language/settings by adding a yml file or editing an existing one. (for now, I only create an English and a French localization file, but I&#8217;ll add plenty more very soon)</p>
<p>Globalite also saves the locale in the session allowing many users to see a site at the same time in different languages <img src='http://railsontherun.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I believe Globalite is/will be a good solution for most of my international projects. It still lacks the content i18n and l10n as well as support for pluralization but it should be added soon.</p>
<p>Give it a try and let me know what you think:</p>
<p><a href="http://rubyforge.org/projects/globalite">RubyForge page</a></p>
<p>svn repository: svn checkout svn://rubyforge.org/var/svn/globalite/trunk globalite</p>
<p><a href="http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/?root=globalite">view repository content</a></p>
<p>ps: The project is still in beta and will change during the next few weeks, feel free to submit patches, ideas, suggestions&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://railsontherun.com/2007/05/15/globalite-i18n-i10n-solution/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

