Re: [Mailman-i18n] PMS localization
Hi everybody, I'm preparing the PMS localization for mailman, that will be used to run a wikipedia-related list at WMF. I wanted to ask you guys if: 1) is it a problem that we have a 3-letter ISO 639-3 code? 2) what do the %(year)i-like messages mean? I take it that %(year) will be substituted with the year value, but what is the final "i" for? Is there any guide I can use? Thanks :) Berto 'd Sera Skype: berto.d.sera Personagi dl'ann 2006 per l'arvista american-a Time (tanme tuti vojaotri) http://www.time.com/time/magazine/article/0,9171,1569514,00.html
Berto 'd Sera wrote:
I'm preparing the PMS localization for mailman, that will be used to run a wikipedia-related list at WMF.
I wanted to ask you guys if: 1) is it a problem that we have a 3-letter ISO 639-3 code?
No.
2) what do the %(year)i-like messages mean? I take it that %(year) will be substituted with the year value, but what is the final "i" for? Is there any guide I can use?
The '%(year)i' is a conversion specifier. See
http://docs.python.org/lib/typesseq-strings.html.
In this case, the 'i' is a 'type' and means integer conversion. All
conversion specifiers begin with '%' and end with a 'type', and the
entire specifier should be unchanged in the translation - i.e., don't
translate 'year'.
--
Mark Sapiro
Hi! One more doubt: is the message "right" meant to be opposed to "left" or not? I can't seem to find a "left" anywhere... so the other possible chances are: 1) the right to do something 2) correct Which one? Bèrto d Sèra Skype: berto.d.sera Personagi dlann 2006 për larvista american-a Time (tanme tuti vojàotri) http://www.time.com/time/magazine/article/0,9171,1569514,00.html
Bèrto 'd Sèra wrote:
One more doubt: is the message "right" meant to be opposed to "left" or not? I can't seem to find a "left" anywhere... so the other possible chances are: 1) the right to do something 2) correct
Which one?
I assume you are asking about the #: Mailman/Cgi/listinfo.py:116 msgid "right" message. If you refer to Mailman/Cgi/listinfo.py, you can see the context. adj = msg and _('right') or '' siteowner = Utils.get_site_email() welcome.extend( (_(''' To visit the general information page for an unadvertised list, open a URL similar to this one, but with a '/' and the %(adj)s list name appended. <p>List administrators, you can visit '''),
From this context, you can see that "right" is the adjective meaning "correct".
In case you don't understand the Python, what is done here is when
listinfo is invoked via say http://www.example.com/mailman/listinfo,
it puts the message "To visit the general information page for an
unadvertised list, open a URL similar to this one, but with a '/' and
the list name appended." on the page, but if it is invoked with
http://www.example.com/mailman/listinfo/xx where xx is not a valid
list name, it puts the message "To visit the general information page
for an unadvertised list, open a URL similar to this one, but with a
'/' and the right list name appended." on the page.
--
Mark Sapiro
participants (3)
-
Berto 'd Sera
-
Bèrto 'd Sèra
-
Mark Sapiro