Language files

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

Try

“on”: on

On Wed, Sep 15, 2010 at 9:54 AM, Hans M.

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 [email protected]:

Try

“on”: on

On Wed, Sep 15, 2010 at 9:54 AM, Hans M.
[email protected]wrote:

preposition:
enumeration:
Phone: +46708371202
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected][email protected]
.
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-i18n?hl=en.

On Wed, Sep 15, 2010 at 12:08, Hans M.
[email protected] 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:

I don’t have the time right now.

Boolean Language-Independent Type for YAML™ Version 1.1 lists the bools:

y|Y|yes|Yes|YES|n|N|no|No|NO
|true|True|TRUE|false|False|F

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 M.
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202

16 sep 2010 kl. 11.50 skrev Henrik N.:

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 M.
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202

15 sep 2010 kl. 11.52 skrev Henrik N.:

On is not treated as No, quite the opposite.

On Thu, Sep 16, 2010 at 1:22 PM, Hans M.