Changeset 8887


Ignore:
Timestamp:
Jan 25, 2011, 4:40:30 PM (9 years ago)
Author:
patdenice
Message:

Add two triggers for captcha plugin.
Language key corrected.

Location:
extensions/ContactForm
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/classes/cf_plugin.class.php

    r7197 r8887  
    183183  protected function display_form($infos) {
    184184    global $template,$user;
     185    trigger_action('display_contactform');
    185186    $template->set_extent(realpath(cf_get_template('cf_index.tpl')), 'index');
    186187    $template->set_filenames(array(
     
    396397   
    397398    $infos = $this->create_infos_array(false);
    398     $params_ok = true;
    399399    $return = '';
    400400    $value = '';
     
    404404    } else {
    405405      $infos['cf_id'] = rand();
    406       $params_ok = false;
    407406      array_push( $infos['errors'], l10n('cf_form_error'));
    408407    }
     
    414413      } else {
    415414        array_push( $infos['errors'], l10n('cf_from_name_error'));
    416         $params_ok = false;
    417415      }
    418416    } else {
    419417      array_push( $infos['errors'], l10n('cf_from_name_error'));
    420       $params_ok = false;
    421418    }
    422419    // From mail
     
    427424        $infos['cf_from_mail'] = $value;
    428425      } else {
    429         $params_ok = false;
    430426        array_push( $infos['errors'], $return);
    431427      }
    432428    } else {
    433429      array_push( $infos['errors'], l10n('cf_mail_format_error'));
    434       $params_ok = false;
    435430    }
    436431    // Subject
     
    441436      } else {
    442437        array_push( $infos['errors'], l10n('cf_subject_error'));
    443         $params_ok = false;
    444438      }
    445439    } else {
    446440      array_push( $infos['errors'], l10n('cf_subject_error'));
    447       $params_ok = false;
    448441    }
    449442    // Message
     
    454447      } else {
    455448        array_push( $infos['errors'], l10n('cf_message_error'));
    456         $params_ok = false;
    457449      }
    458450    } else {
    459451      array_push( $infos['errors'], l10n('cf_message_error'));
    460       $params_ok = false;
    461     }
    462     return $params_ok;
     452    }
     453
     454    $infos = trigger_event('check_contactform_params', $infos);
     455
     456    return empty($infos['errors']);
    463457  }
    464458 
  • extensions/ContactForm/language/cs_CZ/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Prosím zadejte Vaše jméno';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Prosím zadejte předmět zprávy';
    3232$lang['cf_message_error'] = 'Prosím zadejte zprávu';
  • extensions/ContactForm/language/de_DE/plugin.lang.php

    r8482 r8887  
    2727// Messages
    2828$lang['cf_from_name_error'] = 'Bitte fügen Sie Ihren Namen ein';
    29 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     29$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3030$lang['cf_subject_error'] = 'Bitte fügen Sie den Betreff ein';
    3131$lang['cf_message_error'] = 'Bitte fügen Sie eine Mitteilung hinzu';
  • extensions/ContactForm/language/en_UK/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Please enter a name';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Please enter a subject';
    3232$lang['cf_message_error'] = 'Please enter a message';
  • extensions/ContactForm/language/es_ES/plugin.lang.php

    r8482 r8887  
    2727// Messages
    2828$lang['cf_from_name_error'] = 'Por favor, entre un nombre';
    29 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     29$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3030$lang['cf_subject_error'] = 'Por favor, entre un sujeto';
    3131$lang['cf_message_error'] = 'Por favor, entre un mensaje';
  • extensions/ContactForm/language/fr_FR/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Veuillez entrer un nom';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Veuillez entrer un sujet';
    3232$lang['cf_message_error'] = 'Veuillez entrer un message';
  • extensions/ContactForm/language/hu_HU/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Írj be egy nevet';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Írd be a levél tárgyát';
    3232$lang['cf_message_error'] = 'Írd be az üzeneted';
  • extensions/ContactForm/language/it_IT/plugin.lang.php

    r8482 r8887  
    2727// Messages
    2828$lang['cf_from_name_error'] = 'Entrare un nome';
    29 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     29$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3030$lang['cf_subject_error'] = 'Entrare un soggetto';
    3131$lang['cf_message_error'] = 'Entrare un messaggio';
  • extensions/ContactForm/language/lv_LV/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Lūdzu ievadiet vārdu';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Lūdzu ievadiet tematu';
    3232$lang['cf_message_error'] = 'Lūdzu ievadiet ziņojumu';
  • extensions/ContactForm/language/nl_NL/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Vul een naam in';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Vul een onderwerp in';
    3232$lang['cf_message_error'] = 'Vul een berichttekst in ';
  • extensions/ContactForm/language/pl_PL/plugin.lang.php

    r8482 r8887  
    2727// Messages
    2828$lang['cf_from_name_error'] = 'Proszę podać nazwisko';
    29 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     29$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3030$lang['cf_subject_error'] = 'Proszę podać temat';
    3131$lang['cf_message_error'] = 'Proszę wpisać wiadomość';
  • extensions/ContactForm/language/ru_RU/plugin.lang.php

    r8482 r8887  
    2828// Сообщения
    2929$lang['cf_from_name_error'] = 'Пожалуйста, введите имя';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Пожалуйста, укажите тему сообщения';
    3232$lang['cf_message_error'] = 'Пожалуйста, введите сообщение';
  • extensions/ContactForm/language/sk_SK/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Prosím zadajte meno';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Prosím zadajte predmet';
    3232$lang['cf_message_error'] = 'Prosím zadajte správu';
  • extensions/ContactForm/language/sv_SE/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Ange ett namn';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Ange ett ämnet';
    3232$lang['cf_message_error'] = 'Skriv ett meddelande';
  • extensions/ContactForm/language/tr_TR/plugin.lang.php

    r8482 r8887  
    2828// Messages
    2929$lang['cf_from_name_error'] = 'Lütfen isminizi girin';
    30 $lang['cf_mail_format_error'] = $lang['reg_err_mail_address'];
     30$lang['cf_mail_format_error'] = $lang['mail address must be like xxx@yyy.eee (example : jack@altern.org)'];
    3131$lang['cf_subject_error'] = 'Lütgen konuyu girin';
    3232$lang['cf_message_error'] = 'Lütfen mesajınızı girin';
Note: See TracChangeset for help on using the changeset viewer.