[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: KWord + Karbon: Untranslatable Strings, Typo fix
From:       Thomas Zander <zander () kde ! org>
Date:       2007-09-21 7:17:12
Message-ID: 200709210917.13677.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 20 September 2007 22:05:37 Burkhard Lück wrote:
> On Thursday 20 September 2007 18:12:29 Thomas Zander wrote:
> > The reason for this huge difference is mostly due to two points;
> > * Lots of messages were moved to the text-shape.
> > * Quite some features are still not reimplemented in trunk.
> >
> > > One problem with untranslatable strings in kword is still not fixed
> > > with both patched Messages.sh:
> > > "Freehand Drawing Tool", "Pattern Editing Tool", "Gradient Editing
> > > Tool" from different files in karbon/plugins/tools/ and
> > > "Stroke Properties", "Cap:", "Join:", "Miter limit:" from
> > > karbon/plugins/dockers/KarbonStrokeDocker.cpp
> > > are also used in kword, but untranslatable.
> > > To use the translations in kword and karbon, the files should be
> > > moved outside karbon, where the messages can be extracted to a
> > > separate message catalog, which has to be inserted into kword and
> > > karbon.
> >
> > We should have a separate message catalog for those, for sure.
> > I would like to avoid moving the files.  I'm sure we can fix the
> > messages.sh to do the right thing.
>
> As far as I understand the kde i18n toolchain (please read the code in
> l10n-kde4/scripts/extract-messages.sh) it is not possible to extract to
> more than one template in a Messages.sh.
>
> I have tested this locally with:
> koffice/karbon$ svn diff Messages.sh
> Index: Messages.sh
> ===================================================================
> --- Messages.sh (Revision 714847)
> +++ Messages.sh (Arbeitskopie)
> @@ -1,4 +1,4 @@
>  #! /bin/sh
>  $EXTRACTRC data/*.rc >> rc.cpp
>  $XGETTEXT rc.cpp *.cpp *.cc */*.cc tools/*.h plugins/*/*.cc -o
> $podir/karbon.pot
> +$XGETTEXT rc.cpp plugins/*/*.cpp dockers/*.cpp -o
> $podir/koffice-plugins-dockers.pot
>
> Then I get a lot of errors from msgfmt --statistics about duplicate
> message definition.

I'll take your word for it, no time to read that stuff now...
Just thinking can't we have an extra Messages.sh in the karbon/plugins 
dir? And alter the find in the karbon top-level dir (if needed) to avoid 
it indexing the stuff that's going to be in the karbon-plugins.pot ?

> So I see no other way than moving the files.

I have a big problem with restructuring code location (i.e. make it worse 
from a technical point of view) just to work around limitations of a 
tool :)

[]
> Btw, I saw Thomas Zanders commit #714800 (Only first char uppercase in
> ToolTips) and found some more tooltips with different capitalization
> 1 in kword, 2 in krita, 1 in kspread, 6 in karbon, 2 in shapes, 1 in
> libs. Should I fix them?

Yes please.
-- 
Thomas Zander

[Attachment #5 (application/pgp-signature)]

_______________________________________________
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