Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

:default option with a \n char inside doesn't have expected output #81

Closed
christian opened this Issue · 1 comment

2 participants

@christian

Hi,

I'm trying to do something like this:

I18n.t(:unknown, :default => "Hello,\n world")

When I'm having a fallback mechanism in place:

I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
I18n.fallbacks.map('de' => 'en')

the above fails, i.e. the result is "Hello,\n" instead of "Hello,\n world" .
I believe there is something wrong with the "\n" character.
Is this normal behaviour or I am doing something wrong ?

Thanks

@knapo
Collaborator

Good catch. Thank you! It happened in Fallbacks backend in ruby 1.8.7, as Array(string) splits string on new line char. Fixed in 1c53c5d

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.