Changeset 1164
- Timestamp:
- 04/25/2004 03:59:12 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-permalink.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-permalink.php
r1128 r1164 1 1 <?php 2 $title = 'Permalink Options'; 2 require_once('../wp-includes/wp-l10n.php'); 3 4 $title = __('Permalink Options'); 3 5 $parent_file = 'options-general.php'; 4 6 … … 35 37 require_once('admin-header.php'); 36 38 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.")); 38 40 } 39 41 require('./options-head.php'); 40 42 ?> 41 43 <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 “tags” 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 “tags” are available:</p>')?> 44 46 <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 “This Is A Great Post!” becomes “<code>this-is-a-great-post</code>” 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 “This Is A Great Post!” becomes “<code>this-is-a-great-post</code>” 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> 50 52 </ul> 51 < p>So for example a value like:</p>53 <?php _e('<p>So for example a value like:</p> 52 54 <p><code>/archives/%year%/%monthnum%/%day%/%postname%/</code> </p> 53 55 <p>would give you a permalink like:</p> … … 55 57 <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> 56 58 <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>') ?> 58 60 <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>') ?> 60 62 <p> 61 63 <input name="permalink_structure" type="text" style="width: 98%;" value="<?php echo $permalink_structure; ?>" /> 62 64 </p> 63 65 <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') ?>"> 65 67 </p> 66 68 </form> … … 68 70 if ($permalink_structure) { 69 71 ?> 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) ?> 71 73 <?php 72 74 $site_root = str_replace('http://', '', trim(get_settings('siteurl'))); … … 87 89 </textarea> 88 90 </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') ?> 90 92 </form> 91 93 </div> … … 94 96 ?> 95 97 <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.') ?> 98 99 </p> 99 100 <?php
Note: See TracChangeset
for help on using the changeset viewer.