Make WordPress Core

Changeset 1065


Ignore:
Timestamp:
04/13/2004 06:56:38 AM (21 years ago)
Author:
alex_t_king
Message:

added the first localization strings in index.php

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1062 r1065  
    4242<div class="post">
    4343     <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    44     <div class="meta">Filed under: <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
     44    <div class="meta"><?php $lang->str('filed_under'); ?> <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    4545   
    4646    <div class="storycontent">
     
    6161
    6262<?php } } else { // end foreach, end if any posts ?>
    63 <p>Sorry, no posts matched your criteria.</p>
     63<p><?php $lang->str('no_posts_matched'); ?></p>
    6464<?php } ?>
    6565</div>
     
    7171<ul>
    7272    <?php get_links_list(); ?>
    73  <li id="categories">Categories:
     73 <li id="categories"><?php $lang->str('categories'); ?>
    7474    <ul>
    7575    <?php wp_list_cats(); ?>
     
    7777 </li>
    7878 <li id="search">
    79    <label for="s">Search:</label>   
     79   <label for="s"><?php $lang->str('search'); ?></label>   
    8080   <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
    8181    <div>
    8282        <input type="text" name="s" id="s" size="15" /><br />
    83         <input type="submit" name="submit" value="search" />
     83        <input type="submit" name="submit" value="<?php $lang->str('search_button'); ?>" />
    8484    </div>
    8585    </form>
    8686 </li>
    87  <li id="archives">Archives:
     87 <li id="archives"><?php $lang->str('archives'); ?>
    8888    <ul>
    8989     <?php get_archives('monthly'); ?>
     
    9393    <?php get_calendar(); ?>
    9494 </li>
    95  <li id="other">Other:
     95 <li id="other"><?php $lang->str('other'); ?>
    9696    <ul>
    97         <li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php">Login</a></li>
    98         <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php">Register</a></li>
     97        <li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php $lang->str('login'); ?></a></li>
     98        <li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php $lang->str('register'); ?></a></li>
    9999    </ul>
    100100 </li>
    101  <li id="meta">Meta:
     101 <li id="meta"><?php $lang->str('meta'); ?>
    102102    <ul>
    103         <li><a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS"><abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
    104         <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="The latest comments to all posts in RSS">Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
    105         <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
    106         <li><a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform">WP</a></li>
     103        <li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php $lang->str('rss_2_title'); ?>"><?php $lang->str('rss_2'); ?></a></li>
     104        <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php $lang->str('comments_rss_2_title'); ?>"><?php $lang->str('comments_rss_2'); ?></a></li>
     105        <li><a href="http://validator.w3.org/check/referer" title="<?php $lang->str('valid_xhtml_title'); ?>"><?php $lang->str('valid_xhtml'); ?></a></li>
     106        <li><a href="http://wordpress.org" title="<?php $lang->str('powered_by_title'); ?>">WP</a></li>
    107107    </ul>
    108108 </li>
     
    114114</div>
    115115
    116 <p class="credit"><!--<?php echo $wpdb->querycount; ?> queries.--> <?php timer_stop(1); ?> || <cite>Powered by <a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform"><strong>WordPress</strong></a></cite></p>
     116<p class="credit"><!--<?php echo $wpdb->querycount; ?> queries.--> <?php timer_stop(1); ?> || <cite><?php $lang->str('powered_by'); ?> <a href="http://wordpress.org" title="<?php $lang->str('powered_by_title'); ?>"><strong><?php $lang->str('wordpress'); ?></strong></a></cite></p>
    117117</body>
    118118</html>
  • trunk/wp-config-extra.php

    r628 r1065  
    11<?php
    2 // this file contains customizable arrays for smilies, weekdays and month names.
    32
    4    
    5 // the weekdays and the months.. translate them if necessary
    6 $weekday[0]='Sunday';
    7 $weekday[1]='Monday';
    8 $weekday[2]='Tuesday';
    9 $weekday[3]='Wednesday';
    10 $weekday[4]='Thursday';
    11 $weekday[5]='Friday';
    12 $weekday[6]='Saturday';
     3// this file contains customizable arrays for smilies.
     4// here's the conversion table, you can modify it if you know what you're doing
    135
    14 // the months, translate them if necessary - note: this isn't active everywhere yet
    15 $month['01']='January';
    16 $month['02']='February';
    17 $month['03']='March';
    18 $month['04']='April';
    19 $month['05']='May';
    20 $month['06']='June';
    21 $month['07']='July';
    22 $month['08']='August';
    23 $month['09']='September';
    24 $month['10']='October';
    25 $month['11']='November';
    26 $month['12']='December';
    27 
    28 // here's the conversion table, you can modify it if you know what you're doing
    296$wpsmiliestrans = array(
    307    ' :)'        => 'icon_smile.gif',
  • trunk/wp-includes/languages/english.php

    r1064 r1065  
     1<?php
     2
     3// english language file
     4
     5$lang = new language('WordPress'
     6                    ,'http://wordpress.org/'
     7                    ,'ISO-8859-I'
     8                    ,'English'
     9                    );
     10
     11$lang->strings = array(
     12
     13"wordpress" => "WordPress"
     14
     15// Blog template strings
     16
     17,"archives" => "Archives:"
     18,"categories" => "Categories:"
     19,"comments_rss_2" => 'Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'
     20,"comments_rss_2_title" => "The latest comments to all posts in RSS"
     21,"filed_under" => "Filed under:"
     22,"login" => "Login"
     23,"meta" => "Meta:"
     24,"no_posts_matched" => "Sorry, no posts matched your criteria."
     25,"other" => "Other:"
     26,"powered_by" => "Powered by "
     27,"powered_by_title" => "Powered by WordPress, state-of-the-art semantic personal publishing platform"
     28,"register" => "Register"
     29,"rss_2" => '<abbr title="Really Simple Syndication">RSS</abbr> 2.0'
     30,"rss_2_title" => "Syndicate this site using RSS"
     31,"search" => "Search:"
     32,"search_buttom" => "search"
     33,"valid_xhtml" => 'Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'
     34,"valid_xhtml_title" => "This page validates as XHTML 1.0 Transitional"
     35
     36// Admin strings
     37
     38);
     39
     40// the weekdays and the months.. translate them if necessary
     41$weekday[0]='Sunday';
     42$weekday[1]='Monday';
     43$weekday[2]='Tuesday';
     44$weekday[3]='Wednesday';
     45$weekday[4]='Thursday';
     46$weekday[5]='Friday';
     47$weekday[6]='Saturday';
     48
     49// the months, translate them if necessary - note: this isn't active everywhere yet
     50$month['01']='January';
     51$month['02']='February';
     52$month['03']='March';
     53$month['04']='April';
     54$month['05']='May';
     55$month['06']='June';
     56$month['07']='July';
     57$month['08']='August';
     58$month['09']='September';
     59$month['10']='October';
     60$month['11']='November';
     61$month['12']='December';
     62
     63?>
  • trunk/wp-settings.php

    r1010 r1065  
    4343require_once (ABSPATH . WPINC . '/links.php');
    4444require_once (ABSPATH . WPINC . '/kses.php');
     45require_once (ABSPATH . WPINC . '/class-language.php');
    4546
    4647//setup the old globals from b2config.php
     
    7778}
    7879
     80// temporarily hardcoded, AK
     81
     82require_once (ABSPATH . WPINC . '/languages/english.php');
     83
    7984?>
Note: See TracChangeset for help on using the changeset viewer.