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/template/yoga/search.tpl

    r3283 r5021  
    2323    <ul class="categoryActions">
    2424      <li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" rel="nofollow"><img src="{$ROOT_URL}{$themeconf.icon_dir}/help.png" class="button" alt="(?)"></a></li>
    25       <li><a href="{$U_HOME}" title="{'return to homepage'|@translate}" rel="home"><img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" class="button" alt="{'home'|@translate}"></a></li>
     25      <li><a href="{$U_HOME}" title="{'Home'|@translate}" rel="Home"><img src="{$ROOT_URL}{$themeconf.icon_dir}/Home.png" class="button" alt="{'Home'|@translate}"></a></li>
    2626    </ul>
    2727    <h2>{'Search'|@translate}</h2>
     
    4141<fieldset>
    4242  <legend>{'Filter'|@translate}</legend>
    43   <label>{'search_keywords'|@translate}
     43  <label>{'Search for words'|@translate}
    4444    <input type="text" style="width: 300px" name="search_allwords" size="30">
    4545  </label>
    4646  <ul>
    4747    <li><label>
    48       <input type="radio" name="mode" value="AND" checked="checked">{'search_mode_and'|@translate}
     48      <input type="radio" name="mode" value="AND" checked="checked">{'Search for all terms '|@translate}
    4949    </label></li>
    5050    <li><label>
    51       <input type="radio" name="mode" value="OR">{'search_mode_or'|@translate}
     51      <input type="radio" name="mode" value="OR">{'Search for any terms'|@translate}
    5252    </label></li>
    5353  </ul>
    54   <label>{'search_author'|@translate}
     54  <label>{'Search for Author'|@translate}
    5555    <input type="text" style="width: 300px" name="search_author" size="30">
    5656  </label>
     
    6767
    6868<fieldset>
    69   <legend>{'search_date'|@translate}</legend>
     69  <legend>{'Search by Date'|@translate}</legend>
    7070  <ul>
    71     <li><label>{'search_date_type'|@translate}</label></li>
     71    <li><label>{'Kind of date'|@translate}</label></li>
    7272    <li><label>
    7373      <input type="radio" name="date_type" value="date_creation" checked="checked">{'Creation date'|@translate}
     
    7878  </ul>
    7979  <ul>
    80     <li><label>{'search_date_from'|@translate}</label></li>
     80    <li><label>{'Date'|@translate}</label></li>
    8181    <li>
    8282      <select id="start_day" name="start_day">
     
    9797  </ul>
    9898  <ul>
    99     <li><label>{'search_date_to'|@translate}</label></li>
     99    <li><label>{'End-Date'|@translate}</label></li>
    100100    <li>
    101101      <select id="end_day" name="end_day">
     
    118118
    119119<fieldset>
    120   <legend>{'search_options'|@translate}</legend>
    121   <label>{'search_categories'|@translate}
     120  <legend>{'Search Options'|@translate}</legend>
     121  <label>{'Search in Categories'|@translate}
    122122    <select class="categoryList" name="cat[]" multiple="multiple" >
    123123      {html_options options=$category_options selected=$category_options_selected}
     
    125125  </label>
    126126  <ul>
    127     <li><label>{'search_subcats_included'|@translate}</label></li>
     127    <li><label>{'Search in subcategories'|@translate}</label></li>
    128128    <li><label>
    129129      <input type="radio" name="subcats-included" value="1" checked="checked">{'Yes'|@translate}
Note: See TracChangeset for help on using the changeset viewer.