added the first localization strings in index.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@1065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7bd73866c7
commit
9e6a5ab947
30
index.php
30
index.php
|
@ -41,7 +41,7 @@ require('wp-blog-header.php');
|
|||
|
||||
<div class="post">
|
||||
<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>
|
||||
<div class="meta">Filed under: <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
<div class="meta"><?php $lang->str('filed_under'); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
|
||||
|
||||
<div class="storycontent">
|
||||
<?php the_content(); ?>
|
||||
|
@ -60,7 +60,7 @@ require('wp-blog-header.php');
|
|||
</div>
|
||||
|
||||
<?php } } else { // end foreach, end if any posts ?>
|
||||
<p>Sorry, no posts matched your criteria.</p>
|
||||
<p><?php $lang->str('no_posts_matched'); ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
@ -70,21 +70,21 @@ require('wp-blog-header.php');
|
|||
|
||||
<ul>
|
||||
<?php get_links_list(); ?>
|
||||
<li id="categories">Categories:
|
||||
<li id="categories"><?php $lang->str('categories'); ?>
|
||||
<ul>
|
||||
<?php wp_list_cats(); ?>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="search">
|
||||
<label for="s">Search:</label>
|
||||
<label for="s"><?php $lang->str('search'); ?></label>
|
||||
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
|
||||
<div>
|
||||
<input type="text" name="s" id="s" size="15" /><br />
|
||||
<input type="submit" name="submit" value="search" />
|
||||
<input type="submit" name="submit" value="<?php $lang->str('search_button'); ?>" />
|
||||
</div>
|
||||
</form>
|
||||
</li>
|
||||
<li id="archives">Archives:
|
||||
<li id="archives"><?php $lang->str('archives'); ?>
|
||||
<ul>
|
||||
<?php get_archives('monthly'); ?>
|
||||
</ul>
|
||||
|
@ -92,18 +92,18 @@ require('wp-blog-header.php');
|
|||
<li id="calendar">
|
||||
<?php get_calendar(); ?>
|
||||
</li>
|
||||
<li id="other">Other:
|
||||
<li id="other"><?php $lang->str('other'); ?>
|
||||
<ul>
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php">Login</a></li>
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php">Register</a></li>
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-login.php"><?php $lang->str('login'); ?></a></li>
|
||||
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-register.php"><?php $lang->str('register'); ?></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="meta">Meta:
|
||||
<li id="meta"><?php $lang->str('meta'); ?>
|
||||
<ul>
|
||||
<li><a href="<?php bloginfo('rss2_url'); ?>" title="Syndicate this site using RSS"><abbr title="Really Simple Syndication">RSS</abbr> 2.0</a></li>
|
||||
<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>
|
||||
<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>
|
||||
<li><a href="http://wordpress.org" title="Powered by WordPress, state-of-the-art semantic personal publishing platform">WP</a></li>
|
||||
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php $lang->str('rss_2_title'); ?>"><?php $lang->str('rss_2'); ?></a></li>
|
||||
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php $lang->str('comments_rss_2_title'); ?>"><?php $lang->str('comments_rss_2'); ?></a></li>
|
||||
<li><a href="http://validator.w3.org/check/referer" title="<?php $lang->str('valid_xhtml_title'); ?>"><?php $lang->str('valid_xhtml'); ?></a></li>
|
||||
<li><a href="http://wordpress.org" title="<?php $lang->str('powered_by_title'); ?>">WP</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
@ -113,6 +113,6 @@ require('wp-blog-header.php');
|
|||
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
|
@ -1,31 +1,8 @@
|
|||
<?php
|
||||
// this file contains customizable arrays for smilies, weekdays and month names.
|
||||
|
||||
|
||||
// the weekdays and the months.. translate them if necessary
|
||||
$weekday[0]='Sunday';
|
||||
$weekday[1]='Monday';
|
||||
$weekday[2]='Tuesday';
|
||||
$weekday[3]='Wednesday';
|
||||
$weekday[4]='Thursday';
|
||||
$weekday[5]='Friday';
|
||||
$weekday[6]='Saturday';
|
||||
|
||||
// the months, translate them if necessary - note: this isn't active everywhere yet
|
||||
$month['01']='January';
|
||||
$month['02']='February';
|
||||
$month['03']='March';
|
||||
$month['04']='April';
|
||||
$month['05']='May';
|
||||
$month['06']='June';
|
||||
$month['07']='July';
|
||||
$month['08']='August';
|
||||
$month['09']='September';
|
||||
$month['10']='October';
|
||||
$month['11']='November';
|
||||
$month['12']='December';
|
||||
|
||||
// this file contains customizable arrays for smilies.
|
||||
// here's the conversion table, you can modify it if you know what you're doing
|
||||
|
||||
$wpsmiliestrans = array(
|
||||
' :)' => 'icon_smile.gif',
|
||||
' :D' => 'icon_biggrin.gif',
|
||||
|
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
|
||||
// english language file
|
||||
|
||||
$lang = new language('WordPress'
|
||||
,'http://wordpress.org/'
|
||||
,'ISO-8859-I'
|
||||
,'English'
|
||||
);
|
||||
|
||||
$lang->strings = array(
|
||||
|
||||
"wordpress" => "WordPress"
|
||||
|
||||
// Blog template strings
|
||||
|
||||
,"archives" => "Archives:"
|
||||
,"categories" => "Categories:"
|
||||
,"comments_rss_2" => 'Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'
|
||||
,"comments_rss_2_title" => "The latest comments to all posts in RSS"
|
||||
,"filed_under" => "Filed under:"
|
||||
,"login" => "Login"
|
||||
,"meta" => "Meta:"
|
||||
,"no_posts_matched" => "Sorry, no posts matched your criteria."
|
||||
,"other" => "Other:"
|
||||
,"powered_by" => "Powered by "
|
||||
,"powered_by_title" => "Powered by WordPress, state-of-the-art semantic personal publishing platform"
|
||||
,"register" => "Register"
|
||||
,"rss_2" => '<abbr title="Really Simple Syndication">RSS</abbr> 2.0'
|
||||
,"rss_2_title" => "Syndicate this site using RSS"
|
||||
,"search" => "Search:"
|
||||
,"search_buttom" => "search"
|
||||
,"valid_xhtml" => 'Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'
|
||||
,"valid_xhtml_title" => "This page validates as XHTML 1.0 Transitional"
|
||||
|
||||
// Admin strings
|
||||
|
||||
);
|
||||
|
||||
// the weekdays and the months.. translate them if necessary
|
||||
$weekday[0]='Sunday';
|
||||
$weekday[1]='Monday';
|
||||
$weekday[2]='Tuesday';
|
||||
$weekday[3]='Wednesday';
|
||||
$weekday[4]='Thursday';
|
||||
$weekday[5]='Friday';
|
||||
$weekday[6]='Saturday';
|
||||
|
||||
// the months, translate them if necessary - note: this isn't active everywhere yet
|
||||
$month['01']='January';
|
||||
$month['02']='February';
|
||||
$month['03']='March';
|
||||
$month['04']='April';
|
||||
$month['05']='May';
|
||||
$month['06']='June';
|
||||
$month['07']='July';
|
||||
$month['08']='August';
|
||||
$month['09']='September';
|
||||
$month['10']='October';
|
||||
$month['11']='November';
|
||||
$month['12']='December';
|
||||
|
||||
?>
|
|
@ -42,6 +42,7 @@ require_once (ABSPATH . WPINC . '/class-xmlrpc.php');
|
|||
require_once (ABSPATH . WPINC . '/class-xmlrpcs.php');
|
||||
require_once (ABSPATH . WPINC . '/links.php');
|
||||
require_once (ABSPATH . WPINC . '/kses.php');
|
||||
require_once (ABSPATH . WPINC . '/class-language.php');
|
||||
|
||||
//setup the old globals from b2config.php
|
||||
//
|
||||
|
@ -76,4 +77,8 @@ if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && get_settings('ac
|
|||
}
|
||||
}
|
||||
|
||||
// temporarily hardcoded, AK
|
||||
|
||||
require_once (ABSPATH . WPINC . '/languages/english.php');
|
||||
|
||||
?>
|
Loading…
Reference in New Issue