Make WordPress Core


Ignore:
Timestamp:
04/24/2004 07:46:11 PM (22 years ago)
Author:
saxmatt
Message:

More l10n stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/plugins.php

    r1081 r1144  
    5656
    5757<div class="wrap">
     58<h2><?php _e('Plugin Management'); ?></h2>
     59<p><?php _e('Plugins are files you usually download seperately from WordPress that add functionality. To install a plugin you generally just need to put the plugin file into your <code>wp-content/plugins</code> directory. Once a plugin is installed, you may activate it or deactivate it here.'); ?></p>
    5860<?php
    5961// Files in wp-content/plugins directory
     
    7173
    7274if (!$plugins_dir || !$plugin_files) {
    73         echo "<p>Couldn't open plugins directory or there are no plugins available.</p>"; // TODO: make more helpful
     75        _e("<p>Couldn't open plugins directory or there are no plugins available.</p>"); // TODO: make more helpful
    7476} else {
    7577?>
    7678<table width="100%" cellpadding="3" cellspacing="3">
    7779        <tr>
    78                 <th>Plugin</th>
    79                 <th>Version</th>
    80                 <th>Author</th>
    81                 <th>Description</th>
    82                 <th>Action</th>
     80                <th><?php _e('Plugin'); ?></th>
     81                <th><?php _e('Version'); ?></th>
     82                <th><?php _e('Author'); ?></th>
     83                <th><?php _e('Description'); ?></th>
     84                <th><?php _e('Action'); ?></th>
    8385        </tr>
    8486<?php
     
    9799                        $plugin = $plugin_name[1];
    98100                } else {
    99                         $plugin = wp_filter_kses("<a href='{$plugin_uri[1]}' title='Visit plugin homepage'>{$plugin_name[1]}</a>");
     101                        $plugin = wp_filter_kses( __("<a href='{$plugin_uri[1]}' title='Visit plugin homepage'>{$plugin_name[1]}</a>") );
    100102                }
    101103
     
    103105                        $author = $author_name[1];
    104106                } else {
    105                         $author = wp_filter_kses("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>");
     107                        $author = wp_filter_kses( __("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>") );
    106108                }
    107109
     
    111113
    112114                if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
    113                         $action = "<a href='plugins.php?action=deactivate&amp;plugin=$plugin_file' title='Deactivate this plugin' class='delete'>Deactivate</a>";
    114                         $plugin = "<strong>$plugin</strong>";
     115                        $action = __("<a href='plugins.php?action=deactivate&amp;plugin=$plugin_file' title='Deactivate this plugin' class='delete'>Deactivate</a>");
     116                        $plugin = __("<strong>$plugin</strong>");
    115117                } else {
    116                         $action = "<a href='plugins.php?action=activate&amp;plugin=$plugin_file' title='Activate this plugin' class='edit'>Activate</a>";
     118                        $action = __("<a href='plugins.php?action=activate&amp;plugin=$plugin_file' title='Activate this plugin' class='edit'>Activate</a>");
    117119                }
    118120                echo "
Note: See TracChangeset for help on using the changeset viewer.