Ticket #10005: translators-entities-warning.diff
| File translators-entities-warning.diff, 18.4 KB (added by , 17 years ago) |
|---|
-
wp-admin/includes/upgrade.php
226 226 $user = new WP_User($user_id); 227 227 $email = $user->user_email; 228 228 $name = $user->user_login; 229 /* translators: do not use HTML entities ( , etc.): string is used in e-mails */ 229 230 $message = sprintf(__("Your new WordPress blog has been successfully set up at: 230 231 231 232 %1\$s -
wp-includes/feed-atom-comments.php
16 16 > 17 17 <title type="text"><?php 18 18 if ( is_singular() ) 19 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 19 20 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); 20 21 elseif ( is_search() ) 22 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 21 23 printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), esc_attr(get_search_query())); 22 24 else 25 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 23 26 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 24 27 ?></title> 25 28 <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> … … 51 54 if ( !is_singular() ) { 52 55 $title = get_the_title($comment_post->ID); 53 56 $title = apply_filters('the_title_rss', $title); 57 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 54 58 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 55 59 } else { 60 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 56 61 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 57 62 } 58 63 ?></title> -
wp-includes/feed-rss2-comments.php
19 19 <channel> 20 20 <title><?php 21 21 if ( is_singular() ) 22 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 22 23 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); 23 24 elseif ( is_search() ) 25 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 24 26 printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s'])); 25 27 else 28 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 26 29 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 27 30 ?></title> 28 31 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> … … 43 46 if ( !is_singular() ) { 44 47 $title = get_the_title($comment_post->ID); 45 48 $title = apply_filters('the_title_rss', $title); 49 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 46 50 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 47 51 } else { 52 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 48 53 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 49 54 } 50 55 ?></title> … … 53 58 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true, false), false); ?></pubDate> 54 59 <guid isPermaLink="false"><?php comment_guid() ?></guid> 55 60 <?php if ( post_password_required($comment_post) ) : ?> 61 /* translators: Note: do not use HTML entities ( , etc.): string is used in XML feeds */ 56 62 <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description> 57 63 <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded> 58 64 <?php else : // post pass ?> -
wp-includes/js/tinymce/langs/wp-langs.php
418 418 }); 419 419 420 420 tinyMCE.addI18n("' . $language . '.wpeditimage",{ 421 edit_img:"' . mce_escape( __('Edit Image') ) . '",422 del_img:"' . mce_escape( __('Delete Image') ) . '",421 edit_img:"' /* translators: Note: do not use HTML entities ( , etc.): string is used in Visual Editor */ . mce_escape( __('Edit Image') ) . '", 422 del_img:"' /* translators: Note: do not use HTML entities ( , etc.): string is used in Visual Editor */ . mce_escape( __('Delete Image') ) . '", 423 423 adv_settings:"' . mce_escape( __('Advanced Settings') ) . '", 424 424 none:"' . mce_escape( __('None') ) . '", 425 425 size:"' . mce_escape( __('Size') ) . '", -
wp-includes/pluggable.php
964 964 if ( empty( $comment_type ) ) $comment_type = 'comment'; 965 965 966 966 if ('comment' == $comment_type) { 967 /* translators: 1: post id, 2: post title */967 /* translators: 1: post id, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 968 968 $notify_message = sprintf( __('New comment on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 969 /* translators: 1: comment author, 2: author IP, 3: author domain */969 /* translators: 1: comment author, 2: author IP, 3: author domain. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 970 970 $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 971 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 971 972 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 973 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 972 974 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 975 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 973 976 $notify_message .= sprintf( __('Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n"; 977 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 974 978 $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 979 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 975 980 $notify_message .= __('You can see all comments on this post here: ') . "\r\n"; 976 /* translators: 1: blog name, 2: post title */981 /* translators: 1: blog name, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 977 982 $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title ); 978 983 } elseif ('trackback' == $comment_type) { 979 /* translators: 1: post id, 2: post title */984 /* translators: 1: post id, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 980 985 $notify_message = sprintf( __('New trackback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 981 /* translators: 1: website name, 2: author IP, 3: author domain */986 /* translators: 1: website name, 2: author IP, 3: author domain. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 982 987 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 988 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 983 989 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 990 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 984 991 $notify_message .= __('Excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 992 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 985 993 $notify_message .= __('You can see all trackbacks on this post here: ') . "\r\n"; 986 /* translators: 1: blog name, 2: post title */994 /* translators: 1: blog name, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 987 995 $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title ); 988 996 } elseif ('pingback' == $comment_type) { 989 /* translators: 1: post id, 2: post title */997 /* translators: 1: post id, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 990 998 $notify_message = sprintf( __('New pingback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n"; 991 /* translators: 1: comment author, 2: author IP, 3: author domain */999 /* translators: 1: comment author, 2: author IP, 3: author domain. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 992 1000 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1001 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 993 1002 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1003 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 994 1004 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n"; 1005 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 995 1006 $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 996 /* translators: 1: blog name, 2: post title */1007 /* translators: 1: blog name, 2: post title. Note: do not use HTML entities ( , etc.): string is used in e-mails */ 997 1008 $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); 998 1009 } 999 1010 $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n"; 1011 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1000 1012 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=cdc&c=$comment_id") ) . "\r\n"; 1013 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1001 1014 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=cdc&dt=spam&c=$comment_id") ) . "\r\n"; 1002 1015 1003 1016 $wp_email = 'wordpress@' . preg_replace('#^www\.#', '', strtolower($_SERVER['SERVER_NAME'])); … … 1053 1066 switch ($comment->comment_type) 1054 1067 { 1055 1068 case 'trackback': 1069 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1056 1070 $notify_message = sprintf( __('A new trackback on the post #%1$s "%2$s" is waiting for your approval'), $post->ID, $post->post_title ) . "\r\n"; 1057 1071 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1072 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1058 1073 $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1074 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1059 1075 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1076 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1060 1077 $notify_message .= __('Trackback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 1061 1078 break; 1062 1079 case 'pingback': 1080 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1063 1081 $notify_message = sprintf( __('A new pingback on the post #%1$s "%2$s" is waiting for your approval'), $post->ID, $post->post_title ) . "\r\n"; 1064 1082 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1083 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1065 1084 $notify_message .= sprintf( __('Website : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1085 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1066 1086 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1087 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1067 1088 $notify_message .= __('Pingback excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 1068 1089 break; 1069 1090 default: //Comments 1091 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1070 1092 $notify_message = sprintf( __('A new comment on the post #%1$s "%2$s" is waiting for your approval'), $post->ID, $post->post_title ) . "\r\n"; 1071 1093 $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; 1094 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1072 1095 $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1096 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1073 1097 $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n"; 1098 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1074 1099 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1100 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1075 1101 $notify_message .= sprintf( __('Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=%s'), $comment->comment_author_IP ) . "\r\n"; 1102 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1076 1103 $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n"; 1077 1104 break; 1078 1105 } 1079 1106 1107 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1080 1108 $notify_message .= sprintf( __('Approve it: %s'), admin_url("comment.php?action=mac&c=$comment_id") ) . "\r\n"; 1109 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1081 1110 $notify_message .= sprintf( __('Delete it: %s'), admin_url("comment.php?action=cdc&c=$comment_id") ) . "\r\n"; 1111 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1082 1112 $notify_message .= sprintf( __('Spam it: %s'), admin_url("comment.php?action=cdc&dt=spam&c=$comment_id") ) . "\r\n"; 1083 1113 1114 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1084 1115 $notify_message .= sprintf( _n('Currently %s comment is waiting for approval. Please visit the moderation panel:', 1085 1116 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n"; 1086 1117 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n"; 1087 1118 1119 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1088 1120 $subject = sprintf( __('[%1$s] Please moderate: "%2$s"'), get_option('blogname'), $post->post_title ); 1089 1121 $admin_email = get_option('admin_email'); 1090 1122 $message_headers = ''; … … 1111 1143 // send a copy of password change notification to the admin 1112 1144 // but check to see if it's the admin whose password we're changing, and skip this 1113 1145 if ( $user->user_email != get_option('admin_email') ) { 1146 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1114 1147 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; 1148 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1115 1149 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), get_option('blogname')), $message); 1116 1150 } 1117 1151 } … … 1132 1166 $user_login = stripslashes($user->user_login); 1133 1167 $user_email = stripslashes($user->user_email); 1134 1168 1169 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1135 1170 $message = sprintf(__('New user registration on your blog %s:'), get_option('blogname')) . "\r\n\r\n"; 1171 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1136 1172 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n"; 1173 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1137 1174 $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n"; 1138 1175 1176 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1139 1177 @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), get_option('blogname')), $message); 1140 1178 1141 1179 if ( empty($plaintext_pass) ) 1142 1180 return; 1143 1181 1182 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1144 1183 $message = sprintf(__('Username: %s'), $user_login) . "\r\n"; 1184 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1145 1185 $message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n"; 1146 1186 $message .= wp_login_url() . "\r\n"; 1147 1187 1188 /* translators: Note: do not use HTML entities ( , etc.): string is used in e-mails */ 1148 1189 wp_mail($user_email, sprintf(__('[%s] Your username and password'), get_option('blogname')), $message); 1149 1190 1150 1191 } -
wp-includes/script-loader.php
73 73 $scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20090307' ); 74 74 $scripts->localize( 'quicktags', 'quicktagsL10n', array( 75 75 'quickLinks' => __('(Quick Links)'), 76 'wordLookup' => __('Enter a word to look up:'),76 'wordLookup' => /* translators: Note: do not use HTML entities ( , etc.): string is used in JavaScript alert() message */ __('Enter a word to look up:'), 77 77 'dictionaryLookup' => esc_attr(__('Dictionary lookup')), 78 78 'lookup' => esc_attr(__('lookup')), 79 79 'closeAllOpenTags' => esc_attr(__('Close all open tags')),
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)