GNOME Bugzilla – Bug 596716
labels in new appointment dialogue do not consider quantity set for hours and minutes
Last modified: 2013-04-27 14:14:45 UTC
In German language (also in English), there's a spelling difference between singular and plural forms. But when creating a new event in Evolution Calendar, only one form is displayed in some labels. This results in a grammatical error. Steps to reproduce: 1. Navigate to the Calendar sub-app 2. Create a new event 3. In the field "time", in the second label from the right handside ("hour"), only the singular is displayed whatever number is chosen. 4. In the field "time", in the first label from the right handside ("minutes"), only the plural is displayed whatever number is chosen. I'm using evolution 2.28.0-0ubuntu2 I don't know if this problem also occurs in the english version. I' using the german version, so I don't know the correct english translations. You're welcome to ask for more information, if necessary.
Looks like a localization issue, as Evolution uses plurals for both ("hours" and "minutes"). Reassigning.
Here an extract from the current de.po in evolution-2-28: #: ../calendar/gui/dialogs/event-page.glade.h:18 msgid "_Time:" msgstr "_Zeit:" #: ../calendar/gui/dialogs/event-page.glade.h:21 msgid "" "for\n" "until" msgstr "" "für\n" "bis" This is the first part of the mentioned row in the event dialog, these strings come from the file event-page.glade.h. #: ../calendar/gui/alarm-notify/alarm-notify-dialog.c:115 #: ../calendar/gui/alarm-notify/alarm-notify.glade.h:8 #: ../calendar/gui/dialogs/event-page.glade.h:23 #: ../plugins/caldav/caldav-source.c:449 #: ../plugins/calendar-file/calendar-file.c:287 #: ../plugins/calendar-http/calendar-http.c:324 #: ../plugins/calendar-weather/calendar-weather.c:524 #: ../plugins/google-account-setup/google-source.c:721 #: ../plugins/google-account-setup/google-contacts-source.c:331 msgid "hours" msgid_plural "hours" msgstr[0] "Stunde" msgstr[1] "Stunden" I don't know whether this affects the correct display in the GUI, due to lack of any programming skills. But perhaps you should think about it. Is this glade file fully prepared for plural forms? Look here: #: ../addressbook/gui/component/ldap-config.glade.h:43 #: ../calendar/gui/alarm-notify/alarm-notify.glade.h:10 #: ../calendar/gui/dialogs/event-page.glade.h:24 #: ../plugins/caldav/caldav-source.c:448 #: ../plugins/calendar-file/calendar-file.c:286 #: ../plugins/calendar-http/calendar-http.c:323 #: ../plugins/calendar-weather/calendar-weather.c:523 #: ../plugins/google-account-setup/google-source.c:720 #: ../plugins/google-account-setup/google-contacts-source.c:330 msgid "minutes" msgstr "Minuten" If this is the last widget in this row, it should be pluralized. The other strings containing plural forms seem to be correctly translated.
The translation in de.po are correct. But: * msgstr[1] "Stunden" - this is _not_ displayed when choosing hours. It always stays at "Stunde" * msgstr "Minuten" - it seems to me that the singular is not indended to be shown - at least, only the plural form is displayed. However, this is a more marginal problem, because "1" minute has to be entered using the keyboard (not mouse) and I assume not a lot of people will plan an event to take foo hours and -exactly- one minute. I don't know if this might be a distro specific issue, at least the lines above from de.po do not differ from the ubuntu package.
Created attachment 144287 [details] Screenshot: see "2" (pl.) and "Stunde" (sing.) - "1" (sing.) and "Minuten" (pl.)
I can confirm that the labels do not adopt to the numbers chosen in the number selector. This also happens when using the C locale, so this problem is not related to our translation, but rather a general issue of Evolution. Attaching screenshot ("2 hour, 1 minutes") exhibiting the issue. Reassigning to Evolution. English and German plurals are equally behaving regarding the quantity nplurals=2; plural=(n != 1) i.e. the singular applies to quantity 1, and the plural to all other quantities (including zero).
Created attachment 144727 [details] screenshot exhibiting the disregard of quantity 1 hours, 1 minutes -- the labels are not adjusted
Exists in the 2.33.x versions too, but very very minor an issue.
This issue no longer exists in Evolution 3.8. It was fixed at some point in the past. The labels change based on the quantity chosen.