Skip to content

Commit

Permalink
another language-update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shen committed May 15, 2009
1 parent bda9106 commit b8027b4
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
22 changes: 13 additions & 9 deletions app/omb/plugins/wp.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

require('wp-content/language/lang_chooser.php'); //Loads the language-file
if (isset($_GET['s']) && !empty($_GET['s'])) {

redirect_to('http://dejafeed.com:8080/search.jsp?query='.$_GET['s']);
Expand All @@ -16,17 +16,17 @@ function post_password_required() {
}

function post_reply_link($arr,$post_id) {
require('wp-content/language/lang_chooser.php'); //Loads the language-file
// peh
// array('before' => ' | ', 'reply_text' => 'Reply', 'add_below' => 'prologue')
global $the_post,$request;
if (!isset($the_post->id))
return;


echo $arr['before'].'<a href="'.$request->url_for(array(
'resource' => 'posts',
'id' => $post_id,
)).'" class="post-reply-link" rel="'. $post_id.'">Reply</a>';
)).'" class="post-reply-link" rel="'. $post_id.'">' . $txt['wp_reply'] . '</a>';


}
Expand Down Expand Up @@ -64,6 +64,7 @@ function wp_list_comments() {


function render_comment(&$post,&$profile,&$parent) {
require('wp-content/language/lang_chooser.php'); //Loads the language-file
global $request;
$comments = "";
$cctime = date( "g:i A" , strtotime($post->created) );
Expand All @@ -77,10 +78,10 @@ function render_comment(&$post,&$profile,&$parent) {
$comments .= ' <span class="meta">';
$comments .= $cctime.' <em>on</em> '.$ccdate;
$comments .= '<span class="actions">';
$comments .= '<a href="'.$ccurl.'">Permalink</a> | <a rel=\'nofollow\' class=\'comment-reply-link\' href=\''.$ccrurl.'\'>Reply</a>';
$comments .= '<a href="'.$ccurl.'">Permalink</a> | <a rel=\'nofollow\' class=\'comment-reply-link\' href=\''.$ccrurl.'\'>' . $txt['wp_reply'] . '</a>';
if ( get_profile_id() == $post->profile_id ) {
$comments .= ' | <a href="'.get_edit_post_link( $post ).'" class="post-edit-link" rel="'. $post->id.'">Edit</a>';
$comments .= ' | <a href="'.get_edit_post_link( $post, 'remove' ).'" class="post-remove-link" rel="'. $post->id.'">Remove</a>';
$comments .= ' | <a href="'.get_edit_post_link( $post ).'" class="post-edit-link" rel="'. $post->id.'">'.$txt['wp_edit'].'; ?></a>';
$comments .= ' | <a href="'.get_edit_post_link( $post, 'remove' ).'" class="post-remove-link" rel="'. $post->id.'">'.$txt['wp_remove'].'</a>';
}
$comments .= '</span>';
$comments .= '<br />';
Expand Down Expand Up @@ -786,7 +787,8 @@ function get_usermeta( $user_id, $what ) {
}

function wp_nonce_field( $var ) {
echo '<input type="hidden" name="method" value="post" />'."\n";
require('wp-content/language/lang_chooser.php'); //Loads the language-file
echo '<input type="hidden" name="method" value="'.$txt['wp_post'].'" />'."\n";
}

function wp_schedule_event( $when, $howoften, $event ) {
Expand Down Expand Up @@ -1105,6 +1107,7 @@ function wp_get_archives($type) {
}

function get_header() {
require('wp-content/language/lang_chooser.php'); //Loads the language-file
global $request;
// this should be a separate filter, but it catches
// folks who are not completely set-up and sends them
Expand All @@ -1121,7 +1124,7 @@ function get_header() {
));

if (($request->resource != 'identities' || $request->action != 'edit') && (!isset($p->nickname) || empty($p->avatar))) {
$_SESSION['message'] = "Photo and Nickname are required.";
$_SESSION['message'] = $txt['wp_photo_nick'];
redirect_to($edit_uri);
}

Expand Down Expand Up @@ -1729,6 +1732,7 @@ function get_edit_post_link( &$post, $action=false ) {
}

function edit_post_link( $post ) {
require('wp-content/language/lang_chooser.php'); //Loads the language-file
global $the_post,$request;
if (!isset($the_post->id))
return;
Expand All @@ -1741,7 +1745,7 @@ function edit_post_link( $post ) {
'resource' => 'posts',
'id' => $the_post->id,
'action' => 'remove'
))."\">remove</a>";
))."\">".$txt['wp_remove']."</a>";
}

function comments_rss_link() {
Expand Down
10 changes: 10 additions & 0 deletions wp-content/language/eng.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,14 @@
$txt['removeprofile_button_delete'] = "Delete This Identity";


/////////////////////////////////////
# /app/omb/plugins/wp.php
/////////////////////////////////////
$txt['wp_reply'] = "Reply";
$txt['wp_edit'] = "edit";
$txt['wp_remove'] = "remove";
$txt['wp_post'] = "Post";
$txt['wp_photo_nick'] = "Photo and Nickname are required.";


?>
9 changes: 9 additions & 0 deletions wp-content/language/ger.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,13 @@
$txt['removeprofile_button_delete'] = "Diese Identit&auml;t l&ouml;schen";


/////////////////////////////////////
# /app/omb/plugins/wp.php
/////////////////////////////////////
$txt['wp_reply'] = "Antworten";
$txt['wp_edit'] = "editieren";
$txt['wp_remove'] = "l&ouml;schen";
$txt['wp_post'] = "Absenden";
$txt['wp_photo_nick'] = "Foto und Nickname werden ben&ouml;tigt.";

?>

0 comments on commit b8027b4

Please sign in to comment.