Vote #72985
完了Russian numeric translation
0%
journals
http://www.unicode.org/cldr/charts/supplemental/language_plural_rules.html
--------------------------------------------------------------------------------
If:
| Language | Name | Code | Category | Examples | Rules|
|/4. Russian |/4. ru | one | 1, 21, 31, 41, 51, 61... | one > n mod 10 is 1 and n mod 100 is not 11 |
| few | 2-4, 22-24, 32-34... | > n mod 10 in 2..4 and n mod 100 not in 12..14 |
| many | 0, 5-20, 25-30, 35-40... | > n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14|
| other | 1.2, 2.07, 5.94... | > everything else |
Then:
<pre><code class="ruby">
about_x_hours:
one: "около %{count} часа"
few: "около %{count} часов"
many: "около %{count} часов"
other: "около %{count} часа"
x_hours:
one: "%{count} час"
few: "%{count} часа"
many: "%{count} часов"
other: "%{count} часа"
</code></pre>
--------------------------------------------------------------------------------
And also may be these:
<pre><code class="ruby">
gui_validation_error: 1 ошибка
gui_validation_error_plural: "%{count} ошибок"
gui_validation_error_plural2: "%{count} ошибки"
gui_validation_error_plural5: "%{count} ошибок"
...
label_download: "%{count} загрузка"
label_download_plural: "%{count} скачиваний"
label_download_plural2: "%{count} загрузки"
label_download_plural5: "%{count} загрузок"
...
label_modification: "%{count} изменение"
label_modification_plural: "%{count} изменений"
label_modification_plural2: "%{count} изменения"
label_modification_plural5: "%{count} изменений"
</code></pre>
need replace to:
<pre><code class="ruby">
gui_validation_error:
one: "%{count} ошибка"
few: "%{count} ошибки"
many: "%{count} ошибок"
other: "%{count} ошибки"
...
label_download:
one: "%{count} загрузка"
few: "%{count} загрузки"
many: "%{count} загрузок"
other: "%{count} загрузки"
...
label_modification:
one: "%{count} изменение"
few: "%{count} изменения"
many: "%{count} изменений"
other: "%{count} изменения"
</code></pre>
--------------------------------------------------------------------------------
Need to check anything else?
--------------------------------------------------------------------------------
And also these:
<pre><code class="ruby">
notice_failed_to_save_time_entries: "Невозможно сохранить %{count} затраченное время для %{total} выбранных: %{ids}."
...
label_x_issues:
zero: 0 Задач
one: 1 Задача
few: "%{count} Задач"
many: "%{count} Задач"
other: "%{count} Задач"
...
label_last_n_weeks: последние %{count} недель
</code></pre>
need replace to:
<pre><code class="ruby">
notice_failed_to_save_time_entries:
label_x_issues:
one: "%{count} задача"
few: "%{count} задачи"
many: "%{count} задач"
other: "%{count} Задачи"
...
label_last_n_weeks:
one: "последняя %{count} неделя"
few: "последние %{count} недели"
many: "последние %{count} недель"
other: "последние %{count} недели"
</code></pre>
and divide the option "notice_failed_to_save_time_entries" to several separate bloks.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Mikhail Velkin wrote:
> and divide the option "notice_failed_to_save_time_entries" to several separate bloks.
I create new issue #13192.
--------------------------------------------------------------------------------
<pre><code class="ruby">
almost_x_years:
one: "почти 1 год"
few: "почти %{count} года"
many: "почти %{count} лет"
other: "почти %{count} года"
</code></pre>
need replace to:
<pre><code class="ruby">
almost_x_years:
one: "почти %{count} год"
few: "почти %{count} года"
many: "почти %{count} лет"
other: "почти %{count} года"
</code></pre>
--------------------------------------------------------------------------------
Mikhail Velkin wrote:
> [...]
>
> need replace to:
> [...]
Committed in trunk r11429, thanks.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,12640,Russian "about_x_hours" translation change
relates,Closed,10066,i18n not working with russian gem
relates,Closed,1635,Plural form for ru.yml
relates,Closed,13192,Russian "notice_failed_to_save_time_entries" translation
duplicates,Closed,8096,Wrong plural form selection for russian localization.