Mark strings for translation.

git-svn-id: https://develop.svn.wordpress.org/trunk@1110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-04-21 02:28:22 +00:00
parent 83fc5c942e
commit 82434a0fc2
2 changed files with 40 additions and 37 deletions

View File

@ -1,5 +1,7 @@
<?php
$title = 'General Options';
require_once('../wp-includes/wp-l10n.php');
$title = __('General Options');
function add_magic_quotes($array) {
foreach ($array as $k => $v) {
@ -41,72 +43,72 @@ include('options-head.php');
?>
<div class="wrap">
<h2>General Options</h2>
<h2><?php _e('General Options') ?></h2>
<form name="form1" method="post" action="options.php">
<input type="hidden" name="action" value="update" />
<input type="hidden" name="action" value="update" /> <input type="hidden" name="page_options" value="'blogname','blogdescription','siteurl','admin_email','users_can_register','new_users_can_blog','gmt_offset','date_format','time_format'" />
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr valign="top">
<th width="33%" scope="row">Weblog title: </th>
<th width="33%" scope="row"><?php _e('Weblog title:') ?></th>
<td><input name="blogname" type="text" id="blogname" value="<?php echo get_settings('blogname'); ?>" size="40" /></td>
</tr>
<tr valign="top">
<th scope="row">Tagline:</th>
<th scope="row"><?php _e('Tagline:') ?></th>
<td><input name="blogdescription" type="text" id="blogdescription" style="width: 95%" value="<?php echo get_settings('blogdescription'); ?>" size="45" />
<br />
In a few words, explain what this weblog is about.</td>
<?php _e('In a few words, explain what this weblog is about.') ?></td>
</tr>
<tr valign="top">
<th scope="row">Web address (URI): </th>
<th scope="row"><?php _e('Web address (URI):') ?> </th>
<td><input name="siteurl" type="text" id="siteurl" value="<?php echo get_settings('siteurl'); ?>" size="40" class="code" /></td>
</tr>
<tr valign="top">
<th scope="row">E-mail address: </th>
<th scope="row"><?php _e('E-mail address:') ?> </th>
<td><input name="admin_email" type="text" id="admin_email" value="<?php echo get_settings('admin_email'); ?>" size="40" class="code" />
<br />
This address is used only for admin purposes. </td>
<?php _e('This address is used only for admin purposes.') ?></td>
</tr>
<tr valign="top">
<th scope="row">Membership:</th>
<th scope="row"><?php _e('Membership:') ?></th>
<td> <label for="users_can_register">
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_settings('users_can_register')); ?> />
Anyone can register</label>
<?php _e('Anyone can register') ?></label>
<br />
<label for="new_users_can_blog">
<input name="new_users_can_blog" type="checkbox" id="new_users_can_blog" value="1" <?php checked('1', get_settings('new_users_can_blog')); ?> />
Any registered member can publish articles </label></td>
<?php _e('Any registered member can publish articles') ?> </label></td>
</tr>
</table>
<fieldset class="options">
<legend>Date and Time</legend>
<legend><?php _e('Date and Time') ?></legend>
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr>
<th scope="row" width="33%"><acronym title="Greenwich Meridian Time">GMT</acronym> time is: </th>
<th scope="row" width="33%"><?php _e('<acronym title="Greenwich Meridian Time">GMT</acronym> time is:') ?> </th>
<td><code><?php echo gmdate('Y-m-d g:i:s a'); ?></code></td>
</tr>
<tr>
<th scope="row">Times in the weblog should differ by: </th>
<th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th>
<td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php echo get_settings('gmt_offset'); ?>" />
hours </td>
<?php _e('hours') ?> </td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td>The following use the same syntax as the <a href="http://php.net/date">PHP <code>date()</code> function</a>. Save option to update sample output. </td>
<td><?php _e('The following use the same syntax as the <a href="http://php.net/date">PHP <code>date()</code> function</a>. Save option to update sample output.') ?> </td>
</tr>
<tr>
<th scope="row">Default date format:</th>
<th scope="row"><?php _e('Default date format:') ?></th>
<td><input name="date_format" type="text" id="date_format" size="30" value="<?php echo get_settings('date_format'); ?>" /><br />
Output: <strong><?php echo date(get_settings('date_format'), current_time('timestamp')); ?></strong></td>
</tr>
<tr>
<th scope="row">Default time format:</th>
<th scope="row"><?php _e('Default time format:') ?></th>
<td><input name="time_format" type="text" id="time_format" size="30" value="<?php echo get_settings('time_format'); ?>" /><br />
Output: <strong><?php echo date(get_settings('time_format'), current_time('timestamp')); ?></strong></td>
</tr>
</table>
</fieldset>
<p style="text-align: right;">
<input type="submit" name="Submit" value="Update Options" />
<input type="submit" name="Submit" value="<?php _e('Update Options') ?>" />
</p>
</form>
</div>

View File

@ -1,5 +1,7 @@
<?php
$title = 'Writing Options';
require_once('../wp-includes/wp-l10n.php');
$title = __('Writing Options');
$parent_file = 'options-general.php';
function add_magic_quotes($array) {
@ -49,14 +51,14 @@ include('options-head.php');
<input type="hidden" name="page_options" value="'default_post_edit_rows','blog_charset','use_smilies','use_balanceTags','advanced_edit','ping_sites','mailserver_url', 'mailserver_port','mailserver_login','mailserver_pass','default_category'" />
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr valign="top">
<th scope="row"> When starting a post, show: </th>
<th scope="row"> <?php _e('When starting a post, show:') ?> </th>
<td><?php get_settings('advanced_edit') ?><label>
<input name="advanced_edit" type="radio" value="0" <?php checked('0', get_settings('advanced_edit')); ?> />
Simple controls</label>
<?php _e('Simple controls') ?></label>
<br />
<label>
<input name="advanced_edit" type="radio" value="1" <?php checked('1', get_settings('advanced_edit')); ?> />
Advanced controls</label>
<?php _e('Advanced controls') ?></label>
<label for="advanced_edit"></label></td>
</tr>
<tr valign="top">
@ -65,45 +67,44 @@ Advanced controls</label>
lines </td>
</tr>
<tr valign="top">
<th scope="row">Formatting:</th>
<th scope="row"><?php _e('Formatting:') ?></th>
<td> <label for="label">
<input name="use_smilies" type="checkbox" id="label" value="1" <?php checked('1', get_settings('use_smilies')); ?> />
Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics</label>
on display <br /> <label for="label2">
<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label> <br /> <label for="label2">
<input name="use_balanceTags" type="checkbox" id="label2" value="1" <?php checked('1', get_settings('use_balanceTags')); ?> />
WordPress should correct invalidly nested XHTML automatically</label></td>
<?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label></td>
</tr>
</table>
<fieldset class="options">
<legend>Update Services</legend>
<p>Enter the sites that you would like to notify when you publish a new post. For a list of some recommended sites to ping please see <a href="http://wiki.wordpress.org/index.php/UpdateServices">Update Services</a> on the wiki. Seperate multiple URIs by line breaks.</p>
<legend><?php _e('Update Services') ?></legend>
<p><?php printf(__('Enter the sites that you would like to notify when you publish a new post. For a list of some recommended sites to ping please see <a href="%s">Update Services</a> on the wiki. Seperate multiple URIs by line breaks.'), 'http://wiki.wordpress.org/index.php/UpdateServices') ?></p>
<textarea name="ping_sites" id="ping_sites" style="width: 98%;"><?php echo get_settings('ping_sites'); ?></textarea>
</fieldset>
<fieldset class="options">
<legend>Writing by Email</legend>
<p>To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it's a good idea to keep this address very secret. Here are three random strings you could use: <code><?php echo substr(md5(uniqid(microtime())),0,5); ?></code>, <code><?php echo substr(md5(uniqid(microtime())),0,5); ?></code>, <code><?php echo substr(md5(uniqid(microtime())),0,5); ?></code>.</p>
<legend><?php _e('Writing by Email') ?></legend>
<p><?php printf(__('To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p>
<table width="100%" cellspacing="2" cellpadding="5" class="editform">
<tr valign="top">
<th scope="row"> Mail server:</th>
<th scope="row"><?php _e('Mail server:') ?></th>
<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php echo get_settings('mailserver_url'); ?>" size="40" />
<label for="port">Port:</label>
<label for="port"><?php _e('Port:') ?></label>
<input name="mailserver_port" type="text" id="mailserver_port" value="<?php echo get_settings('mailserver_port'); ?>" size="6" />
</td>
</tr>
<tr valign="top">
<th width="33%" scope="row"> Login name:</th>
<th width="33%" scope="row"><?php _e('Login name:') ?></th>
<td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php echo get_settings('mailserver_login'); ?>" size="40" /></td>
</tr>
<tr valign="top">
<th scope="row">Password:</th>
<th scope="row"><?php _e('Password:') ?></th>
<td>
<input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php echo get_settings('mailserver_pass'); ?>" size="40" />
</td>
</tr>
<tr valign="top">
<th scope="row">Usual category:</th>
<th scope="row"><?php _e('Usual category:') ?></th>
<td><select name="default_category" id="default_category">
<?php
$categories = $wpdb->get_results("SELECT * FROM $tablecategories ORDER BY cat_name");
@ -118,7 +119,7 @@ endforeach;
</table>
</fieldset>
<p style="text-align: right;">
<input type="submit" name="Submit" value="Update Options" />
<input type="submit" name="Submit" value="<?php _e('Update Options') ?>" />
</p>
</form>
</div>