Giter Site home page Giter Site logo

no_russian_gem's Introduction

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 — стандартный файл с переводом; приведены значения по-умолчанию для русского языка.

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.

no_russian_gem's People

Contributors

dima4p avatar kirs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.