[Mailman-i18n] How to insert i18n stuff inside templates

Juan Carlos Rey Anaya jcrey@uma.es
Tue, 14 Nov 2000 10:01:59 +0100


=A4=E8=ABT=B4=BC wrote:
> =

> >
> > Juan C. Rey Anaya wrote:
> > Hello =A4=E8=ABT=B4=BC:
> > have you inserted i18n stuff inside templates?
> >
> Where should I insert it ?

---------------------------------------------
In templates/listinfo.html we must to insert:
---------------------------------------------
<!-- $Revision: 1.20 $ -->
<HTML>
  <HEAD>
    <TITLE><MM-List-Name> Info Page</TITLE>
  =

  </HEAD>
  <BODY BGCOLOR=3D"#ffffff">

    <MM-Subscribe-Form-Start>
    <P>
      <TABLE COLS=3D"1" BORDER=3D"0" CELLSPACING=3D"4" CELLPADDING=3D"5">=

        <TR>
          <TD COLSPAN=3D"2" WIDTH=3D"100%" BGCOLOR=3D"#99CCFF" ALIGN=3D"C=
ENTER">
            <B><FONT COLOR=3D"#000000" SIZE=3D"+1"><MM-List-Name> --
        <MM-List-Description></FONT></B>
          </TD>
        </TR>
        <tr>
            <td colspan=3D"2">
              <p>&nbsp;
            </td>
          </tr>
          <tr>
            <TD COLSPAN=3D"2" WIDTH=3D"100%" BGCOLOR=3D"#FFF0D0">
              <B><FONT COLOR=3D"#000000">About <MM-List-Name></FONT></B>
            </TD>
+            <TD COLSPAN=3D"1" WIDTH=3D"100%" BGCOLOR=3D"#FFF0D0">
+              <MM-lang-form-start><MM-displang-box> <MM-list-langs>
+              <MM-form-end>
+            </TD>
          </TR>
            <tr>
              <td colspan=3D"2">
                <P><MM-List-Info></P>
          <p> To see the collection of prior postings to the list,
              visit the <MM-Archive><MM-List-Name>
                  Archives</MM-Archive>.
[snip]
      <TR> =

        <TD BGCOLOR=3D"#dddddd">Reenter password to confirm:</TD>
        <TD><MM-Confirm-Password></TD>
        <TD>&nbsp; </TD></TR>
+      <tr>
+        <TD BGCOLOR=3D"#dddddd">Which language do you prefer to display
your messages?</TD> =

+        <TD> <MM-list-langs></TD>
+        <TD>&nbsp; </TD></TR>
      <tr>
        <td>Would you like to receive list mail batched in a daily
          digest?
          </td>
[snip]

---------------
In options.html
---------------
[snip]
<tr><TD BGCOLOR=3D"#dcdcdc">
<strong> Conceal yourself from subscriber list? </strong><br>
<MM-Public-Subscription-Button> No
<MM-Hide-Subscription-Button> Yes <p>
</td></tr>                                                     +
<tr><TD BGCOLOR=3D"#dcdcdc">                                     +
<strong> What language do you prefer?</strong><MM-list-langs>  +
</td></tr>                                                     +
<tr><TD BGCOLOR=3D"#dcdcdc">
Password: <MM-Digest-Pw-Box>  <MM-Digest-Submit><p>
</td></tr></table>
</center>

<p>
<MM-Form-End>

<MM-Mailman-Footer>
</body>
</html>

--------------
In roster.html
--------------
<!-- $Revision: 1.5 $ -->
<HTML>
  <HEAD>
    <TITLE><MM-List-Name> Subscribers</TITLE>
  =

  </HEAD>
  <BODY BGCOLOR=3D"#ffffff">

    <P>
    <TABLE WIDTH=3D"100%" COLS=3D"1" BORDER=3D"0" CELLSPACING=3D"4"
CELLPADDING=3D"5">
      <TR>
        <TD COLSPAN=3D"2" WIDTH=3D"100%" BGCOLOR=3D"#99CCFF" ALIGN=3D"CEN=
TER">
          <B><FONT COLOR=3D"#000000" SIZE=3D"+1"><MM-List-Name>
                Subscribers</FONT></B>
        </TD>
      </TR>
      <TR>
        <TD COLSPAN=3D"2" WIDTH=3D"100%" ALIGN=3D"CENTER">

+          <P align =3D "right"> <MM-lang-form-start><MM-displang-box>
+                       <MM-list-langs><MM-form-end></p>        =


          <P>Click on your address to visit your subscription
              options page.<br><I>(Parenthesized entries have list
delivery =

              disabled.)</I></P>
        </TD>
      </TR>
      <TR WIDTH=3D"100%" VALIGN=3D"top">
        <TD BGCOLOR=3D"#FFF0D0" WIDTH=3D"50%">
          <center>
            <B><FONT COLOR=3D"#000000"><MM-Num-Reg-Users>
                  Non-digested Members of <MM-List-Name>:</FONT></B>
          </center>
        </TD>
        <TD BGCOLOR=3D"#FFF0D0" WIDTH=3D"50%">
          <center>
            <B><FONT COLOR=3D"#000000"><MM-Num-Digesters> Digested
                  Members of <MM-List-Name>:</FONT></B> =

          </center>
        </TD>
      </TR>
      <TR VALIGN=3D"top">
        <td>
          <P><MM-Regular-Users>
        </td>
        <td>
          <P><MM-Digest-Users>
        </td>
      </tr>
    </table>
<MM-Mailman-Footer>
</BODY>
-----------------------------------------------------------
I did not give importance to appearance. Appearance ideas will be
welcome.

Cheers
-- =

                          ___
                         / F \
                        [[[]]]]
                        ( O O )
   #----------------0000--(_)--0000---------------#
   |    Juan Carlos Rey Anaya (jcrey@uma.es)      |
   |      Servicio Central de inform=E1tica         |
   |       Universidad de M=E1laga - Espa=F1a         |
   #----------------------------------------------#
   #      Solo se que cada vez se menos :-|       #
   #----------------------------------------------#