Changeset 427188
- Timestamp:
- 08/22/2011 04:19:25 PM (15 years ago)
- Location:
- xmpp-auth/trunk
- Files:
-
- 4 added
- 2 edited
-
comment.php (modified) (4 diffs)
-
i18n (added)
-
i18n/xmpp-auth-fr.mo (added)
-
i18n/xmpp-auth-fr.po (added)
-
i18n/xmpp-auth.pot (added)
-
xmpp_stanzas.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xmpp-auth/trunk/comment.php
r426652 r427188 34 34 // XXX: I use the email class as it won't display well for some theme (example: twentyeleven) if there is no. 35 35 // 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>' 37 37 . ($jid_validate? '<span class="required">*</span>' : '') 38 38 . '<input id="jid" name="jid" type="text" value="' . $comment_author_jid . '" size="30" aria-required="true" /></p>'; … … 61 61 require_once(dirname(__FILE__) . '/xmpp_utils.php'); 62 62 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>'); 64 66 65 67 set_time_limit(0); // TODO: shouldn't this be in my_socket? … … 83 85 // XXX: it does not mean that the user's JID is wrong. 84 86 //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>'); 86 90 } 87 91 … … 109 113 $xs->quit(); 110 114 // 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>'; 113 118 } 114 119 } -
xmpp-auth/trunk/xmpp_stanzas.php
r427136 r427188 40 40 41 41 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".'); 45 45 46 46 $message = "<message type='normal' from='" . $from . "' ";
Note: See TracChangeset
for help on using the changeset viewer.