GNOME Bugzilla – Bug 786022
Impossible to translate "New Event on $event_month $day_of_month" to most languages
Last modified: 2017-08-23 16:19:55 UTC
Hi, I've started translating gnome-calendar for 3.26, but have problems with a combined string that is hard to translate using Swedish date order (we write for example "4 december" rather than "December 4": #. Translators: %1$s is the event month (e.g. "New Event on December") and %2$d is the numeric day of month #: src/gcal-quick-add-popover.c:422 #, c-format msgid "%1$s %2$d" A natural order in Swedish for "New Event on December 4" would be "Ny händelse 4 december", but that is not possible here since that combined string either have to start or end with the date number. Regards, Anders Jonsson
https://wiki.gnome.org/TranslationProject/DevGuidelines/Never%20split%20sentences
Any chance of prioritizing this issue? It blocks many, many languages.
Created attachment 358185 [details] [review] quick-add-popover: put day placeholder in the translatable string As fairly pointed out, we should never split sentences [1]. [1] https://wiki.gnome.org/TranslationProject/DevGuidelines/Never%20split%20sentences
I believe the patch fixes the issue. Please reopen the bug if not. Attachment 358185 [details] pushed as 13d6f85 - quick-add-popover: put day placeholder in the translatable string
It does, thank you! One note: /* Translators: %d is the numeric day of month */ should be moved one line above N_("New Event on January %d"), for it to be visible for translators.
This looks like another instance of bug 780745 and bug 749206. But let's assume this is a good workaround, listing the month names explicitly is the best we can do at the moment. Although it may happen that some languages may require different forms of month names depending on whether it's "on" or "in" or "from" or "to".