Again a pbly. interesting post by “szymek” to the globalize list (which
still has no archive as far as I know):
– begin –
I’ve created a sketch of a tutorial about how to use globalize to
translate an existing rails app.
You can find it here:
I couldn’t find complete globalize tutorial anywhere, so i decided to
create one and hope that you will help
As English is not my native language (i’m Polish), i made lots of
mistakes there and i strongly encourage everyone to correct them. I’m
not sure if even the title of the page is correct I’m also not really
sure if i should write “Now we have to create…” or “Now you have to
create…” or just “Create…” so unfortunately you can find mix of all
I’m Ruby/Rails newbie, so the technical part can also have lots of
mistakes. Feel free to correct/add/remove/improve anything you think
will make this tutorial better.
I have few questions and propositions for the tutorial:
How to put url in
automatically adds link.
Could you guys take a look at the built_in column problem? I could
remove then the whole WARNING part. I’m not sure if only i have this
There’s a problem with routes in the tutorial. If i go to
“localhost:3000/admin/” i get “localhost:3000/en/admin/admin/products”.
If i specify locale in the route for ‘admin’ it works correctly so i
assume there’s something wrong in my :set_locale method in
How to display a single object in 2 languages on a single page? Do i
need to get both versions from the database? Currently i’m using
@instance_variable.switch_language method provided by
globalize_extension plugin, which was posted by Olivier Amblet on this
mailing list. The plugin is great, but i’m not sure if there shouldn’t
be globalize only solution in the tutorial. Maybe this plugin could be
integrated with globalize? Also i’m not sure if Olivier Amblet is the
only author of this plugin. Olivier, if you want feel free to change it.
Is it possible to upload files (globalize_extension plugin) and
pictures to the globalize wiki server?
It would be nice to say something about adding/using pluralizations,
and localization of dates/currency (that’s why i’ve added
created/updated_on and price fields to product model).
Add a chapter about translating error messages (maybe they could be
built-in like dates?)
Add short introduction.
Upload non-globalize and globalized versions of the app? It could be
helpful as the reference and probably could clear up many inaccuracies.
Correct the styling (i.e. add different background color for notes,
change font, maybe move it to the right?)
– end –