Ideal D GUI Toolkit

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu May 23 05:57:48 PDT 2013


On 5/23/13 4:31 AM, Jacob Carlborg wrote:
> On 2013-05-23 10:29, Jacob Carlborg wrote:
>
>> Say I have:
>>
>> gettext("%s: unknown variable at line %s")
>>
>> Then I want to change the text to:
>>
>> gettext("%s: not yet known variable at line %s")
>>
>> I have to find all places where this text is used in the code. Then I
>> also need to updated the translations. If I used a key instead I only
>> need to update all the translations. I don't need to change my code.
>
> Also, with the key approach I can just send a separate file to someone
> else to do the translation, even the English translation. Sure I
> probably could have a separate file for the English translation as well
> but that would be duplicating the string.

enum string unknownVar = "9b4db58e27bf9fac1be43ed754fbc44c";
... gettext(unknownVar) ...


Andrei


More information about the Digitalmars-d mailing list