All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Robert Krawitz <rlk@alum.mit.edu>
Cc: printing-architecture@lists.linux-foundation.org,
	printing-japan@lists.linux-foundation.org,
	gimp-print-devel@lists.sourceforge.net, jriddell@ubuntu.com
Subject: Re: [Printing-architecture] [Gimp-print-devel] Common Printing Dialog: PPD extension specs updated
Date: Fri, 01 Aug 2008 14:13:15 +0200	[thread overview]
Message-ID: <4892FDDB.5060104@gmail.com> (raw)
In-Reply-To: <200808011134.m71BYXdK003793@dsl092-065-009.bos1.dsl.speakeasy.net>

Robert Krawitz wrote:
>    Date: Fri, 01 Aug 2008 09:09:29 +0200
>    From: Till Kamppeter <till.kamppeter@gmail.com>
> 
>    Robert Krawitz wrote:
>    >    Date: Thu, 31 Jul 2008 23:37:58 +0200
>    >    From: Till Kamppeter <till.kamppeter@gmail.com>
>    > 
>    >    Robert Krawitz wrote:
>    >    > 
>    >    > Could you try this?
>    > 
>    >    Thank you for the patch, but still all English.
>    > 
>    >    > What OS are you running, what version of gettext, what version of libc?
>    > 
>    >    Ubuntu Intrepid
>    > 
>    >    Linux till-laptop 2.6.26-4-generic #1 SMP Mon Jul 14 18:39:53 UTC 2008 
>    >    i686 GNU/Linux
>    > 
>    >    ii  libc6                                      2.8~20080505-0ubuntu6 
>    > 		 GNU C Library: Shared libraries
>    >    ii  libc6-i686                                 2.8~20080505-0ubuntu6 
>    > 		 GNU C Library: Shared libraries [i686 optimized]
>    >    ii  gettext                                    0.17-3ubuntu1 
>    > 		 GNU Internationalization utilities
>    > 
>    > Can you capture via strace:
>    > 
>    > strace -s 1024 -o st.out ./cups-genppd.5.2 -p ppd pcl-2
>    > 
>    > I'd like to see what happens when it tries to build a PPD file.
>    > 
> 
>    The resulting file (using yesterday's patch) is attached.
> 
>    I had to do
> 
>    sudo mkdir -p /usr/local/share/gutenprint/5.2/
>    sudo ln -s ~/gutenprint/cvs/HEAD/print/src/xml 
>    /usr/local/share/gutenprint/5.2/
> 
>    to let the XML files appear under the hard-coded path (would be nice to 
>    be able to change the path by a command line option).
> 
> The command I gave you wasn't quite right, I'm afraid.  What you need
> to do is start running "make ppd-global" to allow it to copy the
> message catalogs in place, and then
> 
> LC_ALL= LANG= LANGUAGE= STP_MODULE_PATH=../../src/main/.libs:../../src/main STP_DATA_PATH=../../src/xml strace -s 1024 -o st.out ./cups-genppd.5.2  -p ppd/Global -c `pwd`/catalog/share/locale pcl-2
> 
> The make command should look something like this:
> 
> $ make ppd-global
> wdir=`pwd` ; \
>         cd ../../po ; \
>         make ; \
>         make DESTDIR= prefix=${wdir}/catalog datadir=${wdir}/catalog/share install
> make[1]: Entering directory `/home/rlk/sandbox/print-5.1/po'
> make[1]: Nothing to be done for `all-macosx'.
> make[1]: Leaving directory `/home/rlk/sandbox/print-5.1/po'
> make[1]: Entering directory `/home/rlk/sandbox/print-5.1/po'
> /bin/mkdir -p /home/rlk/sandbox/print-5.1/src/cups/catalog/share
> installing cs.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/cs/LC_MESSAGES/gutenprint.mo
> installing da.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/da/LC_MESSAGES/gutenprint.mo
> installing de.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/de/LC_MESSAGES/gutenprint.mo
> installing el.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/el/LC_MESSAGES/gutenprint.mo
> installing en_GB.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/en_GB/LC_MESSAGES/gutenprint.mo
> installing es.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/es/LC_MESSAGES/gutenprint.mo
> installing fr.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/fr/LC_MESSAGES/gutenprint.mo
> installing hu.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/hu/LC_MESSAGES/gutenprint.mo
> installing ja.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/ja/LC_MESSAGES/gutenprint.mo
> installing nb.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/nb/LC_MESSAGES/gutenprint.mo
> installing nl.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/nl/LC_MESSAGES/gutenprint.mo
> installing pl.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/pl/LC_MESSAGES/gutenprint.mo
> installing pt.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/pt/LC_MESSAGES/gutenprint.mo
> installing sk.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/sk/LC_MESSAGES/gutenprint.mo
> installing sv.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/sv/LC_MESSAGES/gutenprint.mo
> installing zh_TW.gmo as /home/rlk/sandbox/print-5.1/src/cups/catalog/share/locale/zh_TW/LC_MESSAGES/gutenprint.mo
> if test "gutenprint" = "gettext-tools"; then \
>           /bin/mkdir -p /home/rlk/sandbox/print-5.1/src/cups/catalog/share/gettext/po; \
>           for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
>             /usr/bin/install -c -m 644 ./$file \
>                             /home/rlk/sandbox/print-5.1/src/cups/catalog/share/gettext/po/$file; \
>           done; \
>           for file in Makevars; do \
>             rm -f /home/rlk/sandbox/print-5.1/src/cups/catalog/share/gettext/po/$file; \
>           done; \
>         else \
>           : ; \
>         fi
> make[1]: Leaving directory `/home/rlk/sandbox/print-5.1/po'
> mkdir ppd
> mkdir ppd/Global
> Global PPDs:
> LC_ALL= LANG= LANGUAGE= STP_MODULE_PATH=../../src/main/.libs:../../src/main STP_DATA_PATH=../../src/xml ./cups-genppd.5.2  -p ppd/Global -c `pwd`/catalog/share/locale
> ..........................................^Cmake: *** [ppd-global] Interrupt
> 

Still all English. I have looked into the strace output and it seems to 
look for the translations in the system and not in the source tree:

----------------------------------------------------------------------------
...
open("/usr/lib/locale/cs.UTF8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/lib/locale/cs.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/lib/locale/cs/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale-langpack/cs.UTF8/LC_IDENTIFICATION", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/cs.utf8/LC_IDENTIFICATION", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/cs/LC_IDENTIFICATION", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/lib/locale/cs_CZ.UTF8/LC_IDENTIFICATION", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/lib/locale/cs_CZ.utf8/LC_IDENTIFICATION", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/lib/locale/cs_CZ/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale-langpack/cs_CZ.UTF8/LC_IDENTIFICATION", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/cs_CZ.utf8/LC_IDENTIFICATION", 
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/cs_CZ/LC_IDENTIFICATION", O_RDONLY) = 
-1 ENOENT (No such file or directory)
...
----------------------------------------------------------------------------

There must be some possibility to provide an appropriate search path. 
Would be bad if one would need to set a symlink from the source tree 
into the system (would make distro packaging impossible).

    Till

  parent reply	other threads:[~2008-08-01 12:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 15:50 [Printing-architecture] Common Printing Dialog: PPD extension specs updated Till Kamppeter
     [not found] ` <4890962F.4000305@apple.com>
2008-07-30 16:38   ` Till Kamppeter
     [not found]     ` <4890AD59.6090902@apple.com>
2008-07-30 19:39       ` [Printing-architecture] [Gimp-print-devel] " Till Kamppeter
2008-07-30 19:54 ` [Printing-architecture] " Till Kamppeter
     [not found]   ` <200807310148.m6V1mTkP006833@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31  7:10     ` [Printing-architecture] [Gimp-print-devel] " Till Kamppeter
     [not found]   ` <200807310223.m6V2NkAv006976@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31  9:18     ` Till Kamppeter
     [not found]       ` <200807311226.m6VCQED9017811@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 13:38         ` Till Kamppeter
     [not found]           ` <200807311345.m6VDjJFT018162@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 14:03             ` Till Kamppeter
2008-07-31 14:05         ` Till Kamppeter
     [not found]       ` <200807311309.m6VD9s5n018013@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 14:02         ` Till Kamppeter
     [not found]         ` <p06110400c4b793ad4cd1@[192.168.1.102]>
     [not found]           ` <200807312114.m6VLEhgd004613@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-07-31 21:37             ` Till Kamppeter
     [not found]               ` <200807312156.m6VLusVF004364@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01  7:09                 ` Till Kamppeter
     [not found]                   ` <200808011134.m71BYXdK003793@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01 12:13                     ` Till Kamppeter [this message]
     [not found]                       ` <20080801123314.GA26452@nagini.vm.bytemark.co.uk>
2008-08-01 12:55                         ` Till Kamppeter
     [not found]                           ` <20080801130821.GC26452@nagini.vm.bytemark.co.uk>
2008-08-01 13:19                             ` Till Kamppeter
     [not found]                               ` <48934778.1080504@apple.com>
     [not found]                                 ` <87ej58mptc.fsf@hardknott.home>
     [not found]                                   ` <4893A466.5040103@apple.com>
     [not found]                                     ` <87tze4l0sr.fsf@hardknott.home>
     [not found]                                       ` <200808020120.m721K3Uw007245@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]                                         ` <87wsizvbdh.fsf@hardknott.home>
     [not found]                                           ` <87ej57v8gj.fsf@hardknott.home>
2008-08-04 14:41                                             ` Till Kamppeter
2008-08-04 21:08                                             ` Till Kamppeter
     [not found]                                               ` <873alk8lwp.fsf@hardknott.home>
2008-08-04 22:41                                                 ` Till Kamppeter
     [not found]                         ` <200808011243.m71ChRZ9004044@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]                           ` <20080801130240.GB26452@nagini.vm.bytemark.co.uk>
     [not found]                             ` <200808011308.m71D8CMM004429@dsl092-065-009.bos1.dsl.speakeasy.net>
