main logo
Subject: Re: [dabo-dev] v = _("< None >") ???
Author: Paul McNett

Posted: 2007/07/31 16:41:57
 
View Entire Thread
New Search


Uwe Grauer wrote:
> Paul McNett wrote:
>> Uwe Grauer wrote:
>>> Paul McNett wrote:
>>>> Uwe Grauer wrote:
>>>>> In dGrid.py and in dApp.py _("< None >") is used.
>>>>> Please review if this is a valid thing.
>>>> I would say it is valid, since it is how the NULL or None value is
>>>> displayed to the user.
>>>>
>>> If this is the python None value, i don't see why it should be translated.
>> Not the python None value, but the string representation of it. Say the
>> city field of a record in a contact table in your database was NULL. By
>> default, in English, the user will see "< None >". Other languages will
>> see it in their own language. This is a user message, so I believe it
>> should be translated.
>>
>> It is also a property (NoneDisplay) that can be overridden by the
>> application developer to say whatever they want it to say, and to be
>> translatable or not.
>>
>
> You are kidding?
> How would you translate pythons None or SQLs NULL?

See my prior message: we are speaking in orthogonally.


> However, if the app developer overrides it, it would be translated by
> the apps locale.

Only if they included the _() and had suitable translations set up...

--
pkm ~ http://paulmcnett.com



 
©2007 Paul McNett
<-- Prior Message New Search Next Message -->