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 683520 - Strings about moving out of trash cannot be correctly translated (pluralization)
Strings about moving out of trash cannot be correctly translated (pluralization)
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: Internationalization (i18n)
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-06 17:25 UTC by Alexandre Franke
Modified: 2017-08-05 18:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Franke 2012-09-06 17:25:03 UTC
In src/nautilus-view.c
msgid "Move the selected folder out of the trash to “%s”"
msgid "Move the selected folders out of the trash to “%s”"

msgid "Move the selected folder out of the trash"
msgid "Move the selected folders out of the trash"

msgid "Move the selected file out of the trash to “%s”"
msgid "Move the selected files out of the trash to “%s”"

msgid "Move the selected file out of the trash"
msgid "Move the selected files out of the trash"

msgid "Move the selected item out of the trash to “%s”"
msgid "Move the selected items out of the trash to “%s”"

msgid "Move the selected item out of the trash"
msgid "Move the selected items out of the trash"

All these should be using ngettext.
Comment 1 Cosimo Cecchi 2012-09-06 21:40:50 UTC
This was changed in bug 552053, on request of a Russian translator.
What should we do here? The code ensures that the first variant is used when files == 1 and the second otherwise.
Comment 2 Alexandre Franke 2012-09-07 15:44:39 UTC
Ok, given this bit of context helps me understand why you did this. This feels weird however, I'm not sure what the correct solution is.
Comment 3 André Klapper 2015-01-10 12:19:24 UTC
Strings still in 3.15 and doing (g_list_length (files) == 1) is still wrong.

See https://wiki.gnome.org/TranslationProject/DevGuidelines/Plurals : 
"if the number is 65301 or 65302 still makes a difference in many languages". Arabic is one example.
Comment 4 Piotr Drąg 2017-08-05 18:29:59 UTC
These strings no longer exist.