Skip to content

dima4p/no_russian_gem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Farewell, gem russian!

Совершенно понятно, почему Ярослав перестал его подерживать. После I18n v.0.3.0, когда появлился модуль Pluralization в этом джеме отпала необходимость.

Этот маленький проект содержит всего три файла, которые достаточно добавить в рельсовый проект, чтобы получить полноценную поддрежку русского языка, в том числе и транслитерацию:

  1. app/config/initializers/locale.rb — добавляет модуль Pluralization;
  2. app/config/locales/ru.rb — правила плюрализации для русского языка и хэши для транслитерации; можно добавлять свои правила
  3. app/config/locales/ru.yml — стандартный файл с переводом; приведены значения по-умолчанию для русского языка.

Добвалена ветка rails4

If you do not read Russian, here is the explanation

With the I18n v0.3.0+, full pluralization support made possible for every language.

To use this possibility you need to add the following three files to your project:

  1. app/config/initializers/locale.rb — adds the Pluralization module;
  2. app/config/locales/ru.rb — pluralization rules and transliteration hashes for Russian; you can easily add your own rules for other languages (look here for more examples)
  3. app/config/locales/ru.yml — standard rails translations; these are the defaults for Russian language, that I recommend to rename and keep unchanged.

A branch rails4 is added

About

The files you need to use Russian in rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages