http://bugs.winehq.org/show_bug.cgi?id=18466
Summary: Wine does not support genitive forms of month names Product: Wine Version: 1.1.21 Platform: Other OS/Version: All Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: tarasov.igor@gmail.com
MSDN: "Some languages, such as Finnish, German, Polish, and Russian, have several noun forms. If you plan to use localized names provided by the system, have a linguist check to make sure you are using them in the right context. Windows carries both the nominative and genitive forms of Polish and Russian month names; the form changes depending on the month name's position in the string relative to the day name. Windows returns both forms in a single string separated by a null value. The system carries only one form of each month name or day name for all other languages."
http://msdn.microsoft.com/en-us/library/cc194815.aspx
Wine ships only nominative forms for these languages. So, applications that rely on this, render dates not as "14 мая 2009", but as "14 Май 2009".
Side note: first letter in genitive form is lower-case, as opposed to to upper-case for nominative form.
http://bugs.winehq.org/show_bug.cgi?id=18466
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|All |other
http://bugs.winehq.org/show_bug.cgi?id=18466
--- Comment #1 from Igor Tarasov tarasov.igor@gmail.com 2009-05-22 16:24:27 --- Created an attachment (id=21240) --> (http://bugs.winehq.org/attachment.cgi?id=21240) russian genitive month forms appended
I've just tried appending genitive forms, but that didn't work.
http://bugs.winehq.org/show_bug.cgi?id=18466
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|-unknown |kernel32 Ever Confirmed|0 |1 Severity|trivial |minor
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2009-10-08 17:19:13 --- This is valid bug. Genitive forms aren't defined in locale data (and no way to retrieve it too of course).
http://bugs.winehq.org/show_bug.cgi?id=18466
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2009-10-14 09:31:14 --- I think I've accidentally found a way to support this. After some msdn browsing:
http://msdn.microsoft.com/en-us/library/dd373825%28VS.85%29.aspx
Apparently Win7 introduces a way to retrieve this data using GetLocaleInfo (or calendar api only, didn't tested yet) with a special flag:
LOCALE_RETURN_GENITIVE_NAMES
If it works it's the best way to use, cause it's transparent as much as possible.
I'll post new info here when get tests ready.
http://bugs.winehq.org/show_bug.cgi?id=18466
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2009-10-20 21:08:35 --- Some update here.
I just posted first two patches about this problem:
http://www.winehq.org/pipermail/wine-patches/2009-October/080317.html http://www.winehq.org/pipermail/wine-patches/2009-October/080319.html
These patches add support to retrieve genitive month names using GetLocaleInfoW. When this will get in, will continue with: - adding name forms to NLS cache; - use them in GetDateFormat; - something else like GetAltMonthNames from oleaut32...
http://bugs.winehq.org/show_bug.cgi?id=18466
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com 2009-10-21 13:54:34 --- First necessary part was committed as 2b7a3657f7cb9ace7482cca8aeececeb83d65cc8.
http://bugs.winehq.org/show_bug.cgi?id=18466
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2009-12-04 10:37:32 --- Genitive names are supported now using GetDateFormat() (commit 8ea4102a6c6e0ce0fad52e87fdd94530475255f8).
Currently GetLocaleInfo() with LOCALE_RETURN_GENITIVE_NAMES flag and GetDateFormat() with corresponding format picture return genitive, so this is fixed.
http://bugs.winehq.org/show_bug.cgi?id=18466
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2009-12-04 12:16:07 --- Closing bugs fixed in 1.1.34.