Problem with i18n("")

Ansley, Michael Michael.Ansley at intec.co.za
Fri Oct 8 09:37:21 BST 1999


That's fine, but what if I do i18n(text_var); and text_var evaluates to ""?
Writing a check to see if text_var is empty would seem a little
counter-intuitive, as well as unnecessary, if i18n() gave the correct
output.

MikeA
>> -----Original Message-----
>> From: Jacek Wojdel [mailto:wojdel at kbs.twi.tudelft.nl]
>> Sent: Thursday, October 07, 1999 2:30 PM
>> To: kdevelop at barney.cs.uni-potsdam.de
>> Subject: Re: Problem with i18n("")
>> 
>> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> 
>> On Thu, 07 Oct 1999, you wrote:
>> > Hello,
>> >
>> > i designed a dialog using the KDevelop dialog editor. 
>> There a some entry
>> > fields, which are empty. KDevelops code generation inits 
>> this fields with
>> > i18("").
>> > Now i tried to add the german language to my program. 
>> After make and make
>> > install and starting the program i got a badly looking 
>> dialog. All entry
>> > fields, which should be empty, are filled with "project id...".
>> > After trying to change i18n("") to i18n("something") or 
>> deleting this
>> > statement, the fields are really empty.
>> > So i thing, i have problems to translate i18n("") 
>> statements correctly.
>> >
>> > Do you know this problem and have you an idea to fix it ?
>> 	Hi !
>> I think the problem is that empty string in translation 
>> files (msgid="") is
>> used to pass the comments about the translation file (such 
>> as project name,
>> translators etc.) That means, that if you want to use an 
>> empty string, you
>> shouldn't translate it and so use plain "" instead of 
>> i18n(""). After all
>> translation of "" to any language is "" isn't it ?
>> Reagrds,
>> 	Jacek
>> --
>> +-------------------------------------+
>> |from: J.C.Wojdel                     |
>> |      J.C.Wojdel at cs.tudelft.nl       |
>> +-------------------------------------+
>> 
>> -----BEGIN PGP SIGNATURE-----
>> Version: PGPfreeware 5.0i for non-commercial use
>> MessageID: AH6iMTLOmNNMrsy5uCzZCqAeHq0sX3TI
>> 
>> iQCVAwUBN/yTEIWy7tU6a5rbAQGDoAP9H8cmX2ccMpWvZ0rrRi47QhU4sGu8YgHs
>> K+JccVCjGZJYYMlzrQORjONjWKL/e23CDUOG1q8Fk74yNCM5veeIR53Ob7U4HLbB
>> d1n1MwLWlyLxKIUfBY9RIoE7+fUjz7GlKYaC9tTDl5t3+UUVFlYmzcyXIPjPBUQM
>> KKQvIup7dyI=
>> =gNTf
>> -----END PGP SIGNATURE-----
>> 



More information about the KDevelop mailing list