# Early Radiant translation

**URL:** <https://www.ruby-forum.com/t/early-radiant-translation/99006>\
**Category:** Radiant CMS\
**Created:** [July 19, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006 "2006-07-19T18:15:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 19, 2006, 6:15pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/1 "2006-07-19T18:15:13Z")

</div>

Hi all,

I’ve started adding translation capabilities to Radiant using the GLoc  
Rails plugin ([http://rubyforge.org/projects/gloc](http://rubyforge.org/projects/gloc)).

Except from image containing text, defining translations strings in  
quite easy.

How can I show it to you before submitting a patch?

By the way, why using images to display text?

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 19, 2006, 10:05pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/2 "2006-07-19T22:05:06Z")

</div>

Frederic B. wrote:

> I’ve started adding translation capabilities to Radiant using the GLoc  
> Rails plugin ([http://rubyforge.org/projects/gloc](http://rubyforge.org/projects/gloc)).
> 
> Except from image containing text, defining translations strings in quite easy.
> 
> How can I show it to you before submitting a patch?

The easiest thing would be to create a ticket and label it with  
[RESEARCH] and [PATCH] in the title and attach your patch to that. Even  
if you aren’t quite ready for your changes to be used by others, doing  
it that way a great way to show us what you are up to.

> By the way, why using images to display text?

It is the the easiest way to create buttons with rounded corners as I  
designed them. If Radiant offers full multi-lingual support they will  
definitely need to be replaced with simple text.

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

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 7:02am UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/3 "2006-07-20T07:02:31Z")

</div>

> > By the way, why using images to display text?
> 
> It is the the easiest way to create buttons with rounded corners as I  
> designed them. If Radiant offers full multi-lingual support they will  
> definitely need to be replaced with simple text.

Perhaps [http://encytemedia.com/demo/rico/](http://encytemedia.com/demo/rico/) could be used to do the  
rounded corners instead.

Since the admin console already requires a fair bit of javascript, why  
not a bit more?

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 3:19pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/4 "2006-07-20T15:19:57Z")

</div>

Daniel S. wrote:

> Perhaps [http://encytemedia.com/demo/rico/](http://encytemedia.com/demo/rico/) could be used to do the  
> rounded corners instead.
> 
> Since the admin console already requires a fair bit of javascript, why  
> not a bit more?

Would this help on buttons with thin borders like the one below?

[http://demo.radiantcms.org/images/clear-page-cache.png](http://demo.radiantcms.org/images/clear-page-cache.png)

You can often achieve the same effect with CSS, but as I said before,  
it’s a bit messier than just using an image.

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

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 3:35pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/5 "2006-07-20T15:35:12Z")

</div>

On 7/20/06, John W. Long [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Would this help on buttons with thin borders like the one below?
> 
> [http://demo.radiantcms.org/images/clear-page-cache.png](http://demo.radiantcms.org/images/clear-page-cache.png)

For something like this why not just use the rounded image as a  
background  
and put the text on top of it?..straight CSS with no JS to muck around  
with. Just a thought…

|| Dean

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 5:35pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/6 "2006-07-20T17:35:57Z")

</div>

The only problem I see with doing text on static images is that, in  
the long term, some translations may be quite a bit longer or shorter  
than others. I guess the translation could include style attributes  
to resize text when necessary.

James

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/7 "2006-07-20T17:48:39Z")

</div>

On 7/20/06, James MacAulay [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The only problem I see with doing text on static images is that, in the  
> long term, some translations may be quite a bit longer or shorter than  
> others. I guess the translation could include style attributes to resize  
> text when necessary.  
> James

Ahh, but that’s why the good people over at ALA exist: to solve everyone  
else’s problems! We could use a derivative of sliding doors [1](http://alistapart.com/articles/slidingdoors/) or  
something  
similar. JS or pure images or … whatever is fine because Radiant will  
still rock no matter what, but personally I prefer straight up HTML+CSS  
whenever possible.

|| Dean

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 3:47pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/8 "2006-07-20T15:47:35Z")

</div>

> The easiest thing would be to create a ticket and label it with  
> [RESEARCH] and [PATCH] in the title and attach your patch to that. Even  
> if you aren’t quite ready for your changes to be used by others, doing  
> it that way a great way to show us what you are up to.

Ok then, I’ll try to do that.

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/9 "2006-07-20T17:58:26Z")

</div>

Dean S. wrote:

> Ahh, but that’s why the good people over at ALA exist: to solve everyone  
> else’s problems! We could use a derivative of sliding doors [1] or  
> something similar. JS or pure images or … whatever is fine because  
> Radiant will still rock no matter what, but personally I prefer straight  
> up HTML+CSS whenever possible.

+1 for sliding doors.

Jay

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 6:46pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/10 "2006-07-20T18:46:32Z")

</div>

Dean S. wrote:

> but personally I prefer straight up HTML+CSS  
> whenever possible.

I agree.

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

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 7:27pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/11 "2006-07-20T19:27:53Z")

</div>

I’ve just uploaded the patch…

I had to remove the vendor/plugin/gloc from the patch to reduce its  
size. Also note that I had some trouble starting Radiant with GLoc,  
apparently because of the frozen Rails. I couldn’t figure out why  
because I’m running the exact same version on my computer.

Let me know about it.

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/12 "2006-07-20T19:11:48Z")

</div>

On 20-Jul-06, at 11:47 AM | Jul 20, Dean S. wrote:

> 

Nice, thanks for the link. Obviously I don’t read ALA enough 😛

James

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 21, 2006, 1:56am UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/13 "2006-07-21T01:56:28Z")

</div>

> Would this help on buttons with thin borders like the one below?
> 
> [http://demo.radiantcms.org/images/clear-page-cache.png](http://demo.radiantcms.org/images/clear-page-cache.png)

Yes, you just do:

Rico.Corner.round(element, {border: ‘#00ff00’});

Though as mentioned elsewhere, the sliding doors solution is also a good  
one, though in a controlled environment like the admin console, rico’s  
also a good solution.

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 7:43pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/14 "2006-07-20T19:43:27Z")

</div>

Frederic B. wrote:

> I’ve just uploaded the patch…
> 
> I had to remove the vendor/plugin/gloc from the patch to reduce its  
> size. Also note that I had some trouble starting Radiant with GLoc,  
> apparently because of the frozen Rails. I couldn’t figure out why  
> because I’m running the exact same version on my computer.
> 
> Let me know about it.

Looks nice Fredric. A surprisingly small amount of modifications! Does  
this automatically set the content type based off of the content type  
the browser prefers? Or is the language set once globally?

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

---

<div class="post-metadata">

**Author:** ![fred](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@fred](https://www.ruby-forum.com/u/fred)\
**Post date:** [July 20, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/early-radiant-translation/99006/15 "2006-07-20T20:21:07Z")

</div>

> the browser prefers? Or is the language set once globally?  
> Yes, according to the documentation, there is a controller filter to  
> simply  
> declare.
