svenfuchs / rails-i18n
- Source
- Commits
- Network (113)
- Issues (4)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
-
too_short: "過短(最短为 {{count}} 个字符)"
"過" is Chinese-traditional, right is "过"Comments
-
local zh-CN.yml, missing "record_invalid" translation
1 comment Created 13 days ago by sunteyamissing "activerecord.errors.messages.record_invalid" translation
record_invalid: "交验失败: {{errors}}"Comments
Thanks, sunteya! Fixed: http://github.com/svenfuchs/rails-i18n/commit/569efe99b172f92a1bada1293ef2ea7507116c76
-
Proceed step by step by guide. But in the end always get something like this just on place of selected string for extract:
/Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:25: warning: method redefined; discarding old to_yaml /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:27:in `to_yaml': undefined local variable or method `taguri' for {"en"=>{"test"=>"test"}}:Hash (NameError) from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:26:in `call' from /usr/lib/ruby/1.8/yaml.rb:373:in `quick_emit' from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:26:in `to_yaml' from /usr/lib/ruby/1.8/yaml.rb:103:in `dump' from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:118:in `add_yaml_translation' from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:118:in `open' from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:118:in `add_yaml_translation' from /Users/pepe/Library/Application Support/TextMate/Pristine Copy/Bundles/Rails I18n.tmbundle/Support/lib/rails-i18n.rb:77:in `execute' from /tmp/temp_textmate.kepADj:3I am crazy from this, please help :-(
Comments
-
At this line have [ :day, :month, :year ] but this should be [:day, :month, :year]
Fix this or the date methods shouldn't work for pt-BR
Best regards
Comments
-
Hi!
I have the following problem with I18n and the "label" form helper:
in my de.yml I have:
de: activerecord: attributes: feedback: email: 'E-Mail-Adresse'In my form I have
<% form_for(@feedback) do |f| %> <%= f.label :email %> <%= f.text_field :email %> <% end %>What happens is that the label method de-capitalizes the string returned by I18n so I get 'E-mail-adresse' in the output which unfortunately is wrong in German.
It is easy to work around this by manually creating an html label tag with a <%= I18n.t 'activerecord.attributes.feedback.email' %> inside.I think the label form helper should not touch the string returned by I18n.
Cheers,
PatrickPS: my Rails version is 2.3.4
Comments
I just noticed that I actually had <%= f.label I18n.t(:email) %> which obviously can't work. label doesnt use I18n at al up to now.
Sorry for the false alarm.
Anyhow, the label method should be fixed.
thermotoga
Sun Dec 06 01:51:30 -0800 2009
| link
yes, same problem here. its quite annoying for german speaking people. one way to get around it is <%=t :email %><
-
I'm getting "ActionView::TemplateError (can't convert Symbol into String) on line ..."
0 comments Created 3 months ago by guedesI've changed the first line to pt_BR and used config.i18n.default_locale = :pt_BR to fix this problem. Without this i'm getting unexpected behaviors and errors using this locale config :(
Comments





感谢指正,修正请求已经送出。
Thanks, pull request is sent out.
Pulled a while ago :)