onomojo / i18n-timezones

Rails I18n timezone translations
MIT License
68 stars 47 forks source link

St. Petersburg doesn't translate #1

Closed bingomanatee closed 12 years ago

bingomanatee commented 12 years ago

For some reason the key for "St. Petersburg" doesn't key in properly - "San Petersburgo" is not appearing when I drop down. I have tried a bunch of keys = "St Petersburg", "Saint Petersburgh", "St. Petersburg" and none of them seem to key in properly.

bingomanatee commented 12 years ago

and "St/. Petersburg" ...

jpmckinney commented 12 years ago

The period is a scope separator in I18n. You need to change the scope separator to something else when making the I18n lookup, e.g.:

I18n.t(name, :scope => :timezones, :default => name, :separator => "\001")
onomojo commented 12 years ago

Thank you. This should be resolved now. I just bumped versions.