# Language files

**URL:** <https://www.ruby-forum.com/t/language-files/195010>\
**Category:** Rails I18n\
**Created:** [September 15, 2010, 9:55am UTC](https://www.ruby-forum.com/t/language-files/195010 "2010-09-15T09:55:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 15, 2010, 9:55am UTC](https://www.ruby-forum.com/t/language-files/195010/1 "2010-09-15T09:55:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 15, 2010, 11:50am UTC](https://www.ruby-forum.com/t/language-files/195010/2 "2010-09-15T11:50:34Z")

</div>

Try

“on”: on

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

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 15, 2010, 11:53am UTC](https://www.ruby-forum.com/t/language-files/195010/3 "2010-09-15T11:53:30Z")

</div>

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

Try

“on”: on

On Wed, Sep 15, 2010 at 9:54 AM, Hans M.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> preposition:  
> enumeration:  
> Phone: +46708371202  
> To post to this group, send email to [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid).  
> To unsubscribe from this group, send email to  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rails-i18n?hl=en](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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid).  
To unsubscribe from this group, send email to  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid).  
For more options, visit this group at  
[http://groups.google.com/group/rails-i18n?hl=en](http://groups.google.com/group/rails-i18n?hl=en).

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 16, 2010, 11:51am UTC](https://www.ruby-forum.com/t/language-files/195010/4 "2010-09-16T11:51:42Z")

</div>

On Wed, Sep 15, 2010 at 12:08, Hans M.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:

> **[Contributing to Ruby on Rails — Ruby on Rails Guides](https://guides.rubyonrails.org/contributing_to_ruby_on_rails.html)**
>
> This guide covers how you can become a part of the ongoing development of Ruby on Rails.After reading this guide, you will know: How to use GitHub to report issues. How to clone main and run the test suite. How to help resolve existing issues. How to...

I don’t have the time right now.

[Boolean Language-Independent Type for YAML™&nbsp;Version&nbsp;1.1](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

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 16, 2010, 1:23pm UTC](https://www.ruby-forum.com/t/language-files/195010/5 "2010-09-16T13:23:00Z")

</div>

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](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.:

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 15, 2010, 12:09pm UTC](https://www.ruby-forum.com/t/language-files/195010/6 "2010-09-15T12:09:18Z")

</div>

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.:

---

<div class="post-metadata">

**Author:** ![marmolin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/71e660/32.png) [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Post date:** [September 16, 2010, 1:49pm UTC](https://www.ruby-forum.com/t/language-files/195010/7 "2010-09-16T13:49:56Z")

</div>

On is not treated as No, quite the opposite.

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