# Internationalization Support

**URL:** <https://www.ruby-forum.com/t/internationalization-support/110030>\
**Category:** Radiant CMS\
**Created:** [July 21, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030 "2007-07-21T17:59:18Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 21, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/1 "2007-07-21T17:59:18Z")

</div>

I added a new branch to the repository today named ‘jargon’ and merged  
Kieth Bingman’s changes to support Gibberish in from ticket 507  
([http://dev.radiantcms.org/radiant/ticket/507](http://dev.radiantcms.org/radiant/ticket/507)).

Jargon needs the following before it can be merged into head:

- A combo box needs to be added to the login screen that will allow you  
to select your language
- Support for auto selecting the language based on the content type  
requested by the User’s browser
- A strategy that will allow extensions to offer multi-language support
- More language translation files
- More tests

Hopefully this will give us a place to coordinate efforts on  
internationalization.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 21, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/2 "2007-07-21T19:03:55Z")

</div>

On Jul 21, 2007, at 5:58 PM, John W. Long wrote:

> I added a new branch to the repository today named ‘jargon’ and merged  
> Kieth Bingman’s changes to support Gibberish in from ticket 507  
> ([http://dev.radiantcms.org/radiant/ticket/507](http://dev.radiantcms.org/radiant/ticket/507)).

Cool! I have discovered a few things missing in that patch this week  
and have uploaded the corrections.

> Jargon needs the following before it can be merged into head:
> 
> - A combo box needs to be added to the login screen that will allow  
> you  
> to select your language

Per user languages were something I wanted to add, but I was waiting  
to see were you went with this.

> - Support for auto selecting the language based on the content type  
> requested by the User’s browser

I am not quite sure where this would fit in if you can select the  
language at login.

> - A strategy that will allow extensions to offer multi-language  
> support

This one is hard. The way Gibberish works is that it loads the  
language file. The easy way to do it is too paste the changes onto  
the language file, but this will get out of control very quickly.  
Ideally an extension will have it’s own Gibberish files. At very  
least, each extension that replaces a view needs to be updated to  
support Gibberish. Do you have any thoughts about this John?

> - More language translation files

I have a German translation done and will submit that as a patch.  
Another thing that will be needed is a good way to submit and review  
translation files. I am not sure you want patches for every language.

> - More tests
> 
> Hopefully this will give us a place to coordinate efforts on  
> internationalization.

Keith B.  
Tel: +49-7731-7983830  
removed\_email\_address@domain.invalid  
[http://keithbingman.com](http://keithbingman.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 21, 2007, 8:20pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/3 "2007-07-21T20:20:04Z")

</div>

Keith B. wrote:

> Cool! I have discovered a few things missing in that patch this week  
> and have uploaded the corrections.

Can you create a patch for these against the Jargon branch and attach it  
to ticket 507?

> > - A combo box needs to be added to the login screen that will allow  
> > you to select your language
> 
> Per user languages were something I wanted to add, but I was waiting  
> to see were you went with this.

Ok, thinking out loud here. Perhaps it should be configured under  
user/preferences instead. That way you wouldn’t have to select it every  
time you logged in.

> > - Support for auto selecting the language based on the content type  
> > requested by the User’s browser

If it hasn’t be configured on the User preferences page, I’d suggest  
that we auto-detect it when they log in.

> > - A strategy that will allow extensions to offer multi-language  
> > support
> 
> This one is hard. The way Gibberish works is that it loads the  
> language file. The easy way to do it is too paste the changes onto  
> the language file, but this will get out of control very quickly.  
> Ideally an extension will have it’s own Gibberish files. At very  
> least, each extension that replaces a view needs to be updated to  
> support Gibberish. Do you have any thoughts about this John?

I think it’s just a matter of creating a load path for language  
translation files so that Gibberish knows to look in multiple places and  
can resolve conflicts between files based on load path precedence.

Once that level of support has been added to Gibberish it should be  
fairly trivial to ensure that each extension’s translation files are  
loaded correctly.

I’m definately open to suggestions here.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 21, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/4 "2007-07-21T20:42:09Z")

</div>

John W. Long wrote:

> Wait a minute. I see that you created a new ticket for this:
> 
> [http://dev.radiantcms.org/radiant/ticket/518](http://dev.radiantcms.org/radiant/ticket/518)
> 
> I’ll apply it now.

Done:

[http://dev.radiantcms.org/radiant/changeset/466](http://dev.radiantcms.org/radiant/changeset/466)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 23, 2007, 9:41pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/5 "2007-07-23T21:41:13Z")

</div>

Hello!

how do i freeze radiant application to jargon branch?

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 21, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/6 "2007-07-21T20:35:08Z")

</div>

John W. Long wrote:

> Keith B. wrote:
> 
> > Cool! I have discovered a few things missing in that patch this week  
> > and have uploaded the corrections.
> 
> Can you create a patch for these against the Jargon branch and attach it  
> to ticket 507?

Wait a minute. I see that you created a new ticket for this:

[http://dev.radiantcms.org/radiant/ticket/518](http://dev.radiantcms.org/radiant/ticket/518)

I’ll apply it now.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 23, 2007, 9:50pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/7 "2007-07-23T21:50:49Z")

</div>

Keymone wrote:

> Hello!
> 
> how do i freeze radiant application to jargon branch?

rake radiant:freeze:edge BRANCH=jargon

I’ll be making some changes to the branch today, by the way. I got a  
patch to Gibberish accepted that obviates the need for the  
extension\_languages extension.

Sean

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 10:08am UTC](https://www.ruby-forum.com/t/internationalization-support/110030/8 "2007-07-24T10:08:10Z")

</div>

?? wrote:

> I have Japanese translation file (ja.yaml) . And I want to submit  
> this file.  
> What should I do?

Attach it to a ticket on the Trac site.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 8:45am UTC](https://www.ruby-forum.com/t/internationalization-support/110030/9 "2007-07-24T08:45:25Z")

</div>

Hello.

I have Japanese translation file (ja.yaml) . And I want to submit  
this file.  
What should I do?

–  
rish(Ryutatsu Ishigami)  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 12:24pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/10 "2007-07-24T12:24:24Z")

</div>

Thank you for reply.  
I submitted translation file(ja.yaml).

see below.  
[http://dev.radiantcms.org/radiant/ticket/507](http://dev.radiantcms.org/radiant/ticket/507)

–  
rish ( ryutatsu ishigami)  
removed\_email\_address@domain.invalid  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 4:27pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/11 "2007-07-24T16:27:00Z")

</div>

Ryutatsu Ishigami(rish) wrote:

> Thank you for reply.  
> I submitted translation file(ja.yaml).
> 
> see below.  
> [http://dev.radiantcms.org/radiant/ticket/507](http://dev.radiantcms.org/radiant/ticket/507)

Committed:

[http://dev.radiantcms.org/radiant/changeset/469](http://dev.radiantcms.org/radiant/changeset/469)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/12 "2007-07-24T18:16:23Z")

</div>

I’ve attached a Dutch translation (nl.yaml) as well.

Perhaps it is wise to maintain a registry for translation maintainers? I  
volunteer for the Dutch version 🙂

Regards,  
Erik.

John W. Long wrote:

> John L.  
> [http://wiseheartdesign.com](http://wiseheartdesign.com)
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
Erik van Oosten  
[http://2008.rubyenrails.nl/](http://2008.rubyenrails.nl/)

> **[Day to day stuff](http://day-to-day-stuff.blogspot.com/)**
>
> Experiences from a hard core JVM programmer. Likes to keep things simple.

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/13 "2007-07-24T17:38:34Z")

</div>

The jargon branch now supports language files loaded from the gem or  
vendor/radiant, extensions, and the local Radiant project. Many thanks  
to Chris W. for accepting my patch to Gibberish!

[http://dev.radiantcms.org/radiant/changeset/470](http://dev.radiantcms.org/radiant/changeset/470)  
[http://dev.radiantcms.org/radiant/changeset/471](http://dev.radiantcms.org/radiant/changeset/471)

To add a language file to your extension, just add a lang/ directory and  
put the appropriate YAML language files in that directory.

Sean

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/14 "2007-07-24T18:27:17Z")

</div>

Erik van Oosten wrote:

> I’ve attached a Dutch translation (nl.yaml) as well.

Committed:

[http://dev.radiantcms.org/radiant/changeset/472](http://dev.radiantcms.org/radiant/changeset/472)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/15 "2007-07-24T20:02:41Z")

</div>

I would love to translate into spanish, but need to get a working  
copy (or rather, I want to upgrade to this branch.

I used: rake radiant:freeze:edge BRANCH=jargon  
But am running off of gems.

It installed in /vendor/radiant/ and after starting and stopping the  
server, I can seem to see a difference.

Surely I need to migrate stuff over. What needs to happen from  
here. I know for extensions it is rake db:migrate:extensions, but  
that is obviously wrong, and so is rake db:migrate:extensions. Any  
feedback would be welcome. Then I can start translations (unless it  
is already done).

-Mark

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [July 24, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/16 "2007-07-24T19:46:36Z")

</div>

Perfect Erik

Nu hoef ik dat niet meer te doen 🙂

Translated… thanks for saving me some work 🙂

Of course if any help is needed on the dutch version just shout.

Peter.

On 7/24/07, Erik van Oosten [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> John W. Long wrote:
> 
> > John L.  
> > [http://2008.rubyenrails.nl/](http://2008.rubyenrails.nl/)  
> > [http://www.day-to-day-stuff.blogspot.com/](http://www.day-to-day-stuff.blogspot.com/)
> 
> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

–  
met vriendelijke groet,

Peter B.

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [August 3, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/internationalization-support/110030/17 "2007-08-03T23:48:15Z")

</div>

Oliver B. wrote:

> John W. Long wrote:
> 
> > Attach it to a ticket on the Trac site.
> 
> German translation attached to ticket. I didn’t test it though, but it’s  
> valid YAML and "should work"™.

Thank you. Committed:

[http://dev.radiantcms.org/radiant/changeset/476](http://dev.radiantcms.org/radiant/changeset/476)

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [August 3, 2007, 2:51am UTC](https://www.ruby-forum.com/t/internationalization-support/110030/18 "2007-08-03T02:51:40Z")

</div>

John W. Long wrote:

> Attach it to a ticket on the Trac site.

German translation attached to ticket. I didn’t test it though, but it’s  
valid YAML and "should work"™.

Oliver
