[Mailman-i18n] Variable correct?

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Mon Mar 6 13:51:36 CET 2006


Clytie Siddall wrote:
> On 05/03/2006, at 11:24 PM, Tokio Kikuchi wrote:
> 
> 
>>In admin.py, there is a line:
>>    extra = msg and _('right ') or ''
>>before the above translation catalog.
>>
>>So, if extra is 'right ', then "the %(extra)slist" is substituted  
>>to "the right list".  On the other hand, if extra is '', "the % 
>>(extra)slist" becomes "the list".  The catalog notation is correct.
> 
> 
> Yes, but that substitution won't work for languages which place the  
> adjective after the noun: "list right", not "right list". Breaking up  
> phrases like that is bound to cause errors. :(
> 
> There are a lot of languages which place the adjective after the  
> noun. Mine is one of them.
> 
> Also, if this means a completely bare "right" occurs in the PO file,  
> that could mean "right" as in "right and left" or "right" as in  
> "right and wrong". How do we know which one to use?
> 
You can construct translation like:
'right ' --> ' right'
'... %(extra)slist ...' -> '... list%(extra)s ...'

Also, there is only one 'right ' (with trailing space) in the catalog.
So, there is no problem, I believe.

-- 
Tokio Kikuchi tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/


More information about the Mailman-i18n mailing list