Plugin Directory

Changeset 427188


Ignore:
Timestamp:
08/22/2011 04:19:25 PM (15 years ago)
Author:
Jehan
Message:
  • i18n setup.
  • Part of the plugin translated in French.
Location:
xmpp-auth/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • xmpp-auth/trunk/comment.php

    r426652 r427188  
    3434    // XXX: I use the email class as it won't display well for some theme (example: twentyeleven) if there is no.
    3535    // XXX: the aria-required parameter is apparently for screen readers. Good for accessibility.
    36     $fields['jid'] = '<p class="comment-form-email"><label for="jid" title="Jabber ID (will not be published)">' . __( 'JID' ) . '</label>'
     36    $fields['jid'] = '<p class="comment-form-email"><label for="jid" title="Jabber ID (will not be published)">' . __('Messaging', 'xmpp-auth') . '</label>'
    3737        . ($jid_validate? '<span class="required">*</span>' : '')
    3838        . '<input id="jid" name="jid" type="text" value="' . $comment_author_jid . '" size="30" aria-required="true" /></p>';
     
    6161    require_once(dirname(__FILE__) . '/xmpp_utils.php');
    6262    if (!imauth_valid_jid($_POST['jid']))
    63         wp_die(__('Error: please enter a valid JID. Comment:<br />'). esc_attr($comment_content));
     63        wp_die('<strong>' . __('Error:') , '</strong>'
     64            . __('please enter a valid JID. Your comment:')
     65            . '<br /><em>'. esc_attr($comment_content) . '</em>');
    6466
    6567    set_time_limit(0); // TODO: shouldn't this be in my_socket?
     
    8385        // XXX: it does not mean that the user's JID is wrong.
    8486        //I don't save the comment when it happens.
    85         wp_die(__('Error: internal system error. Please retry later. Comment:<br />') . esc_attr($comment_content));
     87        wp_die('<strong>' . __('Error:') . '</strong>'
     88            . __('internal system error. Please retry later. Your comment:')
     89            . '<br /><em>' . esc_attr($comment_content) . '</em>');
    8690    }
    8791
     
    109113        $xs->quit();
    110114        // return "trash";
    111         wp_die(__('<strong>Error</strong>: either the comment authentication has been refused or it timed-out.<br/>Are you sure your JID is valid? Comment:<br /><em>')
    112             . esc_attr($comment_content) . '</em>');
     115        wp_die('<strong>' . __('Error:') . '</strong>'
     116            . 'either the comment authentication has been refused or it timed-out.<br/>Are you sure your JID is valid? Your comment:')
     117            . '<br /><em>' . esc_attr($comment_content) . '</em>';
    113118    }
    114119}
  • xmpp-auth/trunk/xmpp_stanzas.php

    r427136 r427188  
    4040
    4141    if (is_null($readable_message))
    42         $readable_message = __("Someone (maybe you) has requested access to the following web page:\n") . $http_url;
    43     $readable_message .= __("\nThe transaction identifier is:\n\t") . $_transaction_id;
    44     $readable_message .= __("\nIf you confirm you made this request, answer \"OK\". Otherwise answer \"NO\".");
     42        $readable_message = __('Someone (maybe you) has requested access to the following web page:') . "\n" . $http_url;
     43    $readable_message .= "\n" . __('The transaction identifier is:') . "\n\t" . $_transaction_id;
     44    $readable_message .= "\n" . __('If you confirm you made this request, answer "OK". Otherwise answer "NO".');
    4545
    4646    $message = "<message type='normal' from='" . $from . "' ";
Note: See TracChangeset for help on using the changeset viewer.