Sharagoz -- wrote:
> Where are you getting the empty string from I18n.localize? Are you 
> getting it in the console too?
> 
> Mind posting the whole translation file, or at least the top part 
> including the number localizations?

Console:
>> I18n.t("time.formats.default")
I18n.t("time.formats.default")
=> "%a, %d %b %Y %H:%M:%S %z"

>> I18n.l(Time.now, :formats => :default)
I18n.l(Time.now, :formats => :default)
=> "Tue, 23 Feb 2010 22:10:22 Mitteleuropäische Zeit"

Translation file:
en-US:
  number:
    # Used in number_with_delimiter()
    # These are also the defaults for 'currency', 'percentage', 
'precision', and 'human'
    format:
      # Sets the separator between the units, for more precision (e.g. 
1.0 / 2.0 == 0.5)
      separator: "."
      # Delimets thousands (e.g. 1,000,000 is a million) (always in 
groups of three)
      delimiter: ","
      # Number of decimals, behind the separator (the number 1 with a 
precision of 2 gives: 1.00)
      precision: 3

  ...

  time:
    formats:
      default: "%a, %d %b %Y %H:%M:%S %z"
      short: "%d %b %H:%M"
      long: "%B %d, %Y %H:%M"
    am: "am"
    pm: "pm"

but:
   <%= I18n.l(Time.now, :formats => :default) %>
still returns nothing.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to