get_string_for_date: Use the new "%OB" format
Due to the recent changes introduced in glibc 2.27 which hopefully will be followed by a similar change in glib "%OB"
is the correct format to obtain a month name as used in the calendar header (standalone, nominative case). The same rule has been working in BSD family (including OS X) since 1990s. Currently the function get_string_for_date
uses this line:
str = g_date_time_format (dt, "%B"); // Full month name
This will have to be replaced with "%OB"
and the minimum required version of glib must be bumped to 2.55.3.
Unfortunately, I'm afraid that glib bug 749206 must be fixed first.
While at this, why not to use libdazzle library which provides a similar function dzl_g_date_time_format_for_display
?
Development Tasks
-
Replace all %B
by%OB
QA Tasks
-
Check if the month name in the Scheduled section is “marzec” (March in nominative) when built with GLib 2.55.3 or newer and run under LANG=pl_PL.UTF-8
.
Edited by Piotr Drąg