Changeset 622


Ignore:
Timestamp:
Nov 25, 2004, 5:44:41 PM (19 years ago)
Author:
gweltas
Message:

Categories option management update.

  • Rewrite of the tpl file (no more table in it)
  • Deletion of duplicate entry in language files
  • French version
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r620 r622  
    200200  'L_AUTH'=>$lang['permissions'],
    201201  'L_UPDATE'=>$lang['update'],
    202   'L_CAT_UPLOAD'=>$lang['cat_options_upload_menu'],
    203   'L_CAT_COMMENTS'=>$lang['cat_options_comments_menu'],
    204   'L_CAT_VISIBLE'=>$lang['cat_options_visible_menu'],
    205   'L_CAT_STATUS'=>$lang['cat_options_status_menu'],
     202  'L_CAT_UPLOAD'=>$lang['upload'],
     203  'L_CAT_COMMENTS'=>$lang['comments'],
     204  'L_CAT_VISIBLE'=>$lang['lock'],
     205  'L_CAT_STATUS'=>$lang['permissions'],
    206206
    207207  'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ),
  • trunk/admin/cat_list.php

    r608 r622  
    283283  'L_STORAGE'=>$lang['storage'],
    284284  'L_NB_IMG'=>$lang['pictures'],
    285   'L_MOVE_UP'=>$lang['cat_up'],
    286   'L_MOVE_DOWN'=>$lang['cat_down'],
     285  'L_MOVE_UP'=>$lang['up'],
     286  'L_MOVE_DOWN'=>$lang['down'],
    287287  'L_EDIT'=>$lang['edit'],
    288288  'L_INFO_IMG'=>$lang['cat_image_info'],
  • trunk/admin/cat_modify.php

    r607 r622  
    152152  'L_ACCESS_FREE'=>$lang['free'],
    153153  'L_ACCESS_RESTRICTED'=>$lang['restricted'],
    154   'L_EDIT_LOCK'=>$lang['cat_lock'],
     154  'L_EDIT_LOCK'=>$lang['lock'],
    155155  'L_EDIT_LOCK_INFO'=>$lang['cat_lock_info'],
    156156  'L_YES'=>$lang['yes'],
  • trunk/admin/cat_options.php

    r614 r622  
    183183    'L_RESET'=>$lang['reset'],
    184184   
    185     'U_UPLOAD'=>add_session_id($base_url.'upload'),
    186     'U_VISIBLE'=>add_session_id($base_url.'visible'),
    187     'U_COMMENTS'=>add_session_id($base_url.'comments'),
    188     'U_STATUS'=>add_session_id($base_url.'status'),
    189    
    190185    'F_ACTION'=>add_session_id($base_url.$page['section'])
    191186   )
     
    228223    $template->assign_vars(
    229224      array(
    230         'L_TITLE' => $lang['cat_options_upload_title'],
    231         'L_CAT_OPTIONS_TRUE' => $lang['cat_options_upload_true'],
    232         'L_CAT_OPTIONS_FALSE' => $lang['cat_options_upload_false'],
    233         'L_CAT_OPTIONS_INFO' => $lang['cat_options_upload_info'],
     225        'L_CAT_TITLE' => $lang['cat_upload_title'],
     226        'L_CAT_OPTIONS_TRUE' => $lang['authorized'],
     227        'L_CAT_OPTIONS_FALSE' => $lang['forbidden'],
     228        'L_CAT_OPTIONS_INFO' => $lang['cat_upload_info'],
    234229        )
    235230      );
     
    251246    $template->assign_vars(
    252247      array(
    253         'L_TITLE' => $lang['cat_options_comments_title'],
    254         'L_CAT_OPTIONS_TRUE' => $lang['cat_options_comments_true'],
    255         'L_CAT_OPTIONS_FALSE' => $lang['cat_options_comments_false'],
    256         'L_CAT_OPTIONS_INFO' => $lang['cat_options_comments_info'],
     248        'L_CAT_TITLE' => $lang['cat_comments_title'],
     249        'L_CAT_OPTIONS_TRUE' => $lang['authorized'],
     250        'L_CAT_OPTIONS_FALSE' => $lang['forbidden'],
     251        'L_CAT_OPTIONS_INFO' => $lang['cat_comments_info'],
    257252        )
    258253      );
     
    274269    $template->assign_vars(
    275270      array(
    276         'L_TITLE' => $lang['cat_options_visible_title'],
    277         'L_CAT_OPTIONS_TRUE' => $lang['cat_options_visible_true'],
    278         'L_CAT_OPTIONS_FALSE' => $lang['cat_options_visible_false'],
    279         'L_CAT_OPTIONS_INFO' => $lang['cat_options_visible_info'],
     271        'L_CAT_TITLE' => $lang['cat_lock_title'],
     272        'L_CAT_OPTIONS_TRUE' => $lang['lock'],
     273        'L_CAT_OPTIONS_FALSE' => $lang['unlock'],
     274        'L_CAT_OPTIONS_INFO' => $lang['cat_lock_info'],
    280275        )
    281276      );
     
    297292    $template->assign_vars(
    298293      array(
    299         'L_TITLE' => $lang['cat_options_status_title'],
    300         'L_CAT_OPTIONS_TRUE' => $lang['cat_options_status_true'],
    301         'L_CAT_OPTIONS_FALSE' => $lang['cat_options_status_false'],
    302         'L_CAT_OPTIONS_INFO' => $lang['cat_options_status_info'],
     294        'L_CAT_TITLE' => $lang['cat_status_title'],
     295        'L_CAT_OPTIONS_TRUE' => $lang['cat_public'],
     296        'L_CAT_OPTIONS_FALSE' => $lang['cat_private'],
     297        'L_CAT_OPTIONS_INFO' => $lang['cat_status_info'],
    303298        )
    304299      );
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r614 r622  
    4646$lang['metadata']='Metadata';
    4747$lang['visitors'] = 'Visitors';
     48$lang['lock'] = 'Lock';
     49$lang['unlock'] = 'Unlock';
     50$lang['up'] = 'Move up';
     51$lang['down'] = 'Move down';
    4852
    4953// Specific words
     
    7882
    7983// Categories
    80 $lang['cat_up'] = 'Move up';
    81 $lang['cat_down'] = 'Move down';
    8284$lang['cat_add'] = 'Add a virtual category';
    8385$lang['cat_virtual'] = 'Virtual category';
     
    8890$lang['editcat_confirm'] = 'Category informations updated successfully.';
    8991$lang['editcat_perm'] = 'To set permissions for this category, click';
    90 $lang['cat_upload'] = 'Select uploadable categories';
    91 $lang['cat_upload_info'] = 'Only non virtual categories are shown.';
    92 $lang['cat_lock'] = 'Lock';
    93 $lang['cat_lock_info'] = 'This category will temporary been disabled for maintenance.';
    9492$lang['cat_access_info'] = 'Permission management.';
    9593$lang['cat_virtual_added'] = 'Virtual category added';
    9694$lang['cat_virtual_deleted'] = 'Virtual category deleted';
     95$lang['cat_upload_title'] = 'Select uploadable categories';
     96$lang['cat_upload_info'] = 'Only non virtual and non remote categories are shown.';
     97$lang['cat_lock_title'] = 'Lock categories';
     98$lang['cat_lock_info'] = 'Selected categories will temporary been disabled for maintenance.';
     99$lang['cat_comments_title'] = 'Authorize users to add comments on selected categories';
     100$lang['cat_comments_info'] = 'By inheritance, an element is commentable if it belongs at least to one commentable category.';
     101$lang['cat_status_title'] = 'Manage authorizations for selected categories';
     102$lang['cat_status_info'] = 'Selected categories are private : you will need to authorize users and/or groups to access to them.
     103<br />If you make a category private, all its child categories becomes private.
     104<br />It you make a category public, all its parent categories becomes public';
    97105
    98106// Titles
     
    325333$lang['cat_list_virtual_category_added'] = 'virtual category added';
    326334$lang['cat_list_virtual_category_deleted'] = 'virtual category deleted';
    327 
    328 $lang['cat_options_menu'] = 'Options';
    329 $lang['cat_options_upload_menu'] = 'Upload';
    330 $lang['cat_options_upload_title'] = 'upload authorization settings for categories';
    331 $lang['cat_options_visible_menu'] = 'Lock';
    332 $lang['cat_options_visible_title'] = 'temporary lock categories';
    333 $lang['cat_options_comments_menu'] = 'Comments';
    334 $lang['cat_options_comments_title'] = 'authorize comments for categories';
    335 $lang['cat_options_status_menu'] = 'Access';
    336 $lang['cat_options_status_title'] = 'make your category private or public';
    337 $lang['cat_options_upload_true'] = 'upload authorized';
    338 $lang['cat_options_upload_false'] = 'upload forbidden';
    339 $lang['cat_options_upload_info'] = '(multi)select categories to make them uploadable or not. Upload is not applicable to virtual categories and to categories from a remote site.';
    340 $lang['cat_options_comments_true'] = 'comments authorized';
    341 $lang['cat_options_comments_false'] = 'comments forbidden';
    342 $lang['cat_options_comments_info'] = '(multi)select categories to make them commentable or not. By inheritance, an element is commentable if it belongs at least to one commentable category.';
    343 $lang['cat_options_visible_true'] = 'unlocked';
    344 $lang['cat_options_visible_false'] = 'locked';
    345 $lang['cat_options_visible_info'] = '(multi)select categories to lock or unlock them. If you lock category,  all its child categories becomes locked. It you unlock a category, all its parent categories becomes unlocked';
    346 $lang['cat_options_status_true'] = 'public';
    347 $lang['cat_options_status_false'] = 'private';
    348 $lang['cat_options_status_info'] = '(multi)select categories to make them public or private. If you make a category private, all its child categories becomes private. It you make a category public, all its parent categories becomes public';
    349335?>
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r608 r622  
    4646$lang['metadata']='Métadonnées';
    4747$lang['visitors'] = 'Visiteurs';
     48$lang['storage'] = 'Répertoire';
     49$lang['lock'] = 'Verrouiller';
     50$lang['unlock'] = 'Déverrouiller';
     51$lang['up'] = 'Monter';
     52$lang['down'] = 'Descendre';
    4853
    4954// Specific words
     
    7883
    7984// Category words
    80 $lang['storage'] = 'Répertoire';
    81 $lang['cat_up'] = 'Monter';
    82 $lang['cat_down'] = 'Descendre';
    8385$lang['cat_add'] = 'Ajouter une catégorie virtuelle';
    8486$lang['cat_virtual'] = 'Catégorie virtuelle';
     
    8991$lang['editcat_confirm'] = 'Les informations associées à cette catégorie ont été mises à jour.';
    9092$lang['editcat_perm'] = 'Pour accéder aux permissions associées, cliquez';
    91 $lang['cat_upload'] = 'Sélectionner les catégories pour lesquelles l\'ajout d\'image est autorisé';
    92 $lang['cat_upload_info'] = 'Seules les catégories non virtuelles sont repertoriées.';
    93 $lang['cat_lock'] = 'Verrouiller';
    94 $lang['cat_lock_info'] = 'Cela rendra la catégorie temporairement invisible pour les utilisateurs (maintenance)';
    9593$lang['cat_access_info'] = 'Permet de gérer l\'accès à cette catégorie.';
    9694$lang['cat_virtual_added'] = 'Catégorie virtuelle créée';
    9795$lang['cat_virtual_deleted'] = 'Catégorie virtuelle détruite';
    98 $lang['cat_options_menu'] = 'Options';
    99 $lang['cat_options_menu_upload'] = 'upload';
    100 $lang['cat_options_menu_visible'] = 'lock';
    101 $lang['cat_options_menu_comments'] = 'comments';
    102 $lang['cat_options_menu_status'] = 'access';
    103 $lang['cat_options_upload_true'] = 'authorize upload';
    104 $lang['cat_options_upload_false'] = 'forbid upload';
    105 $lang['cat_options_upload_info'] = '(multi)select categories to make them uploadable or not. Upload is not applicable to virtual categories and to categories from a remote site.';
    106 $lang['cat_options_comments_true'] = 'authorize comments';
    107 $lang['cat_options_comments_false'] = 'forbid comments';
    108 $lang['cat_options_comments_info'] = '(multi)select categories to make them commentable or not. By inheritance, an element is commentable if it belongs at least to one commentable category.';
    109 $lang['cat_options_visible_true'] = 'unlock';
    110 $lang['cat_options_visible_false'] = 'lock temporary';
    111 $lang['cat_options_visible_info'] = '(multi)select categories to lock or unlock them. If you lock category,  all its child categories becomes locked. It you unlock a category, all its parent categories becomes unlocked';
    112 $lang['cat_options_status_true'] = 'public';
    113 $lang['cat_options_status_false'] = 'private';
    114 $lang['cat_options_status_info'] = '(multi)select categories to make them public or private. If you make a category private, all its child categories becomes private. It you make a category public, all its parent categories becomes public';
     96$lang['cat_upload_title'] = 'Sélectionner les catégories pour lesquelles l\'ajout d\'image est autorisé';
     97$lang['cat_upload_info'] = 'Seules les catégories non virtuelles et non distantes sont repertoriées.';
     98$lang['cat_lock_title'] = 'Verrouiller les catégories';
     99$lang['cat_lock_info'] = 'Cela rendra la catégorie temporairement invisible pour les utilisateurs (maintenance)';
     100$lang['cat_comments_title'] = 'Autoriser les utilisateurs à poster des commentaires';
     101$lang['cat_comments_info'] = 'Par héritage, il est possible de poster des commentaires dans une sous-catégorie si cela est autorisé pour au moins une catégorie mère.';
     102$lang['cat_status_title'] = 'Gestion des autorisations';
     103$lang['cat_status_info'] = 'Les catégories sélectionnées sont privées : vous devrez permettre à vos utilisateurs et / ou groupes d\'y accéder.
     104<br />Si une catégorie est déclarée privée, alors toutes ses sous catégories deviennent privées.
     105<br />Si une catégorie est déclarée publique, alors toutes les catégories mères deviennent publiques.';
    115106
    116107//Titles
     
    130121$lang['title_waiting'] = 'Images en attente de validation';
    131122$lang['title_upload'] = 'Sélectionner les catégories pour lesquelles l\'ajout d\'image est autorisé';
     123$lang['title_cat_options'] = 'Options relatives aux catégories';
    132124
    133125//Error messages
  • trunk/template/default/admin/cat_options.tpl

    r614 r622  
    1 <table width="100%" align="center">
    2   <tr class="admin">
    3     <th colspan="2">{L_TITLE}</th>
    4   </tr>
    5 </table>
    6 
    7 <form action="{F_ACTION}" method="post">
    8 
    9   <table>
    10     <tr>
    11       <td style="text-align:center;">{L_CAT_OPTIONS_TRUE}</td>
    12       <td></td>
    13       <td style="text-align:center;">{L_CAT_OPTIONS_FALSE}</td>
    14     </tr>
    15     <tr>
    16       <td>
    17   <select style="width:300px" multiple="multiple" name="cat_true[]" size="20">
     1<div class="admin">{L_CAT_TITLE}</div>
     2<form name="form1" method="post" action="{F_ACTION}" style="text-align:center;width:800px;">
     3<div style="clear:both;"></div>
     4<div style="height:auto;">
     5  <div style="float:left;padding:10px;width:300px;">
     6  <span class="titreMenu">{L_CAT_OPTIONS_TRUE}</span><br />
     7  <select style="height:auto;width:280px" name="cat_true[]" multiple="multiple" size="10">
    188    <!-- BEGIN category_option_true -->
    199    <option class="{category_option_true.CLASS}" {category_option_true.SELECTED} value="{category_option_true.VALUE}">{category_option_true.OPTION}</option>
    2010    <!-- END category_option_true -->
    2111  </select>
    22       </td>
    23       <td valign="middle">
    24   <input type="submit" value="&rarr;" name="falsify" style="font-size:15px;" class="bouton" />
    25   <br />
    26   <input type="submit" value="&larr;" name="trueify" style="font-size:15px;" class="bouton" />
    27       </td>
    28       <td>
    29   <select style="width:300px" multiple="multiple" name="cat_false[]" size="20">
     12  </div>
     13  <div style="float:left;padding-top:80px;padding-bottom:80px;text-align:center;width:160px;" >
     14    <input type="submit" value="&larr;" name="trueify" style="font-size:15px;" class="bouton" /><br/>
     15    <input type="submit" value="&rarr;" name="falsify" style="font-size:15px;" class="bouton" />
     16  </div>
     17  <div style="float:right;padding:10px;width:300px;">
     18   <span class="titreMenu">{L_CAT_OPTIONS_FALSE}</span><br />
     19  <select style="width:280px" name="cat_false[]" multiple="multiple" size="10">
    3020    <!-- BEGIN category_option_false -->
    3121    <option class="{category_option_false.CLASS}" {category_option_false.SELECTED} value="{category_option_false.VALUE}">{category_option_false.OPTION}</option>
    3222    <!-- END category_option_false -->
    3323  </select>
    34       </td>
    35     </tr>
    36   </table>
     24  </div>
     25</div>
     26<div style="clear:both;"></div>
     27<input type="reset" name="reset" value="{L_RESET}" class="bouton" />
     28</form>
     29<div class="information">{L_CAT_OPTIONS_INFO}</div>
    3730
    38   <p>{L_CAT_OPTIONS_INFO}</p>
    39 
    40   <p style="text-align:center;">
    41     <input type="reset" name="reset" value="{L_RESET}" class="bouton" />
    42   </p>
    43 
    44 </form>
  • trunk/template/default/default.css

    r621 r622  
    5151        font:                   bold 18pt 'Trebuchet MS', Verdana, sans-serif;
    5252        text-decoration:none;
    53         line-height:    120%;
    54 }
     53        line-height:    120%;
     54}
     55
    5556h2 {
    5657        font:                   bold 12pt Arial, Helvetica, sans-serif;
     
    351352
    352353div.information {
    353   text-align:center;
    354   border:2px solid #E0E0E0;
     354  text-align:left;
     355  font-size:14px;
     356  font-weight:bold;
    355357  margin:10px;
    356358  padding:5px;
Note: See TracChangeset for help on using the changeset viewer.