Re: Current status on migration to gettext/po

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



В Вск, 10/08/2008 в 12:41 +0200, Ulf-D. Ehlert пишет:
> Hi Marco,
> 
> Marco Ciampa (Samstag, 9. August 2008, 23:44):
> > On Wed, Aug 06, 2008 at 05:00:12PM +0200, Roman Joost wrote:
> > > The old 'src' directory is moved into 'oldsrc' and a profiled,
> > > English only version is kept under 'src'. From this sources po/pot
> > > files are created if you run for example:
> > >
> > >     make pot-de
> > >     make po-de
> 
> No, "pot-*" is not a valid target. Just try
> 
> 	make po-de
> 
> which implies "make pot" and will create/update the pot files as well as 
> the po files for "de".
> 
> 	make xml-de
> 
> (implies "make po-de") will create/update localized XML files,
> 
> 	make html-de
> 
> (implies "make xml-de") creates/updates localized HTML files.
>  
> > I'm missing something.
> > I've done the checkout (version same to the trunk - 2525 - right?).
> > Done
> >
> > make pot-it
> 
> Try "make po-it" (see above).
> 
> You may also try to use the "-n" make option (e.g. "make -n html-it") 
> which will just print the commands without executing them.
> 
> Creating a single po file should also work:
> For a given source file, e.g. "src/filters/foo/bar.xml", replace "src/" 
> with "po/it/" and ".src" with ".po", and try
> 
> 	make po/it/filters/foo/bar.po
> 
> Or for making a single localized xml file:
> 
> 	make xml/it/filters/foo/bar.xml
> 
> > in the root (where there is the Makefile).
> > I do not see any special Makefile.
> > Nothing happens.
> 
> ?? You should get an error message:
> 
> 	make: *** No rule to make target `pot-it'.  Stop.
> 
> > What am I doing wrong? 
> 
> Hmm, not enough coffee? ;-)

Another thing I can't agree with is that po files are created for each
xml file in sources. For me it seems like a waste of time, resources and
this will drop one of main advantages of gettext - you can't share
translation for a single string across document.

I'd better recommend you to create per-chapter po file with 

xml2po -o pot src/chapter/*.xml

Attachment: signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=

_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux