[Mailman-Developers] [ mailman-Bugs-631774 ] i18n unicode string interpolation

noreply@sourceforge.net noreply@sourceforge.net
Sun Nov 17 20:55:30 2002


Bugs item #631774, was opened at 2002-10-31 16:46
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=631774&group_id=103

Category: None
Group: 2.1 beta
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Simone Piunno (pioppo)
Assigned to: Nobody/Anonymous (nobody)
Summary: i18n unicode string interpolation

Initial Comment:
Hi, below you can find a report from one of the italian
translators (thanks Enea Zaffanella).

I believe somewhere between 2.1b3 and b4 a string has 
been converted into unicode and now string interpolation 
is not working anymore as expected.


Here u'' appears in html output (generated by admin.py):

======================================
  <table BORDER="2">
    <tr> 
     
<td><center><strong>Indirizzo/nome</strong></center></td>
      <td><center><strong>La tua
decisione</strong></center></td>

      <td><center><strong>Motivo del
rifiuto</strong></center></td>
    </tr>
    <tr>
**********************************************************************
      <td>u'zaffanella@example.it<br><em>Enea
Zaffanella</em>'</td>
**********************************************************************
      <td>
<table CELLSPACING="5">
  <tr>

    <td><input name="14" type="RADIO" value="0" CHECKED
>Rimando la
decisione</td>
    <td><input name="14" type="RADIO" value="4"
>Approvo</td>
    <td><input name="14" type="RADIO" value="2"
>Rigetta</td>
    <td><input name="14" type="RADIO" value="3"
>Scarta</td>
  </tr>
</table>
================================

And here (adminsubscribeack.txt) interpolation doesn't
happen:

================================
%(member)s è stato iscritto con successo a %(listname)s.
================================

They are 2 different cases: one is _(string) and the
other is Utils.Maketext(a template, dictionary of
strings), so this suggests even more that i18n.py has
been screwed up by 
unicode.

----------------------------------------------------------------------

>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2002-11-17 15:55

Message:
Logged In: YES 
user_id=12800

Both of these should now be fixed for b5

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=631774&group_id=103



More information about the Mailman-Developers mailing list