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

List:       kde-devel
Subject:    Re: QTextCodec names?
From:       Waldo Bastian <bastian () kde ! org>
Date:       2003-06-21 11:48:03
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 20 June 2003 20:11, Adriaan de Groot wrote:
> In my code I have
>
> static QString encodings[ENCODING_COUNT+11] = {
> 	i18n("Western (ISO8859-1)"),
> 	i18n("Central European (ISO8859-2)"),
> ...
> } ;
>
> Now, aside from the inherent evil of static QStrings, this doesn't look
> right. I'm duplicating strings which are probably present in Qt or some
> other application. KMail, for example, has a list of encodings under
> View->Set Encoding. Do we have a centralized list of QTextCodec names and
> their i18n'ed names? 'cause then I'd use that, and not duplicate the whole
> table.

KCharsets::availableEncodingNames() and KCharsets::descriptiveEncodingNames() 
I think.

Cheers,
Waldo
- -- 
bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+9EXzN4pvrENfboIRAnUSAJ9pLygePyqN5PCFUV6gRKoCFfdvGACcCM4M
8kOnic+nQm/yhtHttZY9TJU=
=LmXU
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

Configure | About | News | Add a list | Sponsored by KoreLogic