2008-08-01 13:40                               ` Till Kamppeter
     [not found]                           ` <48934629.3060501@apple.com>
2008-08-01 17:26                             ` Till Kamppeter
2008-08-01 12:52                     ` Till Kamppeter
2008-08-01  7:15                 ` Till Kamppeter
     [not found]         ` <4895C323.7060005@apple.com>
     [not found]           ` <200808031506.m73F6GPe025447@dsl092-065-009.bos1.dsl.speakeasy.net>
     [not found]             ` <200808030932.38287.hvengel@astound.net>
2008-08-04 21:53               ` Till Kamppeter
     [not found]                 ` <4897BF6A.9090806@apple.com>
     [not found]                   ` <200808050027.23995.hvengel@astound.net>
2008-08-05  8:20                     ` Till Kamppeter
     [not found]               ` <200808031431.06482.hvengel@astound.net>
2008-08-04 22:22                 ` [Printing-architecture] [Gimp-print-devel] Common Printing Dialog: Color Management (was)PPD " Till Kamppeter
     [not found]                   ` <200808050116.25204.hvengel@astound.net>
2008-08-05  8:30                     ` Till Kamppeter
2008-08-05 12:36                       ` peter sikking

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4892FDDB.5060104@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=gimp-print-devel@lists.sourceforge.net \
    --cc=jriddell@ubuntu.com \
    --cc=printing-architecture@lists.linux-foundation.org \
    --cc=printing-japan@lists.linux-foundation.org \
    --cc=rlk@alum.mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.