From kde-devel Sat Jun 21 11:48:03 2003 From: Waldo Bastian Date: Sat, 21 Jun 2003 11:48:03 +0000 To: kde-devel Subject: Re: QTextCodec names? X-MARC-Message: https://marc.info/?l=kde-devel&m=105619617724433 -----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 <<