After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 596716 - labels in new appointment dialogue do not consider quantity set for hours and minutes
labels in new appointment dialogue do not consider quantity set for hours and...
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
3.0.x (obsolete)
Other Linux
: Normal minor
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2009-09-29 10:44 UTC by gnome-bugzilla@thomas-lauckner.de
Modified: 2013-04-27 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot: see "2" (pl.) and "Stunde" (sing.) - "1" (sing.) and "Minuten" (pl.) (38.98 KB, image/png)
2009-09-29 18:32 UTC, gnome-bugzilla@thomas-lauckner.de
Details
screenshot exhibiting the disregard of quantity (30.89 KB, image/png)
2009-10-04 18:53 UTC, Christian Kirbach
Details

Description gnome-bugzilla@thomas-lauckner.de 2009-09-29 10:44:14 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.
Comment 1 Matthew Barnes 2009-09-29 16:44:25 UTC
Looks like a localization issue, as Evolution uses plurals for both ("hours" and "minutes").  Reassigning.
Comment 2 Mario Blättermann 2009-09-29 17:27:32 UTC
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.
Comment 3 gnome-bugzilla@thomas-lauckner.de 2009-09-29 18:24:25 UTC
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.
Comment 4 gnome-bugzilla@thomas-lauckner.de 2009-09-29 18:32:32 UTC
Created attachment 144287 [details]
Screenshot: see "2" (pl.) and "Stunde" (sing.) - "1" (sing.) and "Minuten" (pl.)
Comment 5 Christian Kirbach 2009-10-04 18:50:21 UTC
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).
Comment 6 Christian Kirbach 2009-10-04 18:53:46 UTC
Created attachment 144727 [details]
screenshot exhibiting the disregard of quantity

1 hours, 1 minutes -- the labels are not adjusted
Comment 7 Bharath Acharya 2010-09-30 03:28:03 UTC
Exists in the 2.33.x versions too, but very very minor an issue.
Comment 8 Christian Kirbach 2013-04-27 14:14:45 UTC
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.