More l10n stuff.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1b44e09005
commit
277e4b627e
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
|
<p id="footer"><a href="http://wordpress.org/">WordPress</a></strong> <?php bloginfo('version'); ?> — <a href="http://wordpress.org/support/"><?php _e('Support Forums'); ?></a><br />
|
||||||
<p align="center" style="width: 100%" class="tabletoprow"><?php printf(__('<strong><a href="%1$s">WordPress</a></strong> %2$s — <a href="%3$s">Support Forums</a><br />'), 'http://wordpress.org', $wp_version, 'http://wordpress.org/support/') ?>
|
|
||||||
<?php
|
<?php
|
||||||
printf(__('%s seconds'), number_format(timer_stop(), 2));
|
printf(__('%s seconds'), number_format(timer_stop(), 2));
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -55,6 +55,8 @@ foreach ($check_plugins as $check_plugin) {
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
<h2><?php _e('Plugin Management'); ?></h2>
|
||||||
|
<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>
|
||||||
<?php
|
<?php
|
||||||
// Files in wp-content/plugins directory
|
// Files in wp-content/plugins directory
|
||||||
$plugins_dir = @ dir(ABSPATH . 'wp-content/plugins');
|
$plugins_dir = @ dir(ABSPATH . 'wp-content/plugins');
|
||||||
|
@ -70,16 +72,16 @@ if ('' != trim(get_settings('active_plugins'))) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$plugins_dir || !$plugin_files) {
|
if (!$plugins_dir || !$plugin_files) {
|
||||||
echo "<p>Couldn't open plugins directory or there are no plugins available.</p>"; // TODO: make more helpful
|
_e("<p>Couldn't open plugins directory or there are no plugins available.</p>"); // TODO: make more helpful
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
<table width="100%" cellpadding="3" cellspacing="3">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Plugin</th>
|
<th><?php _e('Plugin'); ?></th>
|
||||||
<th>Version</th>
|
<th><?php _e('Version'); ?></th>
|
||||||
<th>Author</th>
|
<th><?php _e('Author'); ?></th>
|
||||||
<th>Description</th>
|
<th><?php _e('Description'); ?></th>
|
||||||
<th>Action</th>
|
<th><?php _e('Action'); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
sort($plugin_files); // Alphabetize by filename. Better way?
|
sort($plugin_files); // Alphabetize by filename. Better way?
|
||||||
|
@ -96,13 +98,13 @@ if (!$plugins_dir || !$plugin_files) {
|
||||||
if ('' == $plugin_uri) {
|
if ('' == $plugin_uri) {
|
||||||
$plugin = $plugin_name[1];
|
$plugin = $plugin_name[1];
|
||||||
} else {
|
} else {
|
||||||
$plugin = wp_filter_kses("<a href='{$plugin_uri[1]}' title='Visit plugin homepage'>{$plugin_name[1]}</a>");
|
$plugin = wp_filter_kses( __("<a href='{$plugin_uri[1]}' title='Visit plugin homepage'>{$plugin_name[1]}</a>") );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('' == $author_uri) {
|
if ('' == $author_uri) {
|
||||||
$author = $author_name[1];
|
$author = $author_name[1];
|
||||||
} else {
|
} else {
|
||||||
$author = wp_filter_kses("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>");
|
$author = wp_filter_kses( __("<a href='{$author_uri[1]}' title='Visit author homepage'>{$author_name[1]}</a>") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,10 +112,10 @@ if (!$plugins_dir || !$plugin_files) {
|
||||||
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
$style = ('class="alternate"' == $style) ? '' : 'class="alternate"';
|
||||||
|
|
||||||
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
|
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
|
||||||
$action = "<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='Deactivate this plugin' class='delete'>Deactivate</a>";
|
$action = __("<a href='plugins.php?action=deactivate&plugin=$plugin_file' title='Deactivate this plugin' class='delete'>Deactivate</a>");
|
||||||
$plugin = "<strong>$plugin</strong>";
|
$plugin = __("<strong>$plugin</strong>");
|
||||||
} else {
|
} else {
|
||||||
$action = "<a href='plugins.php?action=activate&plugin=$plugin_file' title='Activate this plugin' class='edit'>Activate</a>";
|
$action = __("<a href='plugins.php?action=activate&plugin=$plugin_file' title='Activate this plugin' class='edit'>Activate</a>");
|
||||||
}
|
}
|
||||||
echo "
|
echo "
|
||||||
<tr $style>
|
<tr $style>
|
||||||
|
@ -135,4 +137,4 @@ if (!$plugins_dir || !$plugin_files) {
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include('admin-footer.php');
|
include('admin-footer.php');
|
||||||
?>
|
?>
|
|
@ -293,6 +293,10 @@ textarea, input, select {
|
||||||
height: 1.5em;
|
height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
#login {
|
#login {
|
||||||
background: url(../wp-images/wp-small.png) #fff no-repeat top center;
|
background: url(../wp-images/wp-small.png) #fff no-repeat top center;
|
||||||
border: 2px solid #333;
|
border: 2px solid #333;
|
||||||
|
|
Loading…
Reference in New Issue