Changeset 1677

Show
Ignore:
Timestamp:
05/09/08 00:53:48 (8 months ago)
Author:
michaeltwofish
Message:

K2 internationalization. Closes #312. Thanks iMassimiliano.

Location:
trunk/htdocs/system/themes/k2
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/system/themes/k2/404.php

    r1589 r1677  
    66 
    77     <div class="entry-head"> 
    8       <h3 class="entry-title">Error!</h3> 
     8      <h3 class="entry-title"><?php _e('Error!'); ?></h3> 
    99     </div> 
    1010 
    1111     <div class="entry-content"> 
    12       <p>The requested post was not found.</p> 
     12      <p><?php _e('The requested post was not found.'); ?></p> 
    1313     </div> 
    1414 
  • trunk/htdocs/system/themes/k2/commentform.php

    r1477 r1677  
    44?> 
    55     <div class="comments"> 
    6       <h4 id="respond" class="reply">Leave a Reply</h4> 
     6      <h4 id="respond" class="reply"><?php _e('Leave a Reply'); ?></h4> 
    77<?php 
    88if ( Session::has_errors() ) { 
     
    1414        <p> 
    1515         <input type="text" name="name" id="name" value="<?php echo $commenter_name; ?>" size="22" tabindex="1"> 
    16          <label for="name"><small><strong>Name</strong></small></label> 
     16         <label for="name"><small><strong><?php _e('Name'); ?></strong></small></label> 
    1717        </p> 
    1818        <p> 
    1919         <input type="text" name="email" id="email" value="<?php echo $commenter_email; ?>" size="22" tabindex="2"> 
    20          <label for="email"><small><strong>Mail</strong> (will not be published)</small></label> 
     20         <label for="email"><small><strong><?php _e('Mail'); ?></strong> (<?php _e('will not be published'); ?>)</small></label> 
    2121        </p> 
    2222        <p> 
    2323         <input type="text" name="url" id="url" value="<?php echo $commenter_url; ?>" size="22" tabindex="3"> 
    24          <label for="url"><small><strong>Website</strong></small></label> 
     24         <label for="url"><small><strong><?php _e('Website'); ?></strong></small></label> 
    2525        </p> 
    2626       </div> 
     
    3131       </p> 
    3232       <p> 
    33         <input name="submit" type="submit" id="submit" tabindex="5" value="Submit"> 
     33        <input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit'); ?>"> 
    3434       </p> 
    3535       <div class="clear"></div> 
  • trunk/htdocs/system/themes/k2/comments.php

    r1591 r1677  
    66     
    77    <div class="comments"> 
    8      <h4><span id="comments"><?php echo $post->comments->moderated->count; ?> Responses to <?php echo $post->title; ?></span></h4> 
     8     <h4><span id="comments"><?php echo $post->comments->moderated->count; ?> <?php _e('Responses to'); ?> <?php echo $post->title; ?></span></h4> 
    99     <div class="metalinks"> 
    10       <span class="commentsrsslink"><a href="<?php echo $post->comment_feed_link; ?>">Feed for this Entry</a></span> 
     10      <span class="commentsrsslink"><a href="<?php echo $post->comment_feed_link; ?>"><?php _e('Feed for this Entry'); ?></a></span> 
    1111     </div> 
    1212      
     
    2222?> 
    2323      <li id="comment-<?php echo $comment->id; ?>" <?php echo $class; ?>> 
    24        <a href="#comment-<?php echo $comment->id; ?>" class="counter" title="Permanent Link to this Comment"><?php echo $comment->id; ?></a> 
     24       <a href="#comment-<?php echo $comment->id; ?>" class="counter" title="<?php _e('Permanent Link to this Comment'); ?>"><?php echo $comment->id; ?></a> 
    2525       <span class="commentauthor"><a href="<?php echo $comment->url; ?>" rel="external"><?php echo $comment->name; ?></a></span> 
    26        <small class="comment-meta"><a href="#comment-<?php echo $comment->id; ?>" title="Time of this comment"><?php echo $comment->date; ?></a><?php if ( $comment->status == Comment::STATUS_UNAPPROVED ) : ?> <em>In moderation</em><?php endif; ?></small> 
     26       <small class="comment-meta"><a href="#comment-<?php echo $comment->id; ?>" title="<?php _e('Time of this Comment'); ?>"><?php echo $comment->date; ?></a><?php if ( $comment->status == Comment::STATUS_UNAPPROVED ) : ?> <em><?php _e('In moderation'); ?></em><?php endif; ?></small> 
    2727        
    2828       <div class="comment-content"> 
  • trunk/htdocs/system/themes/k2/db_profiling.php

    r630 r1677  
    2929</style> 
    3030<div class="prof_container"> 
    31     <h1 class="prof_header">DB Profiling</h1> 
     31    <h1 class="prof_header"><?php _e('DB Profiling'); ?></h1> 
    3232    <?php 
    3333    $profiles= DB::get_profiles(); 
     
    4040        </code> 
    4141        <div class="prof_time"> 
    42             <p>Time to Execute: <strong><?php echo $profile->total_time; ?></strong></p> 
     42            <p><?php _e('Time to Execute:'); ?> <strong><?php echo $profile->total_time; ?></strong></p> 
    4343        </div> 
    4444        <?php if ( !empty( $profile->backtrace ) ) { ?> 
     
    5454    ?> 
    5555    <div class="prof_time_total"> 
    56         <p>Total Time Executing Queries: <?php echo $total_time_querying; ?></p> 
     56        <p><?php _e('Total Time Executing Queries:'); ?> <?php echo $total_time_querying; ?></p> 
    5757    </div> 
    5858</div> 
  • trunk/htdocs/system/themes/k2/entry.multiple.php

    r1589 r1677  
    1111       <small class="entry-meta"> 
    1212        <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    13         <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     13        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    1414        <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    1515<?php if ( $user ) { ?> 
    16         <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     16        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    1717<?php } ?> 
    1818<?php if ( is_array( $post->tags ) ) { ?> 
  • trunk/htdocs/system/themes/k2/entry.single.php

    r1596 r1677  
    2020      <small class="entry-meta"> 
    2121       <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    22        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     22       <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    2323    <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    2424<?php if ( $user ) { ?> 
    25        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     25       <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    2626<?php } ?> 
    2727<?php if ( is_array( $post->tags ) ) { ?> 
  • trunk/htdocs/system/themes/k2/footer.php

    r1522 r1677  
    77 
    88<p id="footer"> 
    9  <small><?php Options::out('title'); _e(' is powered by'); ?> <a href="http://www.habariproject.org/" title="Habari">Habari</a> <?php _e('and'); ?> a huge amount of  
    10  <a href="http://en.wikipedia.org/wiki/Caffeine" title="Caffeine" rel="nofollow">C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub></a></small><br> 
    11  <small><a href="<?php URL::out( 'atom_feed', array( 'index' => '1' ) ); ?>">Atom Entries</a> and <a href="<?php URL::out( 'atom_feed_comments' ); ?>">Atom Comments</a></small> 
     9 <small><?php Options::out('title'); _e(' is powered by'); ?> <a href="http://www.habariproject.org/" title="Habari">Habari</a> <?php _e('and a huge amount of'); ?>  
     10 <a href="http://en.wikipedia.org/wiki/Caffeine" title="<?php _e('Caffeine'); ?>" rel="nofollow">C<sub>8</sub>H<sub>10</sub>N<sub>4</sub>O<sub>2</sub></a></small><br> 
     11 <small><a href="<?php URL::out( 'atom_feed', array( 'index' => '1' ) ); ?>"><?php _e('Atom Entries'); ?></a> <?php _e('and'); ?> <a href="<?php URL::out( 'atom_feed_comments' ); ?>"><?php _e('Atom Comments'); ?></a></small> 
    1212</p> 
    1313 
  • trunk/htdocs/system/themes/k2/header.php

    r1589 r1677  
    3232} 
    3333if ( $user ) { ?> 
    34     <li class="admintab"><a href="<?php Site::out_url( 'admin' ); ?>" title="Admin area">Admin</a></li> 
     34    <li class="admintab"><a href="<?php Site::out_url( 'admin' ); ?>" title="<?php _e('Admin area'); ?>"><?php _e('Admin'); ?></a></li> 
    3535<?php } ?> 
    3636   </ul> 
  • trunk/htdocs/system/themes/k2/home.php

    r1590 r1677  
    1010       <h3 class="entry-title"><a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h3> 
    1111       <small class="entry-meta"> 
    12         <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    13         <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     12        <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> <?php _e('by'); ?> <?php echo $post->author->displayname; ?> <?php } ?> 
     13        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    1414        <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    1515<?php if ( $user ) { ?> 
    16         <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     16        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    1717<?php } ?> 
    1818<?php if ( is_array( $post->tags ) ) { ?> 
  • trunk/htdocs/system/themes/k2/loginform.php

    r1077 r1677  
    33if ( isset( $error ) && ( $error == 'Bad credentials' ) ) { 
    44?> 
    5      <p>That login is incorrect.</p> 
     5     <p><?php _e('That login is incorrect.'); ?></p> 
    66 
    77<?php 
     
    99if ( isset( $user ) && ( $user instanceOf User ) ) { 
    1010?> 
    11      <p>You are logged in as <a href="<?php URL::out( 'admin', 'page=user&user=' . $user->username ) ?>" title="Edit Your Profile"><?php echo $user->username; ?></a>.</p> 
    12      <p>Want to <a href="<?php Site::out_url( 'habari' ); ?>/user/logout">log out</a>?</p> 
     11     <p><?php _e('You are logged in as'); ?> <a href="<?php URL::out( 'admin', 'page=user&user=' . $user->username ) ?>" title="<?php _e('Edit Your Profile'); ?>"><?php echo $user->username; ?></a>.</p> 
     12     <p><?php _e('Want to'); ?> <a href="<?php Site::out_url( 'habari' ); ?>/user/logout"><?php _e('log out'); ?></a>?</p> 
    1313<?php 
    1414} 
     
    1818     <form method="post" action="<?php URL::out( 'user', array( 'page' => 'login' ) ); ?>" id="loginform"> 
    1919      <p> 
    20        <label for="habari_username">Name:</label> 
     20       <label for="habari_username"><?php _e('Name:'); ?></label> 
    2121       <input type="text" size="25" name="habari_username" id="habari_username"> 
    2222      </p> 
    2323      <p> 
    24        <label for="habari_password">Password:</label> 
     24       <label for="habari_password"><?php _e('Password:'); ?></label> 
    2525       <input type="password" size="25" name="habari_password" id="habari_password"> 
    2626      </p> 
    2727      <?php Plugins::act( 'theme_loginform_controls' ); ?> 
    2828      <p> 
    29        <input type="submit" value="Sign in"> 
     29       <input type="submit" value="<?php _e('Sign in'); ?>"> 
    3030      </p> 
    3131     </form> 
  • trunk/htdocs/system/themes/k2/page.single.php

    r1589 r1677  
    66 
    77     <div class="entry-head"> 
    8       <h3 class="entry-title">Page: <a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h3> 
     8      <h3 class="entry-title"><?php _e('Page:'); ?> <a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h3> 
    99      <small class="entry-meta"> 
    1010       <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    11        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     11       <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    1212    <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    1313<?php if ( $user ) { ?> 
    14        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     14       <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    1515<?php } ?> 
    1616<?php if ( is_array( $post->tags ) ) { ?> 
  • trunk/htdocs/system/themes/k2/search.php

    r1589 r1677  
    44   <div id="primary"> 
    55    <div id="primarycontent" class="hfeed"> 
    6      <h2>Search results for <?php echo htmlspecialchars( $criteria ); ?></h2> 
     6     <h2><?php _e('Search results for'); ?> <?php echo htmlspecialchars( $criteria ); ?></h2> 
    77<?php foreach ( $posts as $post ) { ?> 
    88     <div id="post-<?php echo $post->id; ?>" class="<?php echo $post->statusname; ?>"> 
     
    1212       <small class="entry-meta"> 
    1313        <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    14         <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     14        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    1515        <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    1616<?php if ( $user ) { ?> 
    17         <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     17        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    1818<?php } ?> 
    1919<?php if ( is_array( $post->tags ) ) { ?> 
  • trunk/htdocs/system/themes/k2/searchform.php

    r1096 r1677  
    22<?php Plugins::act( 'theme_searchform_before' ); ?> 
    33     <form method="get" id="searchform" action="<?php URL::out('display_search'); ?>"> 
    4       <p><input type="text" id="s" name="criteria" value="<?php if ( isset( $criteria ) ) { echo htmlentities($criteria, ENT_COMPAT, 'UTF-8'); } ?>"> <input type="submit" id="searchsubmit" value="Go!"></p> 
     4      <p><input type="text" id="s" name="criteria" value="<?php if ( isset( $criteria ) ) { echo htmlentities($criteria, ENT_COMPAT, 'UTF-8'); } ?>"> <input type="submit" id="searchsubmit" value="<?php _e('Go!'); ?>"></p> 
    55     </form> 
    66<?php Plugins::act( 'theme_searchform_after' ); ?> 
  • trunk/htdocs/system/themes/k2/sidebar.php

    r1589 r1677  
    33 
    44    <div id="search"> 
    5      <h2>Search</h2> 
     5     <h2><?php _e('Search'); ?></h2> 
    66<?php $theme->display ('searchform' ); ?> 
    77    </div>   
    88  
    99    <div class="sb-about"> 
    10      <h2>About</h2> 
     10     <h2><?php _e('About'); ?></h2> 
    1111     <p><?php Options::out('about'); ?></p> 
    1212    </div> 
    1313  
    1414    <div class="sb-user"> 
    15      <h2>User</h2> 
     15     <h2><?php _e('User'); ?></h2> 
    1616<?php $theme->display ( 'loginform' ); ?> 
    1717    </div>   
  • trunk/htdocs/system/themes/k2/tag.php

    r1589 r1677  
    1010       <h3 class="entry-title"><a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a></h3> 
    1111       <small class="entry-meta"> 
    12         <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> by <?php echo $post->author->displayname; ?> <?php } ?> 
    13         <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="Comments to this post"><?php echo $post->comments->approved->count; ?> 
     12        <span class="chronodata"><abbr class="published"><?php echo $post->pubdate_out; ?></abbr></span><?php if ( $show_author ) { ?> <?php _e('by'); ?> <?php echo $post->author->displayname; ?> <?php } ?> 
     13        <span class="commentslink"><a href="<?php echo $post->permalink; ?>#comments" title="<?php _e('Comments to this post'); ?>"><?php echo $post->comments->approved->count; ?> 
    1414        <?php echo _n( 'Comment', 'Comments', $post->comments->approved->count ); ?></a></span> 
    1515<?php if ( $user ) { ?> 
    16         <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="Edit post">Edit</a></span> 
     16        <span class="entry-edit"><a href="<?php URL::out( 'admin', 'page=publish&slug=' . $post->slug); ?>" title="<?php _e('Edit post'); ?>"><?php _e('Edit'); ?></a></span> 
    1717<?php } ?> 
    1818<?php if ( is_array( $post->tags ) ) { ?>