Forum: Rails I18n language files

05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-09-15 09:55
(Received via mailing list)
Hi
Just a remark
When I use on:  as a key in my language file I18N cannot find that key
in the yml file, but when I change it to on_: it works
I use it to translate a preposition before  time as born on 1:th of
april

My en.ylm file has

enumeration:
   disweb_date:
     preposition:
       on:  on

My se.ylm file has

enumeration:
   disweb_date:
     preposition:
       on:  den

This does not work but
enumeration:
   disweb_date:
     preposition:
       on_:  den

works

Anyone that has an explanation
7e565a1681dc0137f43826aa840686af?d=identicon&s=25 Andrés Mejía (Guest)
on 2010-09-15 11:50
(Received via mailing list)
Try

"on": on

On Wed, Sep 15, 2010 at 9:54 AM, Hans Marmolin
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 Henrik --- (malesca)
on 2010-09-15 11:53
(Received via mailing list)
Guessing it's treated as a bool (same as unquoted "no").

Skickat från min iPhone

15 sep 2010 kl. 11:49 skrev Andrés Mejía <andmej@gmail.com>:

Try

"on": on

On Wed, Sep 15, 2010 at 9:54 AM, Hans Marmolin
<hans.marmolin@klockholm.se>wrote:

>    preposition:
> enumeration:
> Phone: +46708371202
> To post to this group, send email to rails-i18n@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-i18n+unsubscribe@googlegroups.com<rails-i18n%2Bunsubscribe@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-i18n?hl=en.
>
>
 --
You received this message because you are subscribed to the Google
Groups
"rails-i18n" group.
To post to this group, send email to rails-i18n@googlegroups.com.
To unsubscribe from this group, send email to
rails-i18n+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.
05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-09-15 12:09
(Received via mailing list)
Andreas, Henrik
Thanks for the tips
Someone should list in the I18 guide reserved words in the yaml files
(I have not that knowledge myself)
There have been several mails in this group concerned with that
question and that may be a base for these advices
____________________________________________
Hans Marmolin
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202







15 sep 2010 kl. 11.52 skrev Henrik Nyh:
4a551074ddba4460f95d011c47190d0e?d=identicon&s=25 Henrik --- (malesca)
on 2010-09-16 11:51
(Received via mailing list)
On Wed, Sep 15, 2010 at 12:08, Hans Marmolin
<hans.marmolin@klockholm.se> wrote:
> Someone should list in the I18 guide reserved words in the yaml files  (I
> have not that knowledge myself)
> There have been several mails in this group concerned with that question and
> that may be a base for these advices

That's a good idea. Anyone can contribute to docrails:
http://guides.rubyonrails.org/contribute.html

I don't have the time right now.

http://yaml.org/type/bool.html lists the bools:

 y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|F
05c3f39db309047f28628a223a757bec?d=identicon&s=25 Hans Marmolin (marmolin)
on 2010-09-16 13:23
(Received via mailing list)
Henrik
I my try to add something about this topic, if other could do as you did
Add any information about the reserved words in the yaml files and
other problems

Just a remark; Why should on be treated as no. It is not in list of
bools you refer to below
But is is a bollen in http://yaml.org/type/bool.htm that lists
y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|FALSE
|on|On|ON|off|Off|OFF
____________________________________________
Hans Marmolin
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202







16 sep 2010 kl. 11.50 skrev Henrik Nyh:
7e565a1681dc0137f43826aa840686af?d=identicon&s=25 Andrés Mejía (Guest)
on 2010-09-16 13:49
(Received via mailing list)
On is not treated as No, quite the opposite.

On Thu, Sep 16, 2010 at 1:22 PM, Hans Marmolin
This topic is locked and can not be replied to.