Patch #12645

Russian numeric translation

Added by Toshi MARUYAMA almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Translations
Target version:2.3.0

Description


Related issues

Related to Redmine - Patch #12640: Russian "about_x_hours" translation change Closed
Related to Redmine - Patch #10066: i18n not working with russian gem Closed
Related to Redmine - Patch #1635: Plural form for ru.yml Closed 2008-07-14
Related to Redmine - Defect #13192: Russian "notice_failed_to_save_time_entries" translation New
Duplicated by Redmine - Defect #8096: Wrong plural form selection for russian localization. Closed 2011-04-07

Associated revisions

Revision 11057
Added by Toshi MARUYAMA almost 5 years ago

remove unused "gui_validation_error" i18n keys (#12645)

These keys were removed from app/helpers/application_helper.rb by r2493.

Revision 11058
Added by Toshi MARUYAMA almost 5 years ago

remove unused "label_download" i18n keys (#12645)

These keys were removed from app/views/documents/show.rhtml by r1180.

Revision 11059
Added by Toshi MARUYAMA almost 5 years ago

remove unused "label_modification" i18n keys (#12645)

These keys were removed from app/views/repositories/revision.rhtml by r535
and app/views/repositories/revisions.rhtml by r381.

Revision 11060
Added by Toshi MARUYAMA almost 5 years ago

Russian "about_x_hours" and "x_hours" translation changed by Mikhail Velkin (#12645)

Revision 11380
Added by Toshi MARUYAMA almost 5 years ago

remove unused "gui_validation_error" i18n keys from az.yml (#13152, #12645)

These keys were removed from app/helpers/application_helper.rb by r2493.

Revision 11381
Added by Toshi MARUYAMA almost 5 years ago

remove unused "label_download" i18n keys from az.yml (#13152, #12645)

These keys were removed from app/views/documents/show.rhtml by r1180.

Revision 11382
Added by Toshi MARUYAMA almost 5 years ago

remove unused "label_modification" i18n keys from az.yml (#13152, #12645)

These keys were removed from app/views/repositories/revision.rhtml by r535
and app/views/repositories/revisions.rhtml by r381.

Revision 11408
Added by Toshi MARUYAMA almost 5 years ago

Russian "label_x_issues" translation changed by Mikhail Velkin (#12645)

Revision 11409
Added by Toshi MARUYAMA almost 5 years ago

Russian "label_last_n_weeks" translation changed by Mikhail Velkin (#12645)

Revision 11429
Added by Toshi MARUYAMA almost 5 years ago

Russian "almost_x_years" changed by Mikhail Velkin (#12645)

History

#2 Updated by Mikhail Velkin almost 5 years ago

If:
Language Name Code Category Examples Rules
Russian 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:

about_x_hours:
    one:   "около %{count} часа" 
    few:   "около %{count} часов" 
    many:  "около %{count} часов" 
    other: "около %{count} часа" 
x_hours:
    one:   "%{count} час" 
    few:   "%{count} часа" 
    many:  "%{count} часов" 
    other: "%{count} часа" 

#3 Updated by Mikhail Velkin almost 5 years ago

And also may be these:

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} изменений" 

need replace to:

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} изменения" 

#4 Updated by Mikhail Velkin almost 5 years ago

Need to check anything else?

#5 Updated by Mikhail Velkin almost 5 years ago

And also these:

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} недель

need replace to:

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} недели" 

and divide the option "notice_failed_to_save_time_entries" to several separate bloks.

#6 Updated by Toshi MARUYAMA almost 5 years ago

  • Subject changed from Russian few hour is not used to Russian numeric translation
  • Category changed from I18n to Translations

#7 Updated by Toshi MARUYAMA almost 5 years ago

  • Tracker changed from Defect to Patch

#8 Updated by Toshi MARUYAMA almost 5 years ago

  • Status changed from New to Closed
  • Target version set to 2.3.0

Mikhail Velkin wrote:

and divide the option "notice_failed_to_save_time_entries" to several separate bloks.

I create new issue #13192.

#9 Updated by Mikhail Velkin almost 5 years ago

almost_x_years:
    one:   "почти 1 год" 
    few:   "почти %{count} года" 
    many:  "почти %{count} лет" 
    other: "почти %{count} года" 

need replace to:

almost_x_years:
    one:   "почти %{count} год" 
    few:   "почти %{count} года" 
    many:  "почти %{count} лет" 
    other: "почти %{count} года" 

#10 Updated by Toshi MARUYAMA almost 5 years ago

Mikhail Velkin wrote:

[...]

need replace to:
[...]

Committed in trunk r11429, thanks.

#11 Updated by Filou Centrinov over 4 years ago

  • Duplicated by Defect #8096: Wrong plural form selection for russian localization. added

Also available in: Atom PDF