trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: September 2012

Re: [trinity-devel] Rebrand Krita => Chalk in koffice-i18n

From: Slávek Banko <slavek.banko@...>
Date: Sun, 16 Sep 2012 04:21:40 +0200
On Sunday 16 of September 2012 03:40:34 Slávek Banko wrote:
> On Saturday 15 of September 2012 00:17:04 Darrell Anderson wrote:
> > > when I update a package koffice-i18n I realized that it is
> > > necessary to carry out rebranding Krita => Chalk. Please, can make it
> > > done someone who has more experience in this?
> >
> > I copied the GIT files to a working directory. I tried the following:
> >
> > find koffice-i18n -name krita -exec sh -c 'mv {} `dirname {}`/chalk' \;
> >
> > find koffice-i18n -name krita.po -exec sh -c 'mv {} `dirname
> > {}`/chalk.po' \;
> >
> > find koffice-i18n -type f -exec sed -i 's|Krita|Chalk|g' {} \;
> >
> > find koffice-i18n -type f -exec sed -i 's|krita|chalk|g' {} \;
> >
> > Whether performed against a separate directory to create a large patch or
> > performed directly in a local GIT repository, next would be a bunch of
> > 'git add' commands to add the newly renamed chalk files and directories.
> > Possibly like this:
> >
> > for i in `find koffice-i18n -name chalk*`; git add $i; done
> >
> > Darrell
>
> I tried sed's that you said, but it causes docboook breakage:
>
> /opt/trinity/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
> index.docbook:37: parser error : Entity 'chalk' not defined
>
> >El manual del &chalk;</title>
>
>                       ^
> index.docbook:124: parser error : Entity 'chalk' not defined
>
> >El &chalk; és part del paquet &koffice;. El &chalk; és una aplicació per
> > al
>
>            ^
> index.docbook:124: parser error : Entity 'chalk' not defined
>
> >El &chalk; és part del paquet &koffice;. El &chalk; és una aplicació per
> > al
>
>                                                      ^
>
> When I revert "&chalk;" back to "&krita;", so the problem is resolved. But
> I do not know how it is to be right?
>
> Slavek

I found it!
tde/main/tdelibs/kdoctools/customization/entities/general.entities
tde/main/tdelibs/kdoctools/customization/obsolete/general.entities

However, the change needs to be also in a few more files (also in kde-i18n):
tde/main/tdebase/doc/userguide/migrator-applications.docbook
tde/main/tdebase/doc/userguide/kde-office.docbook

A useful may be also a change in other files:
tde/main/tdelibs/kdecore/kdebug.areas
tde/main/tdelibs/kdeui/kdepackages.h
tde/main/tdeaccessibility/IconThemes/mono/scalable/apps/krita.svgz

If there are no objections, I'll fix everything gradually. In any case, I am 
still concerned that "krita" may be in some languages ​​part of words.

Slavek
--