Make WordPress Core

Ticket #1033: gettext1033.diff

File gettext1033.diff, 5.0 KB (added by sakis, 20 years ago)
  • wp-admin/admin-functions.php

    diff -u -r trunk-svn/wp-admin/admin-functions.php trunk/wp-admin/admin-functions.php
    old new  
    962962        $name = trim($name);
    963963        $plugin = $name;
    964964        if ('' != $plugin_uri[1] && '' != $name) {
    965                 $plugin = __("<a href='{$plugin_uri[1]}' title='Visit plugin homepage'>{$plugin}</a>");
     965                $plugin = '<a href="' . $plugin_uri[1] . '" title="' . __('Visit plugin homepage') . '">' . $plugin . '</a>';
    966966        }
    967967
    968968        if ('' == $author_uri[1]) {
    969969                $author = $author_name[1];
    970970        } else {
    971                 $author = __("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>");
     971                $author = '<a href="' . $author_uri[1] . '" title="' . __('Visit author homepage') . '">' . $author_name[1] . '</a>';
    972972        }
    973973
    974974        return array('Name' => $name, 'Title' => $plugin, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1]);
  • wp-admin/index.php

    diff -u -r trunk-svn/wp-admin/index.php trunk/wp-admin/index.php
    old new  
    5454<ul>
    5555<?php
    5656foreach ($comments as $comment) {
    57         echo '<li>' . sprintf('%s on %s', get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>');
     57        echo '<li>' . get_comment_author_link() . __(' on ');
     58        echo '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>';
    5859        edit_comment_link(__("Edit"), ' <small>(', ')</small>');
    5960        echo '</li>';
    6061}
  • wp-admin/link-categories.php

    diff -u -r trunk-svn/wp-admin/link-categories.php trunk/wp-admin/link-categories.php
    old new  
    338338              <tr valign="middle" align="center" <?php echo $style ?> style="border-bottom: 1px dotted #9C9A9C;">
    339339                <td><?php echo wp_specialchars($row->cat_name)?></td>
    340340                                <td ><?php echo $row->cat_id?></td>
    341                 <td><?php echo $row->auto_toggle == 'Y' ? __('Y') : __('N') ?></td>
    342                 <td><?php echo $row->show_images == 'Y' ? __('Y') : __('N') ?></td>
    343                 <td><?php echo $row->show_description == 'Y' ? __('Y') : __('N') ?></td>
    344                 <td><?php echo $row->show_rating == 'Y' ? __('Y') : __('N') ?></td>
    345                 <td><?php echo $row->show_updated == 'Y' ? __('Y') : __('N') ?></td>
     341                <td><?php echo $row->auto_toggle == 'Y' ? __('Yes') : __('No') ?></td>
     342                <td><?php echo $row->show_images == 'Y' ? __('Yes') : __('No') ?></td>
     343                <td><?php echo $row->show_description == 'Y' ? __('Yes') : __('No') ?></td>
     344                <td><?php echo $row->show_rating == 'Y' ? __('Yes') : __('No') ?></td>
     345                <td><?php echo $row->show_updated == 'Y' ? __('Yes') : __('No') ?></td>
    346346                <td><?php echo $row->sort_order ?></td>
    347                 <td><?php echo $row->sort_desc == 'Y' ? __('Y') : __('N') ?></td>
     347                <td><?php echo $row->sort_desc == 'Y' ? __('Yes') : __('No') ?></td>
    348348                <td nowrap="nowrap"><?php echo htmlentities($row->text_before_link)?>&nbsp;</td>
    349349                <td nowrap="nowrap"><?php echo htmlentities($row->text_after_link)?>&nbsp;</td>
    350350                <td nowrap="nowrap"><?php echo htmlentities($row->text_after_all)?></td>
  • wp-admin/templates.php

    diff -u -r trunk-svn/wp-admin/templates.php trunk/wp-admin/templates.php
    old new  
    135135        ?>
    136136</div>
    137137<div class="wrap">
    138 <h2>Other Files</h2>
     138<h2><?php _e('Other Files'); ?></h2>
    139139
    140140  <p><?php _e('To edit a file, type its name here. You can edit any file <a href="http://wiki.wordpress.org/index.php/MakeWritable" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.') ?></p>
    141141  <form name="file" action="templates.php" method="get">
  • wp-includes/functions.php

    diff -u -r trunk-svn/wp-includes/functions.php trunk/wp-includes/functions.php
    old new  
    13771377        $name = trim($name);
    13781378        $theme = $name;
    13791379        if ('' != $theme_uri[1] && '' != $name) {
    1380                 $theme = __("<a href='{$theme_uri[1]}' title='Visit theme homepage'>{$theme}</a>");
     1380                $theme = '<a href="' . $theme_uri[1] . '" title="' . __('Visit theme homepage') . '">' . $theme . '</a>';
    13811381        }
    13821382
    13831383        if ('' == $author_uri[1]) {
    13841384                $author = $author_name[1];
    13851385        } else {
    1386                 $author = __("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>");
     1386                $author = '<a href="' . $author_uri[1] . '" title="' . __('Visit author homepage') . '">' . $author_name[1] . '</a>';
    13871387        }
    13881388
    13891389        return array('Name' => $name, 'Title' => $theme, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1]);