Re: [PATCH] translate correctly ListName stuff

2004-06-09 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> sure it is. (I am not sure about submatches...) Lars> What are you trying to do exactly? Something like layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc LC_ALL=C ; export LC_ALL ; \

Re: [PATCH] translate correctly ListName stuff

2004-06-09 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Now, if somebody could tell me how I can organize Makefile.in.in | Lars> so that I only have to have that function in one place and still | Lars> be able to use it in all the

Re: [PATCH] translate correctly ListName stuff

2004-06-09 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Now, if somebody could tell me how I can organize Makefile.in.in Lars> so that I only have to have that function in one place and still Lars> be able to use it in all the targets I'd be grateful... Lars> I can do it with a temp

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: > | | I add a arg to awk: -v top_srcdir="$(top_srcdir)" | | then I add a function: | |function fixupfilename() | |{ | |fna=FILENAME; | |sub(top_srcdir "

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | I add a arg to awk: -v top_srcdir="$(top_srcdir)" | then I add a function: |function fixupfilename() |{ |fna=FILENAME; |sub(top_srcdir "/", ", fna); |return fna; |} I changed

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> The relative path from going from builddir to sourcedir, they | Lars> must be removed when generating the filenames in the pots. > | But when I do | cd ${srcdir} ; awk 'bl

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> The relative path from going from builddir to sourcedir, they Lars> must be removed when generating the filenames in the pots. But when I do cd ${srcdir} ; awk 'blah' lib/ui/*.ui >foo.pot there is nothing related to build di

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> | Was it? What kind of differences? I really thought I took care | Lars> of that. > | Lars> the file names ended up different. > | Basically, the approach was to do | cd ${

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> | Was it? What kind of differences? I really thought I took care Lars> of that. Lars> the file names ended up different. Basically, the approach was to do cd ${srcdir} ; do_the_awk_dance This seems much cleaner than the rem

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Ah. you are using a build dir outside the source dir. > | Yes. > | Lars> Yes. it was not working. (the pot file was different depending | Lars> on build dir != srcdir, and th

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Can I apply the patch? The patch looks ok to me. -- Lgb

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Ah. you are using a build dir outside the source dir. Yes. Lars> Yes. it was not working. (the pot file was different depending Lars> on build dir != srcdir, and that is not good and makes "make Lars> distcheck" fail.) Was it

Re: [PATCH] translate correctly ListName stuff

2004-06-08 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | The following patch ensures that things like "List of Figures" gets | translated correctly on screen (and in latex output in the case of | algorithms). > | The awk code in po/Makefile.in.in could be made shorter if only I knew | how to refer to th

[PATCH] translate correctly ListName stuff

2004-06-08 Thread Jean-Marc Lasgouttes
The following patch ensures that things like "List of Figures" gets translated correctly on screen (and in latex output in the case of algorithms). The awk code in po/Makefile.in.in could be made shorter if only I knew how to refer to the /regexp/ match. The main caveat with this patch is that I