Bug 176086 - gimp-print-cups PPD's not translated
Summary: gimp-print-cups PPD's not translated
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gimp-print
Version: 4.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 176214
TreeView+ depends on / blocked
 
Reported: 2005-12-19 09:04 UTC by Robert van den Aker
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-12-21 15:52:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robert van den Aker 2005-12-19 09:04:13 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Description of problem:
The PPD's in /usr/share/cups/model/$language/ are not translated. This results in lots of multiplicate entries for the (en) language in the CUPS web interface.

Version-Release number of selected component (if applicable):
gimp-print-4.2.7-2

How reproducible:
Always

Steps to Reproduce:
1.Add a printer through the CUPS web interface
2.Pick a make for which you have gimp-print PPD's installed
3.See lots of multiplicate entries for the (en) language, none for other languages
  

Additional info:

I did some trial-and-error experimentation with the source rpm and here are my findings:

1. issued command 'rpmbuild -bc gimp-print.spec' on unmodified spec file
2. opened ppd file in build_dir/src/cups/ppd/de/ and found it untranslated
3. commented out the make line in the %build section of gimp-print.spec
4. issued command 'rpmbuild -bc gimp-print.spec' on modified spec file
5. cd'ed to build_dir, then issued command 'make'
6. opened ppd file in build_dir/src/cups/ppd/de/ and found it translated!
7. figured there must be a crucial difference between the rpm build environment and my login shell's environment causing the difference in behavior; found rpm build environment sets "LANG=C", my login shell sets "LANG=en_US.UTF-8"
8. inserted 'export LANG="en_US.UTF-8"' before %configure in %build section of gimp-print.spec
9. uncommented the make line in the %build section of gimp-print.spec
10. issued command 'rpmbuild -bc gimp-print.spec' on modified spec file
11. opened ppd file in build_dir/src/cups/ppd/de/ and found it translated

Comment 1 Tim Waugh 2005-12-21 15:52:17 UTC
Thanks.  I have fixed this for the next release of Red Hat Enterprise Linux, as
well as for Fedora Core 5.


Note You need to log in before you can comment on or make changes to this bug.