Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[locale] ru: fix months abbreviations (#5786) #5788

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

[locale] ru: fix months abbreviations (#5786) #5788

wants to merge 1 commit into from

Conversation

uvizhe
Copy link

@uvizhe uvizhe commented Dec 3, 2020

Anyway here's a PR for #5786

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.525% when pulling 1699ed7 on uvizhe:issue-5786 into 52019f1 on moment:develop.

['llll', 'вс, 14 февр. 2010 г., 15:25'],
['ll', '14 фев 2010 г.'],
['lll', '14 фев 2010 г., 15:25'],
['llll', 'вс, 14 фев 2010 г., 15:25'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

более того, меня ещё и точка в конце после 'г' бесит. Но это хренов гост.

А можно какой-то параметр сделать, пусть глобальный, чтобы переключать между этими (гостовским и нормальным) режимами ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

придумал!

у нас есть ru_RU (язык_страна)
а нельзя ли сделать ru_RUGOST или чтото подобное, если кому-то вдруг надо. а в ru_RU сделать по-человечески. Тогда моя душенька будет спокойна.

Copy link
Author

@uvizhe uvizhe Dec 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В программер-френдли локали не должно быть не только точки после 'г', но и самой буквы :)

['ll', '14 фев 2010'],
['lll', '14 фев 2010 15:25'],
['llll', 'вс 14 фев 2010 15:25']

Для референса можно смотреть на вывод команды LC_ALL='ru_RU.utf8' date в linux-консоли.
Или вывод python -c'import time, locale; locale.setlocale(locale.LC_ALL, "ru_RU.utf-8"); print(time.strftime("%c"))'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants