[Mailman-i18n] Variable correct?

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sun Mar 5 13:54:58 CET 2006

Clytie Siddall wrote:
> Hello again :)
> In the file mailman.po, in this string:
> ___
> po:68
> reference:	⑤	Mailman/Cgi/admin.py:268
> Original:	⌘0	To visit the administrators configuration page for an\n
>          unadvertised list, open a URL similar to this one, but with  
> a '/'
> and\n
>          the %(extra)slist name appended.  If you have the proper  
> authority,\n
>          you can also <a href=\"%(creatorurl)s\">create a new mailing  
> list</
> a>.\n
> \n
>          <p>General list information can be found at
> ___
> is the variable "%(extra)slist" correct, or should the word "list" be  
> separate, with a space in between: "%(extra)s list" ?

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.

You are advised to read the original source code since the translation 
is always context dependent.

Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp

More information about the Mailman-i18n mailing list