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 106162 - Printer setting strings not localizable
Printer setting strings not localizable
Status: RESOLVED FIXED
Product: gnome-print
Classification: Deprecated
Component: general
2.2.1
Other other
: Normal major
: ---
Assigned To: Chema Celorio
Chema Celorio
Depends on:
Blocks:
 
 
Reported: 2003-02-15 14:20 UTC by nadaschauher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2


Attachments
screenshot (37.96 KB, image/png)
2003-02-27 15:34 UTC, Chema Celorio
  Details
patch, libgnomeprintui part (2.43 KB, patch)
2003-02-27 15:55 UTC, Chema Celorio
none Details | Review
libgnomeprint part of patch (5.93 KB, patch)
2003-02-27 17:28 UTC, Chema Celorio
none Details | Review

Description nadaschauher 2003-02-15 14:20:18 UTC
The printing settings, that is, paper settings and the "Print to PDF"
driver name etc. used in the print dialog are not localizable. They are
mostly found inside libgnomeprintui as far as I see.
Comment 1 Chema Celorio 2003-02-15 14:26:51 UTC
They are:

[chema@localhost printers]$ grep _ PDF-WRITER.xml.in
<_Name>Create a PDF document</_Name>
[chema@localhost printers]$ pwd
/home/chema/cvs/gnome2/libgnomeprint/data/printers
[chema@localhost printers]$ cd ../..
[chema@localhost libgnomeprint]$ cd po
[chema@localhost po]$ grep "PDF" es.po
#: data/printers/PDF-WRITER.xml.in.h:1
msgid "Create a PDF document"
msgstr "Crear un documento PDF"
[chema@localhost po]$

Do you not see them in your .po file or are they not getting
translated? I am unsure if the code is calling _ on them for
translation, I'll make sure it is.
Comment 2 nadaschauher 2003-02-18 15:38:57 UTC
A few examples are in gnome-print-paper-selector.c:

static const GPPOrientation porient[] = {
        {"R0", "Straight", {1, 0, 0, 1, 0, 0}},
        {"R90", "Rotated 90 degrees", {0, -1, 1, 0, 0, 1}},
        {"R180", "Rotated 180 degrees", {-1, 0, 0, -1, 1, 1}},
        {"R270", "Rotated 270 degrees", {0, 1, -1, 0, 1, 0}}
};

etc.

I find those examples from libgnomeprintui's code translated inside
libgnomeprint's .po, which is irritating to me. It doesn't seem to
work with the Debian packages, I'll compile a Garnome if I find the
time to check.
Comment 3 nadaschauher 2003-02-19 15:26:49 UTC
Behaviour is the same using garnome 0.21.2.
I tried it with French and German locales: The comboboxes of the print
dialog are not translated at all. The Items - "Straight" etc. - are
used in the cited way in libgnomeprintui without appearing in
libgnomeprintui.pot, and also appear in XML files in libgnomeprint,
where they are in libgnomeprint.pot and translated, but apparently not
used by the application itself.
Comment 4 Chema Celorio 2003-02-27 15:34:15 UTC
Created attachment 14658 [details]
screenshot
Comment 5 Chema Celorio 2003-02-27 15:55:41 UTC
Created attachment 14659 [details] [review]
patch, libgnomeprintui part
Comment 6 Chema Celorio 2003-02-27 17:28:02 UTC
Created attachment 14662 [details] [review]
libgnomeprint part of patch
Comment 7 Chema Celorio 2003-02-27 17:28:29 UTC
Fixed in CVS