Changeset 9384


Ignore:
Timestamp:
Feb 26, 2011, 5:18:58 PM (14 years ago)
Author:
Eric
Message:
  • Add option 0 in $conf_LCAS[0] to avoid problems when no sensitivity is set (ex : at plugin installation)
  • Fix "PHP Notice: Undefined offset: 0" on index page and registration page when no sensitivity is set
  • 1st step for localisation files update
Location:
extensions/LCAS/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/admin/LCAS_admin.php

    r9326 r9384  
    104104        }
    105105        else {
    106           // User is empty
     106          // Username is empty
    107107          array_push($page['errors'], l10n('LCAS_Err_Userlist_Empty_New_Username'));
    108108        }
  • extensions/LCAS/trunk/admin/template/global.tpl

    r9229 r9384  
    7575            </label>
    7676            <br><br>
     77            <label for = "LCAS_id_Option0" id ="LCAS_id_Opt0">
     78              <input type="radio" value="0" {if $LCAS_Option == '0'}checked="checked"{/if} id="LCAS_id_Option0" name="LCAS_Option">
     79              {'LCAS_Option0'|@translate}<br>
     80            </label>
    7781            <label for = "LCAS_id_Option1" id ="LCAS_id_Opt1">
    7882              <input type="radio" value="1" {if $LCAS_Option == '1'}checked="checked"{/if} id="LCAS_id_Option1" name="LCAS_Option">
     
    8892            </label>
    8993            {* <!-- Shall be implemented later
    90             <label for = "LCAS_id_Option0" id ="LCAS_id_Opt0">
    91               <input type="radio" value="0" {if $LCAS_Option == '0'}checked="checked"{/if} id="LCAS_id_Option0" name="LCAS_Option">
    92               {'LCAS_Option0'|@translate}<br>{if $Personalized_not_allowed}{'Personalized not allowed explanation'|@translate}{/if}<br>
     94            <label for = "LCAS_id_Option4" id ="LCAS_id_Opt4">
     95              <input type="radio" value="4" {if $LCAS_Option == '4'}checked="checked"{/if} id="LCAS_id_Option4" name="LCAS_Option">
     96              {'LCAS_Option4'|@translate}<br>{if $Personalized_not_allowed}{'Personalized not allowed explanation'|@translate}{/if}<br>
    9397            </label>
    9498            --> *}
  • extensions/LCAS/trunk/language/en_UK/plugin.lang.php

    r9232 r9384  
    1111
    1212$lang['LCAS option'] = 'LCAS option:';
     13$lang['LCAS_Option0'] = 'No insensitivity (Piwigo\'s standard function)';
     14$lang['LCAS_Option1'] = 'Case insensitivity';
     15$lang['LCAS_Option2'] = 'Accent insensitivity';
     16$lang['LCAS_Option3'] = 'Casse and accent insensitivity';
     17$lang['LCAS_Option4'] = 'Personal table of contents';
     18$lang['Personalized not allowed explanation'] = ' (you must define an array $conf[\'LCAS_replacement_set\'][0] . See <a title = "To be defined">Standard arrays</a>)';
     19$lang['Personalized not allowed tooltip'] = 'No array $conf[\'LCAS_replacement_set\'][0] is defined';
    1320
    1421$lang['LCAS_Accent_Sensitive'] = 'Accents insensivity:';
  • extensions/LCAS/trunk/language/fr_FR/messages.lang.php

    r9232 r9384  
    4242// Tooltips in index page
    4343// Info-bulles sur la page index
     44$lang['LCAS_tooltip_username_index'][0] = 'Le nom d\'utilisateur est sensible à la casse et aux accents (majuscules/minuscules) et aux accents (E ≠ e ≠ É ≠ é)';
     45
    4446$lang['LCAS_tooltip_username_index'][1] = 'Le nom d\'utilisateur est insensible à la casse (majuscules/minuscules&nbsp;; E = e ≠ É = é)';
    4547
     
    5355// Tooltips in register page
    5456// Info-bulles sur la page register
     57$lang['LCAS_tooltip_username_register'][0] = 'Le nom d\'utilisateur est sensible à la casse et aux accents (majuscules/minuscules) et aux accents (E ≠ e ≠ É ≠ é)';
     58
    5559$lang['LCAS_tooltip_username_register'][1] = 'Le nom d\'utilisateur est insensible à la casse (majuscules/minuscules&nbsp;; E = e ≠ É = é)';
    5660
  • extensions/LCAS/trunk/language/fr_FR/plugin.lang.php

    r9232 r9384  
    1111
    1212$lang['LCAS option'] = 'Option LCAS :';
     13$lang['LCAS_Option0'] = 'Pas d\'insensibilité (fonctionnement normal de Piwigo)';
    1314$lang['LCAS_Option1'] = 'Insensibilité à la casse';
    1415$lang['LCAS_Option2'] = 'Insensibilité aux accents';
    1516$lang['LCAS_Option3'] = 'Insensibilité à la casse et aux accents';
    16 $lang['LCAS_Option0'] = 'Tableau personnel';
     17$lang['LCAS_Option4'] = 'Tableau personnel';
    1718$lang['Personalized not allowed explanation'] = ' (vous devez définir un tableau $conf[\'LCAS_replacement_set\'][0] . Voir <a title = "To be defined">les tableaux d\'origine</a>)';
    1819$lang['Personalized not allowed tooltip'] = 'Pas de tableau $conf[\'LCAS_replacement_set\'][0] de défini';
  • extensions/LCAS/trunk/maintain.inc.php

    r9326 r9384  
    1818        global $conf;
    1919       
    20   $default = array('','false','Example customized content of the notification email');
     20  $default = array('0','false','Example customized content of the notification email');
    2121
    2222  $q = '
Note: See TracChangeset for help on using the changeset viewer.