On Tue, Apr 21, 2009 at 14:49, Paul Ishenin <i...@kmiac.ru> wrote:
> Alexander Klenin wrote:
>> 3) Perhaps 'Create' and 'CreateFmt' should be added to the list of
>> functions ignoring constants?
>>   raise Exception.Create('Error text') is a common construct.
>
> No. Create and CreateFmt strings needs to be translatable even for
> exceptions.

This is true, but unrelated.
First, naming a string constant does not make it translatable,
it should be made resourcestring (so perhaps it should be a separate
observation --
"message is not translatable", where "message" is defined as string
constant containing at least one word)
Second, there are different means of i18n, and some of them, like dxgettext,
do not depend on resourcestrings.
Third, this same argument can be applied to Fromat, write/writeln and
other functions already present on ignore list.

-- 
Alexander S. Klenin

_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to