Changeset 24234


Ignore:
Timestamp:
Aug 25, 2013, 12:36:50 PM (11 years ago)
Author:
mistic100
Message:

error with question_mark_in_urls=false, restore full language keys
+ de_DE for icons.lang.php

Location:
extensions/EasyCaptcha
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/EasyCaptcha/admin.php

    r24233 r24234  
    1212if ($loaded['cryptocaptcha'])
    1313{
    14   $page['warnings'][] = l10n('easycaptcha_cryptocaptcha');
     14  $page['warnings'][] = l10n('We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.');
    1515}
    1616
  • extensions/EasyCaptcha/language/en_UK/plugin.lang.php

    r24215 r24234  
    3030$lang['Tic-tac-toe minigame'] = 'Tic-tac-toe minigame';
    3131$lang['Tic-tac-toe options'] = 'Tic-tac-toe options';
    32 $lang['easycaptcha_drag_%s'] = 'To verify you are a human, please place the <b>%s</b> in the most right box bellow.';
    33 $lang['easycaptcha_tictac'] = 'You are player X, click on the right case to complete the line.';
    34 $lang['easycaptcha_javascript_public'] = 'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.';
    35 $lang['easycaptcha_javascript_admin'] = 'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.';
    36 $lang['easycaptcha_cryptocaptcha'] = 'We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.';
     32$lang['To verify you are a human, please place the <b>%s</b> in the most right box bellow.'] = 'To verify you are a human, please place the <b>%s</b> in the most right box bellow.';
     33$lang['You are player X, click on the right case to complete the line.'] = 'You are player X, click on the right case to complete the line.';
     34$lang['You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'] = 'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.';
     35$lang['This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'] = 'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.';
     36$lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.';
    3737?>
  • extensions/EasyCaptcha/language/fr_FR/plugin.lang.php

    r24226 r24234  
    3030$lang['Tic-tac-toe minigame'] = 'Minijeu morpion';
    3131$lang['Tic-tac-toe options'] = 'Options morpion';
    32 $lang['easycaptcha_drag_%s'] = 'Pour vérifier que vous êtez un humain, veuillez placer le <b>%s</b> dans le cadre de droite.';
    33 $lang['easycaptcha_tictac'] = 'Vous êtez le joueur X, cliquez dans la bonne case pour former une ligne complète.';
    34 $lang['easycaptcha_javascript_public'] = 'Vous devez activer JavaScript pour pouvoir ajouter un commentaire, désolé du dérangement.';
    35 $lang['easycaptcha_javascript_admin'] = 'Ce test requiert que JavaScript soit activé sur le navigateur du visteur. Environ 1% des utilisateurs d\'Internet ont JavaScript désactivé.';
    36 $lang['easycaptcha_cryptocaptcha'] = 'Nous avons détecté que Crypto Captcha est activé sur votre galerie. Les deux plugins peuvent fonctionner en même temps, mais ous aucun prétexte il ne doivent être activés sur les mêmes pages.';
     32$lang['To verify you are a human, please place the <b>%s</b> in the most right box bellow.'] = 'Pour vérifier que vous êtez un humain, veuillez placer le <b>%s</b> dans le cadre de droite.';
     33$lang['You are player X, click on the right case to complete the line.'] = 'Vous êtez le joueur X, cliquez dans la bonne case pour former une ligne complète.';
     34$lang['You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'] = 'Vous devez activer JavaScript pour pouvoir ajouter un commentaire, désolé du dérangement.';
     35$lang['This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'] = 'Ce test requiert que JavaScript soit activé sur le navigateur du visteur. Environ 1% des utilisateurs d\'Internet ont JavaScript désactivé.';
     36$lang['We detected that Crypto Captcha plugin is available on your gallery. Both plugins can be used at the same time, but you should not under any circumstances activate both of them on the same page.'] = 'Nous avons détecté que Crypto Captcha est activé sur votre galerie. Les deux plugins peuvent fonctionner en même temps, mais ous aucun prétexte il ne doivent être activés sur les mêmes pages.';
    3737?>
  • extensions/EasyCaptcha/main.inc.php

    r24233 r24234  
    3131else
    3232{
    33   add_event_handler('init', 'easycaptcha_document_init');
    34   add_event_handler('loc_end_section_init', 'easycaptcha_section_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30);
     33  add_event_handler('loc_end_section_init', 'easycaptcha_document_init', EVENT_HANDLER_PRIORITY_NEUTRAL+30);
    3534}
    3635
     
    6766
    6867
    69 // modules : picture comment & register
     68// modules
    7069function easycaptcha_document_init()
    7170{
    72   global $conf, $user;
     71  global $conf, $pwg_loaded_plugins, $page;
    7372
    7473  if (!is_a_guest()) return;
     
    8483    include(EASYCAPTCHA_PATH . 'include/picture.inc.php');
    8584  }
    86 
    87 }
    88 
    89 // modules : album comment & contact & guestbook
    90 function easycaptcha_section_init()
    91 {
    92   global $conf, $pwg_loaded_plugins, $page;
    93 
    94   if (!is_a_guest() || !isset($page['section'])) return;
    95 
    96   if (
    97     script_basename() == 'index' &&
    98     $page['section'] == 'categories' && isset($page['category']) &&
    99     isset($pwg_loaded_plugins['Comments_on_Albums']) &&
    100     $conf['EasyCaptcha']['activate_on']['category']
    101     )
     85  else if (isset($page['section']))
    10286  {
    103     $conf['EasyCaptcha']['template'] = 'comment';
    104     include(EASYCAPTCHA_PATH . 'include/category.inc.php');
    105   }
    106   else if ( $page['section'] == 'contact' && $conf['EasyCaptcha']['activate_on']['contactform'] )
    107   {
    108     $conf['EasyCaptcha']['template'] = 'contactform';
    109     include(EASYCAPTCHA_PATH . 'include/contactform.inc.php');
    110   }
    111   else if ( $page['section'] == 'guestbook' && $conf['EasyCaptcha']['activate_on']['guestbook'] )
    112   {
    113     $conf['EasyCaptcha']['template'] = 'guestbook';
    114     include(EASYCAPTCHA_PATH . 'include/guestbook.inc.php');
     87    if (
     88      script_basename() == 'index' &&
     89      $page['section'] == 'categories' && isset($page['category']) &&
     90      isset($pwg_loaded_plugins['Comments_on_Albums']) &&
     91      $conf['EasyCaptcha']['activate_on']['category']
     92      )
     93    {
     94      $conf['EasyCaptcha']['template'] = 'comment';
     95      include(EASYCAPTCHA_PATH . 'include/category.inc.php');
     96    }
     97    else if ( $page['section'] == 'contact' && $conf['EasyCaptcha']['activate_on']['contactform'] )
     98    {
     99      $conf['EasyCaptcha']['template'] = 'contactform';
     100      include(EASYCAPTCHA_PATH . 'include/contactform.inc.php');
     101    }
     102    else if ( $page['section'] == 'guestbook' && $conf['EasyCaptcha']['activate_on']['guestbook'] )
     103    {
     104      $conf['EasyCaptcha']['template'] = 'guestbook';
     105      include(EASYCAPTCHA_PATH . 'include/guestbook.inc.php');
     106    }
    115107  }
    116108}
  • extensions/EasyCaptcha/template/admin.tpl

    r24226 r24234  
    183183
    184184    <div class="warnings my-warnings">
    185       <ul><li>{'easycaptcha_javascript_admin'|translate}</li></ul>
     185      <ul><li>{'This challenge requires that JavaScript is enabled on the visitor browser. About 1% of Internet users have Javascript disabled.'|translate}</li></ul>
    186186    </div>
    187187
  • extensions/EasyCaptcha/template/comment.tpl

    r24215 r24234  
    33{* <!-- DRAG & DROP --> *}
    44{if $EASYCAPTCHA_CHALLENGE == 'drag'}
    5 <p><label>{'easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></p>
     5<p><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></p>
    66
    77{* <!-- TIC TAC TOE --> *}
    88{else if $EASYCAPTCHA_CHALLENGE == 'tictac'}
    9 <p><label>{'easycaptcha_tictac'|translate}</label></p>
     9<p><label>{'You are player X, click on the right case to complete the line.'|translate}</label></p>
    1010
    1111{/if}
  • extensions/EasyCaptcha/template/common.inc.tpl

    r24215 r24234  
    7171{capture name=easycaptcha}
    7272<noscript id="easycaptcha_noscript">
    73   {'easycaptcha_javascript_public'|translate}
     73  {'You must activate JavaScript in your browser in order to be able to add a comment, sorry for the inconvenience.'|translate}
    7474</noscript>
    7575
  • extensions/EasyCaptcha/template/contactform.tpl

    r24215 r24234  
    55  {* <!-- DRAG & DROP --> *}
    66  {if $EASYCAPTCHA_CHALLENGE == 'drag'}
    7   <td class="title">{'easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</td>
     7  <td class="title">{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</td>
    88
    99  {footer_script}
     
    1414  {* <!-- TIC TAC TOE --> *}
    1515  {else if $EASYCAPTCHA_CHALLENGE == 'tictac'}
    16   <td class="title">{'easycaptcha_tictac'|translate}</td>
     16  <td class="title">{'You are player X, click on the right case to complete the line.'|translate}</td>
    1717
    1818  {footer_script}
  • extensions/EasyCaptcha/template/guestbook.tpl

    r24215 r24234  
    44  {* <!-- DRAG & DROP --> *}
    55  {if $EASYCAPTCHA_CHALLENGE == 'drag'}
    6   <td colspan=2><label>{'easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></td>
     6  <td colspan=2><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></td>
    77
    88  {footer_script}
     
    1313  {* <!-- TIC TAC TOE --> *}
    1414  {else if $EASYCAPTCHA_CHALLENGE == 'tictac'}
    15   <td colspan=2><label>{'easycaptcha_tictac'|translate}</label></td>
     15  <td colspan=2><label>{'You are player X, click on the right case to complete the line.'|translate}</label></td>
    1616
    1717  {footer_script}
  • extensions/EasyCaptcha/template/register.tpl

    r24215 r24234  
    55  {* <!-- DRAG & DROP --> *}
    66  {if $EASYCAPTCHA_CHALLENGE == 'drag'}
    7   <span class="property"><label>{'easycaptcha_drag_%s'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></span>
     7  <span class="property"><label>{'To verify you are a human, please place the <b>%s</b> in the most right box bellow.'|translate|sprintf:$EASYCAPTCHA_CONF.text}</label></span>
    88
    99  {* <!-- TIC TAC TOE --> *}
    1010  {else if $EASYCAPTCHA_CHALLENGE == 'tictac'}
    11   <span class="property"><label>{'easycaptcha_tictac'|translate}</label></span>
     11  <span class="property"><label>{'You are player X, click on the right case to complete the line.'|translate}</label></span>
    1212
    1313  {/if}
Note: See TracChangeset for help on using the changeset viewer.