Make WordPress Core

Changeset 1164


Ignore:
Timestamp:
04/25/2004 03:59:12 AM (22 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r1128 r1164  
    11<?php
    2 $title = 'Permalink Options';
     2require_once('../wp-includes/wp-l10n.php');
     3
     4$title = __('Permalink Options');
    35$parent_file = 'options-general.php';
    46
     
    3537    require_once('admin-header.php');
    3638    if ($user_level <= 6) {
    37         die("You have do not have sufficient permissions to edit the options for this blog.");
     39        die(__("You have do not have sufficient permissions to edit the options for this blog."));
    3840    }
    3941    require('./options-head.php');
    4042?>
    4143<div class="wrap">
    42   <h2>Edit Permalink Structure</h2>
    43   <p>WordPress offers you the ability to create a custom URI structure for your permalinks and archives. The following &#8220;tags&#8221; are available:</p>
     44  <h2><?php _e('Edit Permalink Structure') ?></h2>
     45  <?php _e('<p>WordPress offers you the ability to create a custom URI structure for your permalinks and archives. The following &#8220;tags&#8221; are available:</p>')?>
    4446  <ul>
    45     <li><code>%year%</code> --- The year of the post, 4 digits, for example <code>2004</code> </li>
    46     <li><code>%monthnum%</code> --- Month of the year, for example <code>05</code></li>
    47     <li><code>%day% </code>--- Day of the month, for example <code>28</code></li>
    48     <li><code>%postname%</code> --- A sanitized version of the title of the post. So &#8220;This Is A Great Post!&#8221; becomes &#8220;<code>this-is-a-great-post</code>&#8221; in the URI </li>
    49     <li><code>%post_id%</code> --- The unique ID # of the post, for example <code>423</code> <strong></strong></li>
     47    <li><code>%year%</code> --- <?php _e('The year of the post, 4 digits, for example <code>2004</code>') ?> </li>
     48    <li><code>%monthnum%</code> --- <?php _e('Month of the year, for example <code>05</code>') ?></li>
     49    <li><code>%day% </code>--- <?php _e('Day of the month, for example <code>28</code>') ?></li>
     50    <li><code>%postname%</code> --- <?php _e('A sanitized version of the title of the post. So &#8220;This Is A Great Post!&#8221; becomes &#8220;<code>this-is-a-great-post</code>&#8221; in the URI') ?> </li>
     51    <li><code>%post_id%</code> --- <?php _e('The unique ID # of the post, for example <code>423</code> <strong></strong>') ?></li>
    5052  </ul>
    51   <p>So for example a value like:</p>
     53  <?php _e('<p>So for example a value like:</p>
    5254  <p><code>/archives/%year%/%monthnum%/%day%/%postname%/</code> </p>
    5355  <p>would give you a permalink like:</p>
     
    5557  <p> In general for this you must use mod_rewrite, however if you put a filename at the beginning WordPress will attempt to use that to pass the arguments, for example:</p>
    5658  <p><code>/index.php/archives/%year%/%monthnum%/%day%/%postname%/</code> </p>
    57   <p>If you use this option you can ignore the mod_rewrite rules. </p>
     59  <p>If you use this option you can ignore the mod_rewrite rules. </p>') ?>
    5860  <form name="form" action="options-permalink.php" method="post">
    59     <p>Use the template tags above to create a virtual site structure:</p>
     61    <?php _e('<p>Use the template tags above to create a virtual site structure:</p>') ?>
    6062    <p>
    6163      <input name="permalink_structure" type="text" style="width: 98%;" value="<?php echo $permalink_structure; ?>" />
    6264    </p>
    6365    <p class="submit">
    64       <input type="submit" name="submit" value="Update Permalink Structure">
     66      <input type="submit" name="submit" value="<?php _e('Update Permalink Structure') ?>">
    6567    </p>
    6668  </form>
     
    6870 if ($permalink_structure) {
    6971?>
    70   <p>Using the permalink structure value you currently have, <code><?php echo $permalink_structure; ?></code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file.</p>
     72  <?php printf(__('<p>Using the permalink structure value you currently have, <code>%s</code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file.</p>'), $permalink_structure) ?>
    7173  <?php
    7274$site_root = str_replace('http://', '', trim(get_settings('siteurl')));
     
    8789    </textarea>
    8890    </p>
    89     <p>If your <code>.htaccess</code> file is writable by WordPress, you can <a href="templates.php?file=.htaccess">edit it through your template interface</a>.</p>
     91    <?php printf(__('<p>If your <code>.htaccess</code> file is writable by WordPress, you can <a href="%s">edit it through your template interface</a>.</p>'), 'templates.php?file=.htaccess') ?>
    9092</form>
    9193</div>
     
    9496?>
    9597<p>
    96 You are not currently using customized permalinks. No special mod_rewrite
    97 rules are needed.
     98<?php _e('You are not currently using customized permalinks. No special mod_rewrite rules are needed.') ?>
    9899</p>
    99100<?php
Note: See TracChangeset for help on using the changeset viewer.