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 754322 - String with two plural variables
String with two plural variables
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Internationalization (i18n)
unspecified
Other Linux
: Normal critical
: 3.18
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-30 18:33 UTC by Piotr Drąg
Modified: 2015-09-01 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file-operations: fix plurals translation (2.74 KB, patch)
2015-09-01 15:15 UTC, Carlos Soriano
committed Details | Review

Description Piotr Drąg 2015-08-30 18:33:03 UTC
This string:


details = f (ngettext ("%'d / %'d \xE2\x80\x94 %T left (%d files/sec)",
                       "%'d / %'d \xE2\x80\x94 %T left (%d files/sec)",
                       seconds_count_format_time_units (remaining_time)),

(line 1921 in nautilus-file-operations.c)


needs the same split treatment as this string:


time_left_message = ngettext ("%'d / %'d \xE2\x80\x94 %T left",
                              "%'d / %'d \xE2\x80\x94 %T left",
                              seconds_count_format_time_units (remaining_time));
files_per_second_message = ngettext ("(%d file/sec)",
                                     "(%d files/sec)",

(line 1533 in nautilus-file-operations.c)


Otherwise there is no way to properly translate it in many languages.
Comment 1 Carlos Soriano 2015-09-01 15:15:47 UTC
Created attachment 310432 [details] [review]
file-operations: fix plurals translation

We were doing it elsewhere except here.
Comment 2 Carlos Soriano 2015-09-01 15:16:39 UTC
Attachment 310432 [details] pushed as 13bde5b - file-operations: fix plurals translation