Ignore:
Timestamp:
Mar 2, 2010, 3:54:22 PM (14 years ago)
Author:
nikrou
Message:

Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback
Use native language (english) instead of key for translation
Keep directory en_UK for english customization
Need some refactoring for plurals

Todo : managing plugins in the same way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/notification_by_mail.tpl

    r3283 r5021  
    33
    44<div class="titrePage">
    5   <h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2>
     5  <h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2>
    66</div>
    77
     
    1010  <fieldset>
    1111    <div class="infos">
    12       <input class="submit" type="submit" value="{'nbm_repost_submit'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}>
     12      <input class="submit" type="submit" value="{'Continue processing treatment'|@translate}" name="{$REPOST_SUBMIT_NAME}" {$TAG_INPUT_ENABLED}>
    1313    </div>
    1414  </fieldset>
     
    1717  {if isset($param)}
    1818  <fieldset>
    19     <legend>{'nbm_title_param'|@translate}</legend>
     19    <legend>{'Parameters'|@translate}</legend>
    2020    <table>
    2121      <tr>
    22         <td><label>{'nbm_send_html_mail'|@translate}</label></td>
     22        <td><label>{'Send mail on HTML format'|@translate}</label></td>
    2323        <td>
    2424          <label><input type="radio" name="nbm_send_html_mail" value="true"  {if $param.SEND_HTML_MAIL}checked="checked"{/if}>{'Yes'|@translate}</label>
     
    2828      <tr>
    2929        <td>
    30           <label for="send_mail_as">{'nbm_send_mail_as'|@translate}</label>
    31           <br><i><small>{'nbm_info_send_mail_as'|@translate}</small></i>
     30          <label for="send_mail_as">{'Send mail as'|@translate}</label>
     31          <br><i><small>{'With blank value, gallery title will be used'|@translate}</small></i>
    3232        </td>
    3333        <td><input type="text" maxlength="35" size="35" name="nbm_send_mail_as" id="send_mail_as" value="{$param.SEND_MAIL_AS}"></td>
    3434      </tr>
    3535      <tr>
    36         <td><label>{'nbm_send_detailed_content'|@translate}</label></td>
     36        <td><label>{'Add detailed content'|@translate}</label></td>
    3737        <td>
    3838          <label><input type="radio" name="nbm_send_detailed_content" value="true"  {if $param.SEND_DETAILED_CONTENT}checked="checked"{/if}>{'Yes'|@translate}</label>
     
    4141      </tr>
    4242     <tr>
    43         <td><label for="complementary_mail_content">{'nbm_complementary_mail_content'|@translate}</label></td>
     43        <td><label for="complementary_mail_content">{'Complementary mail content'|@translate}</label></td>
    4444        <td><textarea cols="50" rows="5" name="nbm_complementary_mail_content" id="complementary_mail_content">{$param.COMPLEMENTARY_MAIL_CONTENT}</textarea></td>
    4545      </tr>
    4646      <tr>
    4747        <td>
    48           <label>{'nbm_send_recent_post_dates'|@translate}</label>
    49           <br><i><small>{'nbm_info_send_recent_post_dates'|@translate}</small></i>
     48          <label>{'Include display of recent pictures group by dates'|@translate}</label>
     49          <br><i><small>{'Available only with HTML format'|@translate}</small></i>
    5050        </td>
    5151        <td>
     
    6565  {if isset($subscribe)}
    6666  <fieldset>
    67     <legend>{'nbm_title_subscribe'|@translate}</legend>
    68     <p><i>{'nbm_warning_subscribe_unsubscribe'|@translate}</i></p>
     67    <legend>{'Subscribe/unsubscribe users'|@translate}</legend>
     68    <p><i>{'Warning: subscribing or unsubscribing will send mails to users'|@translate}</i></p>
    6969    {$DOUBLE_SELECT}
    7070  </fieldset>
     
    7373  {if isset($send)}
    7474    {if empty($send.users)}
    75     <p>{'nbm_no_user_available_to_send_L1'|@translate}</p>
     75    <p>{'There is no available subscribers to mail.'|@translate}</p>
    7676    <p>
    77     {'nbm_no_user_available_to_send_L2'|@translate}<br>
    78     {'nbm_no_user_available_to_send_L3'|@translate}
     77    {'Subscribers could be listed (available) only if there is new elements to notify.'|@translate}<br>
     78    {'Anyway only webmasters can see this tab and never administrators.'|@translate}
    7979    </p>
    8080    {else}
    8181    <fieldset>
    82       <legend>{'nbm_title_send'|@translate}</legend>
     82      <legend>{'Select recipients'|@translate}</legend>
    8383      <table class="table2">
    8484        <tr class="throw">
    85           <th>{'nbm_col_user'|@translate}</th>
    86           <th>{'nbm_col_mail'|@translate}</th>
    87           <th>{'nbm_col_last_send'|@translate}</th>
    88           <th>{'nbm_col_check_user_send_mail'|@translate}</th>
     85          <th>{'User'|@translate}</th>
     86          <th>{'email'|@translate}</th>
     87          <th>{'Last send'|@translate}</th>
     88          <th>{'To send ?'|@translate}</th>
    8989        </tr>
    9090        {foreach from=$send.users item=u name=user_loop}
     
    104104
    105105    <fieldset>
    106       <legend>{'nbm_send_options'|@translate}</legend>
     106      <legend>{'Options'|@translate}</legend>
    107107      <table>
    108108       <tr>
    109           <td><label for="send_customize_mail_content">{'nbm_send_complementary_mail_content'|@translate}</label></td>
     109          <td><label for="send_customize_mail_content">{'Complementary mail content'|@translate}</label></td>
    110110          <td><textarea cols="50" rows="5" name="send_customize_mail_content" id="send_customize_mail_content">{$send.CUSTOMIZE_MAIL_CONTENT}</textarea></td>
    111111        </tr>
     
    114114
    115115    <p>
    116       <input class="submit" type="submit" value="{'nbm_send_submit'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}>
     116      <input class="submit" type="submit" value="{'Send'|@translate}" name="send_submit" {$TAG_INPUT_ENABLED}>
    117117    </p>
    118118    {/if}
Note: See TracChangeset for help on using the changeset viewer.