google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

Localization not working with rails 2.0.2 and 2.1 and Github's Globalite version #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. rails test_app
2. cd test_app
3. git clone git://github.com/matta/globalite.git 
4. mkdir -p lang/ui
5. echo "login: login name" >> lang/ui/en-US.yml
6. echo "login: nombre de usuario" >> lang/ui/es-ES.yml
7. echo "Globalite.language = :es" >> config/environment.rb
8. script/console 
Loading development environment (Rails 2.1.0)
>> :login.l
=> "__localization_missing__"
>> Globalite.language = :en
=> :en
>> :login.l
=> "__localization_missing__"
>> quit

What is the expected output? What do you see instead?

The expected output should be "login name" and "nombre de usuario" for
English and Spanish respectively but I get __localization_missing__ all the
time.

What version of the product are you using? On what operating system?

Tested on Linux, using rails 2.1 and rails 2.0.2. Globalite from Github

Original issue reported on code.google.com by jca...@gmail.com on 4 Jun 2008 at 2:43

GoogleCodeExporter commented 9 years ago
do the specs pass for you? The globalite example works great on 2.1
http://github.com/matta/globalite-example/tree/master

Could you try it out and let me know if you have the same problem.

Thanks,

-Matt

Original comment by mattAimo...@gmail.com on 4 Jun 2008 at 4:14

GoogleCodeExporter commented 9 years ago
Hi matt, thanks for the answer, the topic was 

Globalite.load_localization! code was removed from init.rb

I added to lib/globalite.rb and push it on my github fork plus some minor bug 
fix in
spanish translations and the patch I submited here. 

You can pull if you want from calas/globalite at github

Keep the work, the plugin is godsend!

Original comment by jca...@gmail.com on 4 Jun 2008 at 5:12

GoogleCodeExporter commented 9 years ago
merged in Head, thanks a lot!

-Matt

Original comment by mattAimo...@gmail.com on 4 Jun 2008 at 5:48