[Lazarus] DefaultTranslator
patspiper
patspiper at yahoo.com
Fri Aug 20 00:46:39 CEST 2010
On 08/19/2010 12:53 AM, Maxim Ganetsky wrote:
> 19.08.2010 1:46, patspiper пишет:
>> On 08/19/2010 12:37 AM, Maxim Ganetsky wrote:
>>> 19.08.2010 0:26, patspiper пишет:
>>>> I added DefaultTranslator to the uses clause of a unit, changed the
>>>> env
>>>> variable LANG to es_ES.utf8, and the controls caption were changed as
>>>> expected. However, resource strings were not. Are they supposed to be
>>>> changed in this case?
>>>
>>> No.
>>>
>> What's the logic behind this behavior? Shouldn't the translator
>> translate the whole form/application?
>
> It translates the whole form, but resourcestrings you should translate
> manually.
>
Should this be considered a shortcoming of the default translator that
will eventually be fixed?
The default translator checks the environment variable LANG and even
allows you to override the system language using the --lang parameter. I
vote for having the default translator handle resource strings the same way.
More information about the Lazarus
mailing list