# I18n

**URL:** <https://www.ruby-forum.com/t/i18n/103807>\
**Category:** Radiant CMS\
**Created:** [May 10, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/i18n/103807 "2007-05-10T15:18:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 10, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/i18n/103807/1 "2007-05-10T15:18:14Z")

</div>

Maybe there already had a discussion on the matter? If so please point  
me to  
the right place.

How could I translate Radiant without touching the code base? Is this  
possible as an extension?

Thanks,  
Jonathan

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 14, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/i18n/103807/2 "2007-05-14T17:04:36Z")

</div>

Jonathan Métillon wrote:

> Maybe there already had a discussion on the matter? If so please point me to  
> the right place.

[http://tinyurl.com/2arp2q](http://tinyurl.com/2arp2q)

or

[http://www.google.com/custom?hl=en&cof=AH%3Aleft%3BS%3Ahttp%3A%2F%2Fradiantcms.org%3B&domains=lists.radiantcms.org&q=translate&btnG=Search&sitesearch=lists.radiantcms.org](http://www.google.com/custom?hl=en&cof=AH%3Aleft%3BS%3Ahttp%3A%2F%2Fradiantcms.org%3B&domains=lists.radiantcms.org&q=translate&btnG=Search&sitesearch=lists.radiantcms.org)

> How could I translate Radiant without touching the code base? Is this  
> possible as an extension?

You could do it as an extension, but you would need to replace all of  
the views with your translated versions.

I am warming up to the idea of adding localization support pre 1.0. My  
main worry about adding it now is that it would make the release cycle  
longer, but _not_ supporting it seems a bit of language racism. But the  
interface really hasn’t changed that much, so perhaps this is a case of  
premature optimization.

I believe there have already been several attempts to localize Radiant  
through a series of patches on Trac. What is the status of these?

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

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 14, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/i18n/103807/3 "2007-05-14T19:06:35Z")

</div>

I am only aware of one attempt to internationalize Radiant, it was  
rather a long time ago and for version 0.5.2. I have one site using  
it, and it is nice. I am currently updating that site, and faced with  
the prospect of not translating it…

I think it is actually a lot less work than you realize. Once the  
various strings are in place, it is pretty easy to update things. I  
really think this is something that should be addressed before the  
1.0 release and I also believe that it won’t get too much in the way  
of updating the interface. The only real problems are the few buttons  
with text. These would of course have to be replaced with something a  
bit more flexible, but even that would be possible using text and  
perhaps background images.

Just an aside, one thing that would make translating a site a bit  
tough would be the error messages. These are found throughout the  
various controllers and helpers and would be hard to address with an  
extension.

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

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 14, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/i18n/103807/4 "2007-05-14T19:08:36Z")

</div>

Thank you John.

I will skip the “rewrite all views” option 🙂

I am not technical enough to help adding localization support, but I’d  
be  
glad to create the French language file when it will be up!

Jonathan

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 1:36am UTC](https://www.ruby-forum.com/t/i18n/103807/5 "2007-05-15T01:36:35Z")

</div>

Keith B. wrote:

> Just an aside, one thing that would make translating a site a bit  
> tough would be the error messages. These are found throughout the  
> various controllers and helpers and would be hard to address with an  
> extension.

I believe Gibberish would solve this problem:

[http://errtheblog.com/post/4396](http://errtheblog.com/post/4396)

The first one to create a patch gets 12 bonus points and a gold star. 🙂

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

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 1:57am UTC](https://www.ruby-forum.com/t/i18n/103807/6 "2007-05-15T01:57:37Z")

</div>

John… Thursday night hacking session?

Sean

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 1:51am UTC](https://www.ruby-forum.com/t/i18n/103807/7 "2007-05-15T01:51:37Z")

</div>

Why reinvent the wheel? Isn’t this why Gettext was created in the first  
place?

See [Peak Obsession](http://manuals.rubyonrails.com/read/chapter/105)

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 9:07am UTC](https://www.ruby-forum.com/t/i18n/103807/8 "2007-05-15T09:07:19Z")

</div>

I’m ready to traduce the first lang file.

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 3:26am UTC](https://www.ruby-forum.com/t/i18n/103807/9 "2007-05-15T03:26:42Z")

</div>

Sean C. wrote:

> John… Thursday night hacking session?

That sounds like fun. Anyone else with a desire to see Radiant localized  
planning to be there?

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

---

<div class="post-metadata">

**Author:** ![jonathan2000](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/fbc32d/32.png) [@jonathan2000](https://www.ruby-forum.com/u/jonathan2000)\
**Post date:** [May 15, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/i18n/103807/10 "2007-05-15T21:52:44Z")

</div>

Wow, thats the way to go!

I’ll be happy to translate to the second language (Dutch).

```
Erik.

```

Sean C. wrote:

> John… Thursday night hacking session?

–  
Erik van Oosten  
[http://2007.rubyenrails.nl/](http://2007.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.
