Changeset 8239 for extensions/LCAS
- Timestamp:
- Dec 22, 2010, 11:02:57 PM (13 years ago)
- Location:
- extensions/LCAS/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/LCAS/trunk/language/en_UK/plugin.lang.php
r8181 r8239 1 1 <?php 2 2 3 // to do: to translate 4 5 global $lang,$conf; 6 7 $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']); 3 global $lang; 8 4 9 5 $lang['LCAS_Tab_Global'] = 'Configuration'; 10 6 $lang['LCAS_Title_Tab'] = 'Login Case Accents Sensitivity'; 11 $lang['LCAS_SubTitle_Global'] = ' Configuration du plugin';7 $lang['LCAS_SubTitle_Global'] = 'Plugin configuration'; 12 8 13 $lang['LCAS_Title_Global'] = ' Paramétrage de la sensibilité';9 $lang['LCAS_Title_Global'] = 'Setting the sensitivity'; 14 10 15 11 16 $lang['LCAS_Case_Sensitive'] = ' Sensibilité à la casse:';17 $lang['LCAS_Case_Sensitive_false'] = ' Activer (valeur par défaut)';18 $lang['LCAS_Case_Sensitive_true'] = ' D ésactiver';12 $lang['LCAS_Case_Sensitive'] = 'Case insensitivity :'; 13 $lang['LCAS_Case_Sensitive_false'] = ' Enable (default value)'; 14 $lang['LCAS_Case_Sensitive_true'] = ' Disable'; 19 15 20 $lang['LCAS_Accent_Sensitive'] = ' Sensibilité aux accents:';21 $lang['LCAS_Accent_Sensitive_false'] = ' Activer (valeur par défaut)';22 $lang['LCAS_Accent_Sensitive_true'] = ' D ésactiver';16 $lang['LCAS_Accent_Sensitive'] = 'Accents insensivity :'; 17 $lang['LCAS_Accent_Sensitive_false'] = ' Enable (default value)'; 18 $lang['LCAS_Accent_Sensitive_true'] = ' Disable'; 23 19 24 $lang['LCAS_currentPWGConfigHeader'] = ' Paramètre actuel de Piwigo';20 $lang['LCAS_currentPWGConfigHeader'] = 'Current Piwigo\'s setting'; 25 21 26 $lang['LCAS_Support_txt'] = ' Le support officiel sur ce plugin se fait exclusivement sur ces fils du forum Piwigo:<br>27 <a href="http://fr.piwigo.org/forum/viewtopic.php?pid=158565" onclick="window.open(this.href);return false;">F orum français- http://fr.piwigo.org/forum/viewtopic.php?id=ToDefine</a>22 $lang['LCAS_Support_txt'] = 'The official support on this plugin is only on these Piwigo\'s forum topics:<br> 23 <a href="http://fr.piwigo.org/forum/viewtopic.php?pid=158565" onclick="window.open(this.href);return false;">French forum - http://fr.piwigo.org/forum/viewtopic.php?id=ToDefine</a> 28 24 <br>ou<br> 29 <a href="http://fr.piwigo.org/forum/viewtopic.php?pid=158565" onclick="window.open(this.href);return false;"> Forum anglais- http://piwigo.org/forum/viewtopic.php?id=ToDefine</a><br><br>30 Egalement disponible, le bugtracker du projet: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>';25 <a href="http://fr.piwigo.org/forum/viewtopic.php?pid=158565" onclick="window.open(this.href);return false;">English forum - http://piwigo.org/forum/viewtopic.php?id=ToDefine</a><br><br> 26 Also available, the project\'s bugtracker: <a href="http://piwigo.org/bugs/" onclick="window.open(this.href);return false;">http://piwigo.org/bugs/</a>'; 31 27 32 28 33 29 34 $lang['LCAS_Tab_UserList'] = ' Validation des utilisateurs';35 $lang['LCAS_SubTitle_UserList'] = ' Vérification des utilisateurs';30 $lang['LCAS_Tab_UserList'] = 'Users validation'; 31 $lang['LCAS_SubTitle_UserList'] = 'Users check'; 36 32 37 $lang['LCAS_UserList_Title'] = 'U tilisateurs nécessitant des modifications';33 $lang['LCAS_UserList_Title'] = 'Users requiring changes'; 38 34 39 35 40 $lang['LCAS_Err_Userlist_Settings'] = ' Cette page n\'est accessible que si un paramétrage pour au moins une des sensibilités est activé.';36 $lang['LCAS_Err_Userlist_Settings'] = 'This page is available only if at least one sensitivity option is enabled.'; 41 37 42 $lang['LCAS_Info_userlist_username_renamed'] = ' Le nom de l\'utilisateur a été mis à jour.';43 $lang['LCAS_Err_Userlist_Empty_New_Username'] = ' Le nom de l\'utilisateur ne peut être vide.';38 $lang['LCAS_Info_userlist_username_renamed'] = 'The user name has been updated.'; 39 $lang['LCAS_Err_Userlist_Empty_New_Username'] = 'The user name can\'t be blank.'; 44 40 45 $lang['LCAS_Compare_value_h'] = 'Compar aison';46 $lang['LCAS_Update_h'] = ' Modifier';47 $lang['LCAS_Notify_h'] = 'Notif ier';41 $lang['LCAS_Compare_value_h'] = 'Comparison'; 42 $lang['LCAS_Update_h'] = 'Change'; 43 $lang['LCAS_Notify_h'] = 'Notify'; 48 44 49 $lang['LCAS_Update_User'] = ' Mettre à jour';50 $lang['LCAS_Send_Email'] = 'E nvoyer email';45 $lang['LCAS_Update_User'] = 'Update'; 46 $lang['LCAS_Send_Email'] = 'Email sent'; 51 47 52 $lang['LCAS_No_User'] = ' Aucun problème détecté pour les utilisateurs actuels';48 $lang['LCAS_No_User'] = 'No problems found for current users'; 53 49 54 50 55 $lang['LCAS_save_config'] = ' Paramètres enregistrés<br/>Veuillez vérifier les éventuels utilisateurs problématiques sur le second onglet.';51 $lang['LCAS_save_config'] = 'Settings saved<br/>Please check any duplicate users in the following table.'; 56 52 57 $lang['submit'] = 'Sa uvegarder les paramètres';53 $lang['submit'] = 'Save settings'; 58 54 55 $lang['LCAS_accent_error'] = '<br>Usernames are accent insensitive too (e = é = è = ê)!'; 59 56 ?> -
extensions/LCAS/trunk/language/fr_FR/plugin.lang.php
r8182 r8239 1 1 <?php 2 2 3 global $lang,$conf; 4 5 $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']); 3 global $lang; 6 4 7 5 $lang['LCAS_Tab_Global'] = 'Configuration'; … … 36 34 37 35 38 $lang['LCAS_Err_Userlist_Settings'] = 'Cette page n\'est accessible que si un paramétrage pour au moins une des sensibilités est activé.';36 $lang['LCAS_Err_Userlist_Settings'] = 'Cette page n\'est accessible que si au moins une option de sensibilité est activée.'; 39 37 40 38 $lang['LCAS_Info_userlist_username_renamed'] = 'Le nom de l\'utilisateur a été mis à jour.'; … … 51 49 52 50 53 $lang['LCAS_save_config'] = 'Paramètres enregistrés<br/>Veuillez vérifier les éventuels utilisateurs problématiques dans le second paragraphe.';51 $lang['LCAS_save_config'] = 'Paramètres enregistrés<br/>Veuillez vérifier les éventuels utilisateurs problématiques dans le tableau ci-dessous'; 54 52 55 53 $lang['submit'] = 'Sauvegarder les paramètres'; 56 54 57 55 $lang['LCAS_accent_error'] = '<br>Le nom d\'utilisateur est également insensible aux accents (e = é = è = ê)!'; 58 56 ?> -
extensions/LCAS/trunk/main.inc.php
r8206 r8239 47 47 } 48 48 49 // Check users identification 49 50 add_event_handler('init', 'LCAS_InitPage'); 50 51 … … 60 61 if (isset($_POST['username'])) 61 62 { 62 /* User non case sensitive*/63 /* Username is case insensitive only */ 63 64 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'false') 64 65 { … … 67 68 } 68 69 69 /* User non accent sensitive*/70 /* Username is accent insensitive only */ 70 71 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 71 72 { … … 74 75 } 75 76 76 / * User non accentsensitive */77 if (isset($conf_LCAS[ 1]) and $conf_LCAS[1] == 'true' and isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true')77 //* Username is accent and case insensitive */ 78 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 78 79 { 79 80 $new_username = LCAS_SearchCaseUsername($_POST['username'],3); … … 83 84 } 84 85 } 86 87 // Check users registration 88 add_event_handler('register_user_check', 'LCAS_RegistrationCheck'); 89 90 function LCAS_RegistrationCheck($errors) 91 { 92 global $conf, $lang; 93 94 $conf_LCAS= unserialize($conf['LoginCaseAccentsSensitivity']); 95 96 load_language('plugin.lang', LCAS_PATH); 97 98 /* Username is accent and case insensitive */ 99 if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and $conf['insensitive_case_logon'] == true and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 100 { 101 $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'],3); 102 } 103 /* Username is accent insensitive only */ 104 elseif (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false' and $conf['insensitive_case_logon'] == false and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true') 105 { 106 $NewPostLogin = LCAS_SearchCaseUsername($_POST['login'],2); 107 } 108 /* Username is case insensitive only is already controled by Piwigo with $conf['insensitive_case_logon'] == true */ 109 110 if (isset($NewPostLogin) and get_userid($NewPostLogin)) 111 { 112 $lang['reg_err_login5'] = $lang['reg_err_login5'].l10n('LCAS_accent_error'); 113 array_push($errors, $lang['reg_err_login5']); 114 } 115 116 return $errors; 117 } 85 118 ?>
Note: See TracChangeset
for help on using the changeset viewer.