-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Please fix Russian locale months abbreviations #5786
Comments
Looking at tests I see that the issue is broader than just months abbreviation. I think that language norm stems from a corpus of written texts, while programming usually deals with and produces an output text which is a different substance. The purpose of printed short dates is to fit in tight space, preferably fixed length. |
Ideally, different specificator should exist. Fixed width abbreviations are for terminals only, right ? Terminals have some obvious restrictions. So, user of Momentjs should be able to choose between fixed formatting and natural. I don't have statistics, but I seem Momentjs is mostly used in web. Also. I dislike the standard (GOST) where they choose such a stupid forms (especially with dot), but in order not to be a Microsoft, we have to stick to the standards. Yep, I'm ready to discuss. |
Great! Fixed length abbreviations are not just for terminals, it's for engineering in general. Think of spreadsheets, timetables at airports, small screen displays which one can find nearly everywhere from fitness trackers to printers, from IoT devices to subway cars. This is where software output is usually being used. On the other hand there are rules for written text (GOST and language norm), which main purpose is to guide writers of an official documentation, e.g., bills, contracts, dissertations and other scientific literature. It's clearly don't rely on automatic date abbreviation that much. So, I think we need to comply with other software. It's about both compatibility and a predictability (even MS Excel in this camp). By the way, we already defy language norm when it comes to week days. Their abbreviations have to be appended with a period the same as months (e.g., |
I have a new idea!
|
This would be a good solution, indeed. However I wonder if it's up to a maintainer to decide things like this. Because this introduces the practice of adding new non-existent locales. |
So, who should we ask ? Mention them here |
I'd ask @marwahaha but... On a second thought there is a clear statement in a moment.js docs that Digging into the CLDR shows that some anonymous localizers pushed to change months abbreviations from 3 letter to a current GOST form few years ago (https://unicode-org.atlassian.net/browse/CLDR-4226). So @marwahaha, do we really have to alter CLDR first or the arguments provided here are sufficient for the change? To @socketpair: also, regarding a ru_RUGOST quasi-locale, how are people supposed to learn about its existence? |
Ru_rugost: look at the list of locales ? Possibly by creating GH issue and asking ? |
I'd prefer not to modify ru, but it might make sense to have a new locale. Of course, you can always make a custom locale file for your project. |
You know, what? I changed my attitude to this. Now, I think to swerve from standards in favour to nice looking dates. So, let's also remove point between comma in full date+time format. |
It now goes as:
янв. февр. мар. апр. мая июня июля авг. сент. окт. нояб. дек.
which is correct abbreviation in written language, but de facto is an odd way to abbreviate months in computing/engineering area.
If you look at Python and C you find standard abbreviations to be
янв фев мар апр мая июн июл авг сен окт ноя дек
which primary purpose is to fit a fixed length string (MMM).
I can make a PR if you approve the change.
The text was updated successfully, but these errors were encountered: