https://bugs.documentfoundation.org/show_bug.cgi?id=166555
Eike Rathke <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.documentfounda | |tion.org/show_bug.cgi?id=46 | |448 --- Comment #5 from Eike Rathke <[email protected]> --- The msgid attribute is irrelevant. What matters is the combination of the default and type attributes, for each type={short,medium,long} there must be exactly one default=true format, and the default=true type=medium format is used as default display format. The most straight forward change would be to make the formatindex="21" TT.MM.JJJJ format (which is also the edit format) default, i.e. change formatindex="20" from default="true" to default="false" and formatindex="21" from default="false" to default="true". See https://opengrok.libreoffice.org/xref/core/i18npool/source/localedata/data/de_DE.xml?r=b7d53247eb2fab04f5f6d82d405f1ac0c73542b2#134 , and https://opengrok.libreoffice.org/xref/core/i18npool/source/localedata/data/locale.dtd?r=f3811e06b27afcbac7f63c2d184db4b1f8b01a1f#212 for general info on FormatCode elements in a locale data file. However, note that doing so may change the display string in existing documents if the system/current locale's date format was used and not a specific format assigned, which usually is the case, and may come unexpected (and even display ### if the column isn't wide enough). The current practice to use TT.MM.JJ instead of TT.MM.JJJJ in de-DE is the legacy common usage in Germany. > I wonder, why there are two different types for TT.MM.JJ. (one 'short' and > one 'medium') Some locales have different format strings for short and medium date formats; we need all formats of indices 0..49 defined for each locale, internally when switching a format between locales without assigning a new format the format with the same index of the target locale is used. Duplicated format codes like de-DE formatindex="18" and formatindex="20" with TT.MM.JJ are eliminated from the dialog's view so you don't even notice there, the highest order "most important" format (here default="true" type="medium" formatindex="20") is presented. -- You are receiving this mail because: You are the assignee for the bug.
