Hey,
I use different lang files like this
\lang\en_EN.rb
\lang\nl_BE.rb
I use the localization plugin
Create a file /lang/translations.rb:
Localization.define(''de'') do |l|
l.store ''yes'', ''Ja''
l.store ''no'', ''Nein''
end
Localization.define(''fr'') do |l|
l.store ''yes'', ''oui''
l.store ''no'', ''non''
end
In your controller or application.rb:
Localization.lang = ''de'' # or ''fr''
In your view:
<%=_ ''yes'' %>
<%=_ ''no'' %>
But what about this???
Localization.define(''nl_BE'') do |l|
l.store ''please_login'', ''Gelieve aan te
meldenééééàçèa$Ë&''
l.store ''username'', ''Gebruikersnaam''
end
Then I get japanese symbols, can somebody help me??
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---