Make WordPress Core

Ticket #4059: Kubrick-l10n-part2.diff

File Kubrick-l10n-part2.diff, 14.2 KB (added by abelcheung, 17 years ago)

Additional patch on top of Sewar's

  • attachment.php

    diff -urN default/attachment.php default.abel/attachment.php
    old new  
    1313<?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
    1414
    1515                <div class="post" id="post-<?php the_ID(); ?>">
    16                         <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
     16                        <h2><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link: %s', 'kubrick'), the_title('', '', false)); ?>"><?php the_title(); ?></a></h2>
    1717
    1818                        <div class="entry">
    1919                                <p class="<?php echo $classname; ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
     
    2525                                <p class="postmetadata alt">
    2626                                        <small>
    2727                                                <?php printf(__('This entry was posted on %s at %s and is filed under %s.', 'kubrick'), get_the_time(__('l, F jS, Y', 'kubrick')), get_the_time(), get_the_category_list(', '));?>
    28                                                 <?php printf(__('You can follow any responses to this entry through the %s feed.', 'kubrick'), '<a href="' . comments_rss('') . '">' . __('RSS 2.0', 'kubrick') . '</a>'); ?>
     28                                                <?php printf(__('You can follow any responses to this entry through the <a href="%s">RSS 2.0</a> feed.', 'kubrick'), comments_rss('')); ?>
    2929
    3030                                                <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    3131                                                        // Both Comments and Pings are open
  • comments.php

    diff -urN default/comments.php default.abel/comments.php
    old new  
    2727        <?php foreach ($comments as $comment) : ?>
    2828
    2929                <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
    30                         <cite><?php comment_author_link() ?></cite> <?php _e('Says:', 'kubrick'); ?>
     30                        <?php printf(__('<cite>%s</cite> Says:', 'kubrick'), comment_author_link()); ?>
    3131                        <?php if ($comment->comment_approved == '0') : ?>
    3232                        <em><?php _e('Your comment is awaiting moderation.', 'kubrick'); ?></em>
    3333                        <?php endif; ?>
  • functions.php

    diff -urN default/functions.php default.abel/functions.php
    old new  
    137137                }
    138138                add_action('admin_head', 'kubrick_theme_page_head');
    139139        }
    140         add_theme_page('Customize Header', 'Header Image and Color', 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
     140        add_theme_page(__('Customize Header', 'kubrick'), __('Header Image and Color', 'kubrick'), 'edit_themes', basename(__FILE__), 'kubrick_theme_page');
    141141}
    142142
    143143function kubrick_theme_page_head() {
     
    347347}
    348348
    349349function kubrick_theme_page() {
    350         if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>Options saved.</strong></p></div>';
     350        if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>' . __('Options saved.', 'kubrick') . '</strong></p></div>';
    351351?>
    352352<div class='wrap'>
    353353        <div id="kubrick-header">
    354                 <h2>Header Image and Color</h2>
     354                <h2><?php _e('Header Image and Color', 'kubrick') ?></h2>
    355355                <div id="headwrap">
    356356                        <div id="header">
    357357                                <div id="headerimg">
     
    364364                <div id="nonJsForm">
    365365                        <form method="post" action="">
    366366                                <div class="zerosize"><input type="submit" name="defaultsubmit" value="Save" /></div>
    367                                 <label for="njfontcolor">Font Color:</label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> Any CSS color (<code>red</code> or <code>#FF0000</code> or <code>rgb(255, 0, 0)</code>)<br />
    368                                 <label for="njuppercolor">Upper Color:</label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
    369                                 <label for="njlowercolor">Lower Color:</label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> HEX only (<code>#FF0000</code> or <code>#F00</code>)<br />
     367                                <label for="njfontcolor"><?php _e('Font Color:', 'kubrick') ?></label><input type="text" name="njfontcolor" id="njfontcolor" value="<?php echo kubrick_header_color(); ?>" /> <?php printf(__('Any CSS color (%s, %s or %s)', 'kubrick'), '<code>red</code>', '<code>#FF0000</code>', '<code>rgb(255, 0, 0)</code>') ?><br />
     368                                <label for="njuppercolor"><?php _e('Upper Color:', 'kubrick') ?></label><input type="text" name="njuppercolor" id="njuppercolor" value="#<?php echo kubrick_upper_color(); ?>" /> <?php printf (__('HEX only (%s or %s)', 'kubrick'), '<code>#FF0000</code>', '<code>#F00</code>') ?><br />
     369                                <label for="njlowercolor"><?php _e('Lower Color:', 'kubrick') ?></label><input type="text" name="njlowercolor" id="njlowercolor" value="#<?php echo kubrick_lower_color(); ?>" /> <?php printf (__('HEX only (%s or %s)', 'kubrick'), '<code>#FF0000</code>', '<code>#F00</code>') ?><br />
    370370                                <input type="hidden" name="hi" id="hi" value="<?php echo kubrick_header_image(); ?>" />
    371                                 <input type="submit" name="toggledisplay" id="toggledisplay" value="Toggle Text" />
    372                                 <input type="submit" name="defaults" value="Use Defaults" />
    373                                 <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;Save&nbsp;&nbsp;" />
     371                                <input type="submit" name="toggledisplay" id="toggledisplay" value="<?php _e('Toggle Text', 'kubrick') ?>" />
     372                                <input type="submit" name="defaults" value="<?php _e('Use Defaults', 'kubrick') ?>" />
     373                                <input type="submit" class="defbutton" name="submitform" value="&nbsp;&nbsp;<?php _e('Save', 'kubrick') ?>&nbsp;&nbsp;" />
    374374                                <input type="hidden" name="action" value="save" />
    375375                                <input type="hidden" name="njform" value="true" />
    376376                        </form>
    377377                </div>
    378378                <div id="jsForm">
    379379                        <form style="display:inline;" method="post" name="hicolor" id="hicolor" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
    380                                 <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="Font Color"></input>
    381                                 <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="Upper Color"></input>
    382                                 <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="Lower Color"></input>
    383                                 <input type="button" name="revert" value="Revert" onclick="kRevert()" />
    384                                 <input type="button" value="Advanced" onclick="toggleAdvanced()" />
     380                                <input type="button" onclick="tgt=document.getElementById('fontcolor');colorSelect(tgt,'pick1');return false;" name="pick1" id="pick1" value="<?php _e('Font Color', 'kubrick') ?>"></input>
     381                                <input type="button" onclick="tgt=document.getElementById('uppercolor');colorSelect(tgt,'pick2');return false;" name="pick2" id="pick2" value="<?php _e('Upper Color', 'kubrick') ?>"></input>
     382                                <input type="button" onclick="tgt=document.getElementById('lowercolor');colorSelect(tgt,'pick3');return false;" name="pick3" id="pick3" value="<?php _e('Lower Color', 'kubrick') ?>"></input>
     383                                <input type="button" name="revert" value="<?php _e('Revert', 'kubrick') ?>" onclick="kRevert()" />
     384                                <input type="button" value="<?php _e('Advanced', 'kubrick') ?>" onclick="toggleAdvanced()" />
    385385                                <input type="hidden" name="action" value="save" />
    386386                                <input type="hidden" name="fontdisplay" id="fontdisplay" value="<?php echo kubrick_header_display(); ?>" />
    387387                                <input type="hidden" name="fontcolor" id="fontcolor" value="<?php echo kubrick_header_color(); ?>" />
    388388                                <input type="hidden" name="uppercolor" id="uppercolor" value="<?php echo kubrick_upper_color(); ?>" />
    389389                                <input type="hidden" name="lowercolor" id="lowercolor" value="<?php echo kubrick_lower_color(); ?>" />
    390390                                <input type="hidden" name="headerimage" id="headerimage" value="<?php echo kubrick_header_image(); ?>" />
    391                                 <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header &raquo;'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
     391                                <p class="submit"><input type="submit" name="submitform" class="defbutton" value="<?php _e('Update Header &raquo;', 'kubrick'); ?>" onclick="cp.hidePopup('prettyplease')" /></p>
    392392                        </form>
    393393                        <div id="colorPickerDiv" style="z-index: 100;background:#eee;border:1px solid #ccc;position:absolute;visibility:hidden;"> </div>
    394394                        <div id="advanced">
    395395                                <form id="jsAdvanced" style="display:none;" action="">
    396                                         <label for="advfontcolor">Font Color (CSS): </label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br />
    397                                         <label for="advuppercolor">Upper Color (HEX): </label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br />
    398                                         <label for="advlowercolor">Lower Color (HEX): </label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br />
    399                                         <input type="button" name="default" value="Select Default Colors" onclick="kDefaults()" /><br />
    400                                         <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="Toggle Text Display"></input><br />
     396                                        <label for="advfontcolor"><?php _e('Font Color (CSS):', 'kubrick') ?></label><input type="text" id="advfontcolor" onchange="advUpdate(this.value, 'fontcolor')" value="<?php echo kubrick_header_color(); ?>" /><br />
     397                                        <label for="advuppercolor"><?php _e('Upper Color (HEX):', 'kubrick') ?></label><input type="text" id="advuppercolor" onchange="advUpdate(this.value, 'uppercolor')" value="#<?php echo kubrick_upper_color(); ?>" /><br />
     398                                        <label for="advlowercolor"><?php _e('Lower Color (HEX):', 'kubrick') ?></label><input type="text" id="advlowercolor" onchange="advUpdate(this.value, 'lowercolor')" value="#<?php echo kubrick_lower_color(); ?>" /><br />
     399                                        <input type="button" name="default" value="<?php _e('Select Default Colors', 'kubrick') ?>" onclick="kDefaults()" /><br />
     400                                        <input type="button" onclick="toggleDisplay();return false;" name="pick" id="pick" value="<?php _e('Toggle Text Display', 'kubrick') ?>"></input><br />
    401401                                </form>
    402402                        </div>
    403403                </div>
  • page.php

    diff -urN default/page.php default.abel/page.php
    old new  
    66                <div class="post" id="post-<?php the_ID(); ?>">
    77                <h2><?php the_title(); ?></h2>
    88                        <div class="entry">
    9                                 <?php the_content('<p class="serif">' . __('Read the rest of this page', 'kubrick') . ' &raquo;</p>'); ?>
     9                                <?php the_content('<p class="serif">' . __('Read the rest of this page &raquo;', 'kubrick') . '</p>'); ?>
    1010
    11                                 <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages', 'kubrick') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
     11                                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    1212
    1313                        </div>
    1414                </div>
     
    1919
    2020<?php get_sidebar(); ?>
    2121
    22 <?php get_footer(); ?>
    23  檔案末沒有 newline 字元
     22<?php get_footer(); ?>
  • sidebar.php

    diff -urN default/sidebar.php default.abel/sidebar.php
    old new  
    2121                        <p><?php printf(__('You are currently browsing the archives for the &#39;%s&#39; category.', 'kubrick'), single_cat_title('', false)); ?></p>
    2222
    2323                        <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    24                         <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives
    25                         for the day %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
     24                        <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the day %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('l, F jS, Y', 'kubrick'))); ?></p>
    2625
    2726                        <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    28                         <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives
    29                         for the month %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
     27                        <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the month %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('F, Y', 'kubrick'))); ?></p>
    3028
    3129                        <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    32                         <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives
    33                         for the year %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('Y', 'kubrick'))); ?></p>
     30                        <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives for the year %s.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), get_the_time(__('Y', 'kubrick'))); ?></p>
    3431
    3532                        <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    36                         <p><?php printf(__('You have searched the <a href="%s">%s</a> weblog archives
    37                         for <strong>&#39;%s&#39;</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), the_search_query()); ?></p>
     33                        <p><?php printf(__('You have searched the <a href="%s">%s</a> weblog archives for <strong>&#39;%s&#39;</strong>. If you are unable to find anything in these search results, you can try one of these links.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name'), the_search_query()); ?></p>
    3834
    3935                        <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    4036                        <p><?php printf(__('You are currently browsing the <a href="%s">%s</a> weblog archives.', 'kubrick'), get_bloginfo('url'), get_bloginfo('name')); ?></p>