Skip to content

Commit

Permalink
Use Network and Site for labels. see #11644
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@12934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Feb 3, 2010
1 parent 3ff2ace commit 559888b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
7 changes: 3 additions & 4 deletions wp-admin/ms-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if ( !is_multisite() )
wp_die( __('Multisite support is not enabled.') );

$title = __('Site Admin');
$title = __('Network Admin');
$parent_file = 'ms-admin.php';

function index_css() {
Expand All @@ -25,15 +25,14 @@ function index_css() {
$blog_text = sprintf( _n( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) );

$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
$title = __( 'Site Admin' );
?>

<div class="wrap">
<?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2>

<ul class="subsubsub">
<li><a href="ms-sites.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li>
<li><a href="ms-sites.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Site'); ?></strong></a> | </li>
<li><a href="ms-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>
</ul>
<br clear='all' />
Expand All @@ -53,7 +52,7 @@ function index_css() {
<p>
<input type="hidden" name="action" value="blogs" />
<input type="text" name="s" value="" size="17" />
<input class="button" type="submit" name="blog_name" value="<?php esc_attr_e("Search Blogs"); ?>" />
<input class="button" type="submit" name="blog_name" value="<?php esc_attr_e("Search Sites"); ?>" />
</p>
</form>

Expand Down
15 changes: 7 additions & 8 deletions wp-admin/ms-sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
if ( !is_multisite() )
wp_die( __('Multisite support is not enabled.') );

$title = __('Blogs');
$title = __('Sites');
$parent_file = 'ms-admin.php';

wp_enqueue_script( 'admin-forms' );
Expand Down Expand Up @@ -82,7 +82,7 @@
?>
<div class="wrap">
<?php screen_icon(); ?>
<h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details->domain . $details->path; ?>'>http://<?php echo $details->domain . $details->path; ?></a></h2>
<h2><?php _e('Edit Site'); ?> - <a href='http://<?php echo $details->domain . $details->path; ?>'>http://<?php echo $details->domain . $details->path; ?></a></h2>
<form method="post" action="ms-edit.php?action=updateblog">
<?php wp_nonce_field('editblog'); ?>
<input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" />
Expand Down Expand Up @@ -372,7 +372,7 @@

<div class="wrap" style="position:relative;">
<?php screen_icon(); ?>
<h2><?php _e('Blogs') ?></h2>
<h2><?php _e('Sites') ?></h2>

<form action="ms-sites.php" method="get" id="ms-search">
<input type="hidden" name="action" value="blogs" />
Expand Down Expand Up @@ -592,13 +592,12 @@

<div class="wrap">
<a name="form-add-blog"></a>
<?php screen_icon(); ?>
<h2><?php _e('Add Blog') ?></h2>
<h2><?php _e('Add Site') ?></h2>
<form method="post" action="ms-edit.php?action=addblog">
<?php wp_nonce_field('add-blog') ?>
<table class="form-table">
<tr class="form-field form-required">
<th style="text-align:center;" scope='row'><?php _e('Blog Address') ?></th>
<th style="text-align:center;" scope='row'><?php _e('Site Address') ?></th>
<td>
<?php if ( is_subdomain_install() ) { ?>
<input name="blog[domain]" type="text" title="<?php _e('Domain') ?>"/>.<?php echo $current_site->domain;?>
Expand All @@ -610,7 +609,7 @@
</td>
</tr>
<tr class="form-field form-required">
<th style="text-align:center;" scope='row'><?php _e('Blog Title') ?></th>
<th style="text-align:center;" scope='row'><?php _e('Site Title') ?></th>
<td><input name="blog[title]" type="text" size="20" title="<?php _e('Title') ?>"/></td>
</tr>
<tr class="form-field form-required">
Expand All @@ -622,7 +621,7 @@
</tr>
</table>
<p class="submit">
<input class="button" type="submit" name="go" value="<?php esc_attr_e('Add Blog') ?>" /></p>
<input class="button" type="submit" name="go" value="<?php esc_attr_e('Add Site') ?>" /></p>
</form>
</div>
<?php
Expand Down

0 comments on commit 559888b

Please sign in to comment.