[Kbabel] Find/Replace in Catalog Manager

Marco Wegner dubbleu@web.de
Mon, 6 Jan 2003 15:23:08 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 05 January 2003 10:32, Stanislav Visnovsky wrote:
> Hi!
>
> I'm currently changing the load/save code of KBabel and trying to
> simplify it a bit.
>
> I simply don't know what to do with find/replace in catalog manager. The
> problem: it uses a different way to load the file just to speedup the
> searching.
>
> So I propose to use standard methods as used by KBabel:
>
> 1. Pros
> - support for multiple file types
> - support for partially broken files
> - easier to maintain code
>
> 2. Cons
> - real slowdown when searching - cca 2 times slower
> - the current code stops ASAP when the result can be determined, but after
>   the change it would not be possible - another slowdown
>
> Since the cons are serious for users, I'd like to hear your opinions.
> Otherwise I would like to go for the change and maybe try to optimize the
> standard load method.

I'm not sure I understand you correctly but IMHO every file type would need=
=20
its own search/replace methods in Catalog Manager (perhaps as plugins). For=
=20
instance searching and replacing does not work for PO files in the header o=
r=20
the comments. Similar things would apply when replacing in DocBook: it is=20
necessary to leave the tags untouched because this could break the integrit=
y=20
of the file.=20

Marco

=2D --=20
Marco Wegner <mail@marcowegner.de>, <dubbleu@web.de>
Contributing to KBabel http://i18n.kde.org/tools/kbabel=20
   and German KDE translation http://i18n.kde.org/teams/de
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+GZFUX3rotM03gSgRArGjAJ9HUrhP0SLp5rvb46tf/hUyyfr1YACeMPID
tC0YLs99Ba4VOQnBtgq7ymI=3D
=3DzpKD
=2D----END PGP SIGNATURE-----