Page MenuHomePhabricator

Moment.js doesn't have a Chechen (ce) time format support and falls back to Russian, so Notifications are in an incorrect time format
Open, NormalPublic

Description

http://pastenow.ru/Upload/Paste/Q954.png

Wrong time format. And the names of the months on the Russian.

Event Timeline

Umar created this task.Jun 22 2016, 12:37 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 22 2016, 12:37 AM
Krenair renamed this task from Notifications to Notification time format.Jun 22 2016, 12:40 AM
Krenair added projects: Notifications, I18n.

Hi @Umar, thanks for taking the time to report this!

Please describe here which time format you would expect / is the "right" one, and provide a link / URL to reproduce the problem (currently except for you, nobody knows which human language this bug report is about).

Umar added a comment.Jun 22 2016, 8:24 AM

We have already set the time format (2016 ш. 22 июнь).

http://pastenow.ru/Upload/Paste/QC7L.png

Umar added a comment.Jun 22 2016, 9:37 AM

Error of Chechen Wikipedia.

@Umar: Please provide a link / URL that allows reproducing the problem.

The language being Russian is a bit weird, but that could be a "fall back" if the original language has no specific translation. The format of the dates may be a bigger issue, though.

@Umar I can't look at the latest link you provided (it's in your own Special:Notifications page, requiring me to login) -- can you instead explain what you expect to see instead of what you see?

Take into account I can't actually read the language, so I am trying to help based on what may have gone wrong with the date format and translation.

If you can answer the following questions, it will really help:

  1. Can you tell me a translated version of the current format?
  2. What is the problem with the current format? What should the current format of the timestamp be instead?
  3. What language should the page display?

Thanks!

With uselang=ce, the issue is displayed as

The format should be e.g. "2016 ш. 22 июнь" ?

Umar added a comment.Jun 24 2016, 6:56 PM

Etonkovidova Yes, you understood correctly.

The language being Russian is a bit weird, but that could be a "fall back" if the original language has no specific translation. The format of the dates may be a bigger issue, though.

It's because Echo uses the momentjs localizations for dates and times which are different from the MW ones for no good reason. This is causing other issues as well. It looks like Moment may not have localizations for ce, so it falls back to ru even though MW does have these localizations for ru.

Umar added a comment.Jul 10 2016, 12:07 PM

This is not correctable?

Nemo_bis renamed this task from Notification time format to Echo's momentjs usage produces incorrect time format in ce.Jul 24 2016, 9:26 PM
Nemo_bis triaged this task as Normal priority.
Jdforrester-WMF renamed this task from Echo's momentjs usage produces incorrect time format in ce to Moment.js doesn't have a Chechen (ce) time format support and falls back to Russian, so Notifications are in an incorrect time format.Feb 8 2017, 8:57 PM
Amire80 moved this task from Untriaged to Date and time on the I18n board.Apr 2 2018, 11:59 AM
Restricted Application added a project: Growth-Team. · View Herald TranscriptFeb 26 2019, 8:32 AM
Umar added a comment.Feb 26 2019, 8:39 AM

The problem is not solved.

Umar: Indeed, as the upper left corner here says "Open" and not "Resolved". Hence no need to add such comments.
Someone (you?) probably needs to report this to https://github.com/moment/moment with clear steps to reproduce, I think.