[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Fwd: Missing i18n i krita
From: Sven Langkamp <longamp () reallygood ! de>
Date: 2005-05-12 21:16:26
Message-ID: 200505122316.26448.longamp () reallygood ! de
[Download RAW message or body]
Am Donnerstag, 12. Mai 2005 22:25 schrieb David Faure:
> On Thursday 12 May 2005 22:12, Sven Langkamp wrote:
> > Am Donnerstag, 12. Mai 2005 17:30 schrieb David Faure:
> > > On Thursday 12 May 2005 15:21, Sven Langkamp wrote:
> > > > The names are loaded from file. I don't know if the gimp files can be
> > > > translated.
> > >
> > > There are solutions for that if those files contain the same strings on
> > > most systems, then you can make a script to generate a file with i18n()
> > > calls for them all, and let xgettext see that file. That's basically
> > > what we do for timezones and rgb.txt (iirc). But if every system (i.e.
> > > every version of gimp) has a different set of
> > > brushes/gradients/patterns, there'll always be some mismatch.
> >
> > No problem Krita has it's own copy of the brushes/gradients/patterns...
> > I have made a script which generates the attached file from the files in
> > data directory. How can I get xgettext to scan it?
>
> Add the file to the messages target of krita (in Makefile.am).
>
> If the file you posted was just the result of a script applied to some
> sources, better not commit that file, but generate it at runtime, so that
> it can never go out of date:
>
> --- Makefile.am (revision 412120)
> +++ Makefile.am (working copy)
> @@ -45,6 +45,8 @@
> messages: rc.cpp
> $(EXTRACTRC) `find . -name \*.ui` >> rc.cpp
> $(EXTRACTRC) `find . -name \*.rc` >> rc.cpp
> - $(XGETTEXT) rc.cpp `find . -name \*.cc -o -name \*.h`
> core/kis_aboutdata.h -o $(podir)/krita.pot + runscript inputfile >
> i18ndata
> + $(XGETTEXT) i18ndata rc.cpp `find . -name \*.cc -o -name \*.h`
> core/kis_aboutdata.h -o $(podir)/krita.pot + rm -f i18ndata
>
> kde_services_DATA = kritapart.desktop
Does that work with a python script? (dependency?)
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic