Early Radiant translation

Hi all,

I’ve started adding translation capabilities to Radiant using the GLoc
Rails plugin (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?

Frederic B. wrote:

I’ve started adding translation capabilities to Radiant using the GLoc
Rails plugin (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

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/ 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?

Daniel S. wrote:

Perhaps 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

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

On 7/20/06, John W. Long [email protected] wrote:

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

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

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

On 7/20/06, James MacAulay [email protected] 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 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

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.

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

Dean S. wrote:

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

I agree.


John L.
http://wiseheartdesign.com

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.

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 :stuck_out_tongue:

James

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

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.

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs