Bug 109020 - Errors in date formats (Turkish Localisation)
Summary: Errors in date formats (Turkish Localisation)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-08 12:08 UTC by Emir Sarı
Modified: 2018-05-08 10:09 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Cell Formatting Window (54.47 KB, image/png)
2017-07-08 12:08 UTC, Emir Sarı
Details
DD and MM changed in places (99.32 KB, image/png)
2018-02-13 12:59 UTC, Krzysztof Walczewski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emir Sarı 2017-07-08 12:08:13 UTC
Description:
Hello,

Some of the Turkish date formats in LibreOffice are not correct or obsolete. Correct selections can be found below:

31.12.99
31.12.99 Cum (short name of the day version)
31.12.99 Cuma

31.12.1999
31.12.1999 Cum (short name of the day version)
31.12.1999 Cuma

31 Ara 1999
31 Aralık 1999
31 Ara 1999 Cum (short name of the day version)
31 Aralık 1999 Cuma

31/12/99 Cum (short name of the day version)
31/12/99 Cuma
31/12/1999 Cum (short name of the day version)
31/12/1999 Cuma

31-12
31-12-99
31-12-1999

12.99
12.1999
Ara 99
Aralık 1999

31.12.99 13:30
31.12.99 13:30:33

31.12.1999 13:30
31.12.1999 13:30:33

I didn't bother to list the wrong or the obsolete ones, that would be great if current ones could be replaced with the above ones.

Thank you in advance!



Steps to Reproduce:
1.Open LibreOffice Calc
2.Go to Cell Formatting
3.Select Date

Actual Results:  
See attachment

Expected Results:
See above


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Comment 1 Emir Sarı 2017-07-08 12:08:44 UTC
Created attachment 134548 [details]
Cell Formatting Window
Comment 2 Xisco Faulí 2017-07-10 12:49:41 UTC
@Eike, do you have any clue here ?
Comment 3 Gülşah Köse 2017-07-12 07:14:26 UTC
@Emir, It makes sense to me that your suggestions but do you have any information about TS ISO 8601 standard[1](have to pay money to read(!)) LibreOffice seems using that.

[1] https://intweb.tse.org.tr/standard/standard/Standard.aspx?081118051115108051104119110104055047105102120088111043113104073102054076051108099120065070065079
Comment 4 Eike Rathke 2017-07-12 12:31:12 UTC
All used date formats are defined in our tr-TR locale data, ie. i18npool/source/localedata/data/tr_TR.xml (or https://cgit.freedesktop.org/libreoffice/core/tree/i18npool/source/localedata/data/tr_TR.xml for browsers). If that needs changes then patches are welcome. Note that there is some documentation in i18npool/source/localedata/data/locale.dtd (or https://cgit.freedesktop.org/libreoffice/core/tree/i18npool/source/localedata/data/locale.dtd fwiw) about specific formats that need to be present.

It's not clear to me how ISO 8601 comes into play here (every locale also supports ISO 8601 date formats, regardless of any localized ones), but some public information about that can be found under
http://erack.de/bookmarks/D.html#ISO_8601_Date___Time_Representation

Formats like
31-12
31-12-99
31-12-1999
may be problematic if input is expected to be parsed in that format (ie. with date acceptance patterns D-M and D-M-Y), which may not properly work because of the ambiguity with ISO 8601 M-D and Y-M-D for days <= 12 and years <= 31
Comment 5 Emir Sarı 2017-07-21 09:50:37 UTC
@Gülşah, thanks for the reminder about the standard, I had no idea about that, if only I could read and update my suggestion accordingly (anyone has spare 84 Euro?). Other than that, I haven't encountered most of these date formats LibreOffice has for the TR localisation anywhere in the wild, so I just tried to simplfy them a bit, and MS Office has these anyway. Current options like <name of the day><space><date> or <name of the day><period><date><period><blabla> mostly seem like a direct translation from the English strings.

@Eike, XX-XX-XX format is not a necessity, it wouldn't do any harm to omit that, I included it as just another option.
Comment 6 Krzysztof Walczewski 2018-02-13 12:59:14 UTC Comment hidden (obsolete)
Comment 7 Eike Rathke 2018-02-13 13:33:10 UTC
(In reply to Krzysztof Walczewski from comment #6)
> The same error is in Polish localization. I've just attached file with
> screen-shot.
The dialog's 30-12-1899 date is completely unrelated, that is a translated string of sc/uiconfig/scalc/ui/optcalculatepage.ui

For the date values in row 4 of your spreadsheet these look like they are formatted differently as YYYY.DD.MM and you see 2018-02-05 14:32:55 in the input line because for pl-PL the date+time edit format is defined as YYYY-MM-DD HH:MM:SS

Anyway, please don't mix unrelated locales' problems into one bug.
Comment 8 Xisco Faulí 2018-03-21 16:13:05 UTC
@Eike, reading your comment 4 I understand the current behaviour is correct, isn't it? Should we close this as RESOLVED NOTABUG?
Comment 9 Xisco Faulí 2018-05-08 10:09:42 UTC
Closing as RESOLVED NOTABUG...