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 571015 - libprintbackend-cups has unlocalized strings
libprintbackend-cups has unlocalized strings
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2009-02-09 04:38 UTC by Takao Fujiwara
Modified: 2009-02-10 17:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for modules/printbackends/cups/gtkprintbackendcups.c (2.69 KB, patch)
2009-02-09 04:39 UTC, Takao Fujiwara
accepted-commit_now Details | Review
Screenshot (89.81 KB, image/png)
2009-02-09 05:19 UTC, Takao Fujiwara
  Details

Description Takao Fujiwara 2009-02-09 04:38:15 UTC
When use cups, some of print options are not localized.
I'd like to update cups_option_translations[] and cups_choice_translations[] for ppd strings.

I'm attaching the patch.
Comment 1 Takao Fujiwara 2009-02-09 04:39:32 UTC
Created attachment 128269 [details] [review]
Patch for modules/printbackends/cups/gtkprintbackendcups.c

Attached the patch.
Comment 2 Matthias Clasen 2009-02-09 04:52:35 UTC
Looks good to me. Please commit, if you can, otherwise I will at some point.
Comment 3 Takao Fujiwara 2009-02-09 05:19:46 UTC
Created attachment 128271 [details]
Screenshot

Attached the screenshot.
Comment 4 Takao Fujiwara 2009-02-09 05:41:05 UTC
Thanks for your review. I committed the patch.

2009-02-09  Takao Fujiwara  <takao.fujiwara@sun.com>

        Bug 571015  libprintbackend-cups has unlocalized strings

        Reviewed by Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c (handle_option):
        Add translatable strings from ppd files.

Comment 5 Wouter Bolsterlee (uws) 2009-02-09 11:04:29 UTC
2009-02-09 klockan 06:54 skrev Takao Fujiwara - Tokyo S/W Center:
> I added 10 msgids to gtk+.
> http://bugzilla.gnome.org/show_bug.cgi?id=571015
> [snip]
> #: ../modules/printbackends/cups/gtkprintbackendcups.c:2192
> msgid "Miscellaneous"
> msgstr ""

This string needs context, e.g. msgctxt "printer-settings".
Comment 6 Takao Fujiwara 2009-02-10 17:36:49 UTC
I added the translator comment with the request from gnome-i18n@gnome.org.

@@ -2189,6 +2189,8 @@ static const struct {
   const char *name;
   const char *translation;
 } cups_group_translations[] = {
+/* Translators: "Miscellaneous" is the label for a button, that opens
+   up an extra panel of settings in a print dialog. */
   { "Miscellaneous", N_("Miscellaneous") },
 };