Hello,
some php/inc files were not translatable or some stringswere not. I checked
moderation.php
pm.php
forum.inc
pm.inc
bbcode_html.inc
and made them translateable. The patch is attached.
yoyo
--
Rechenkraft.net e.V. <http://www.rechenkraft.net> - Verein zur Förderung
von Bildung, Forschung und Wissenschaft durch Einsatz vernetzter Computer
weitere interessante Projekte
<http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>und
Hilfe <http://www.rechenkraft.net/phpBB/viewforum.php?f=19>auf unserer
Webseite www.Rechenkraft.net <http://www.rechenkraft.net> und im Chat
<irc://irc.euirc.net/rechenkraft>
------------------------------------------------------------------------
Rechenkraft.net e.V. <http://www.rechenkraft.net/> - Non-profit
association for the promotion of education, research and science through
the use of networked computers
other interesting projects
<http://www.rechenkraft.net/wiki/index.php?title=Projekt%C3%BCbersicht>and
help <http://www.rechenkraft.net/phpBB/viewforum.php?f=19> on our
website www.Rechenkraft.net <http://www.rechenkraft.net> and on IRC
<irc://irc.euirc.net/rechenkraft>
Index: html/inc/pm.inc
===================================================================
--- html/inc/pm.inc (revision 24875)
+++ html/inc/pm.inc (working copy)
@@ -45,7 +45,7 @@
if ($replyto) {
$message = BoincPrivateMessage::lookup_id($replyto);
if (!$message || $message->userid != $g_logged_in_user->id) {
- error_page("no such message");
+ error_page(tra("no such message"));
}
$content = "[quote]".$message->content."[/quote]\n";
$userid = $message->senderid;
Index: html/inc/forum.inc
===================================================================
--- html/inc/forum.inc (revision 24875)
+++ html/inc/forum.inc (working copy)
@@ -532,8 +532,8 @@
$url = "pm.php?action=new&userid=".$user->id;
$name = $user->name;
- show_button($url, "Send message", "Send $name a private message");
- echo "<br>Joined: ", gmdate('j M y', $user->create_time), "<br>";
+ show_button($url, tra("Send message"), tra("Send %1 a private
message",$name));
+ echo "<br>".tra("Joined: %1", gmdate('j M y', $user->create_time)), "<br>";
if (!isset($user->nposts)) {
$user->nposts = BoincPost::count("user=$user->id");
@@ -542,14 +542,14 @@
if (function_exists('project_forum_user_info')){
project_forum_user_info($user);
} else {
- echo "Posts: $user->nposts<br>";
+ echo tra("Posts: %1", $user->nposts)."<br>";
// circumvent various forms of identity spoofing
// by displaying the user id of the poster.
//
//echo "ID: ".$user->id."<br>";
if (!no_computing()) {
- echo "Credit: ".number_format($user->total_credit)."<br>";
- echo "RAC: ".number_format($user->expavg_credit)."<br>";
+ echo tra("Credit: %1", number_format($user->total_credit)) ."<br>";
+ echo tra("RAC: %1", number_format($user->expavg_credit))."<br>";
}
// to use this feature:
// - get flags from
http://www.famfamfam.com/lab/icons/flags/famfamfam_flag_icons.zip
@@ -571,27 +571,27 @@
}
if ($logged_in_user && $post->timestamp>$last_visit){
- show_image(NEW_IMAGE, "You haven't read this message yet", "Unread",
NEW_IMAGE_HEIGHT);
+ show_image(NEW_IMAGE, tra("You haven't read this message yet"),
tra("Unread"), NEW_IMAGE_HEIGHT);
}
- echo " <a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#$post->id\">Message
".$post->id."</a> - ";
- if ($post->hidden) echo "<font color=red>[hidden] </font>";
- echo "Posted: ", pretty_time_str($post->timestamp), " ";
+ echo " <a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#$post->id\">".tra("Message
%1", $post->id)."</a> - ";
+ if ($post->hidden) echo "<font color=red>[".tra("hidden")."] </font>";
+ echo tra("Posted: %1", pretty_time_str($post->timestamp)), " ";
if ($post->parent_post) {
- echo " - in response to <a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#".$post->parent_post."\">Message
".$post->parent_post."</a>.";
+ echo tra(" - in response to ")."<a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#".$post->parent_post."\">".tra("Message
%1", $post->parent_post)."</a>.";
}
if ($can_edit && $controls != NO_CONTROLS) {
- show_button("forum_edit.php?id=".$post->id."$tokens", "Edit", "Edit
this message");
+ show_button("forum_edit.php?id=".$post->id."$tokens", tra("Edit"),
tra("Edit this message"));
}
if (is_moderator($logged_in_user, $forum)) {
show_post_moderation_links($config, $logged_in_user, $post, $forum,
$tokens);
}
if ($post->modified) {
- echo "<br>Last modified: ", pretty_time_Str($post->modified);
+ echo "<br>".tra("Last modified: %1", pretty_time_Str($post->modified));
}
if ($ignore_poster && $filter){
- echo "<br>This post is not shown because the sender is on your
'ignore' list. Click <a
href=\"?id=".$thread->id."&filter=false#".$post->id."\">here</a> to view
this post";
+ echo "<br>".tra("This post is not shown because the sender is on your
'ignore' list. Click %1here%2 to view this post","<a
href=\"?id=".$thread->id."&filter=false#".$post->id."\">","</a>");
}
if ($controls == FORUM_CONTROLS) {
echo "</form>\n";
@@ -619,26 +619,26 @@
echo "</td></tr><tr><td class=\"postfooter\">ID: <i>", $post->id;
if ($no_forum_rating) {
echo " | <a href=\"forum_report_post.php?post=".$post->id."\">";
- show_image(REPORT_POST_IMAGE, "Report this post as offensive",
"Report as offensive", REPORT_POST_IMAGE_HEIGHT);
+ show_image(REPORT_POST_IMAGE, tra("Report this post as
offensive"), tra("Report as offensive"), REPORT_POST_IMAGE_HEIGHT);
echo "</a>";
} else {
$rating = $post->rating();
- echo " | Rating: ", $rating, "</i> | rate:
+ echo " | ".tra("Rating: %1", $rating)."</i> | ".tra("rate: ")."
<a
href=\"forum_rate.php?post=".$post->id."&choice=p$tokens\">
";
- show_image(RATE_POSITIVE_IMAGE, "Click if you like this message",
"Rate +", RATE_POSITIVE_IMAGE_HEIGHT);
+ show_image(RATE_POSITIVE_IMAGE, tra("Click if you like this
message"), tra("Rate +"), RATE_POSITIVE_IMAGE_HEIGHT);
echo "</a> / <a
href=\"forum_rate.php?post=".$post->id."&choice=n$tokens\">";
- show_image(RATE_NEGATIVE_IMAGE, "Click if you don't like this
message", "Rate -", RATE_NEGATIVE_IMAGE_HEIGHT);
+ show_image(RATE_NEGATIVE_IMAGE, tra("Click if you don't like this
message"), tra("Rate -"), RATE_NEGATIVE_IMAGE_HEIGHT);
echo "</a> <a href=\"forum_report_post.php?post=".$post->id."\">";
- show_image(REPORT_POST_IMAGE, "Report this post as offensive",
"Report as offensive", REPORT_POST_IMAGE_HEIGHT);
+ show_image(REPORT_POST_IMAGE, tra("Report this post as
offensive"), tra("Report as offensive"), REPORT_POST_IMAGE_HEIGHT);
echo "</a>";
}
if (($controls == FORUM_CONTROLS) && (can_reply($thread, $forum,
$logged_in_user))) {
echo " ";
$url = "forum_reply.php?thread=" . $thread->id . "&post=" .
$post->id . "&no_quote=1#input";
- show_button($url, "Reply", "Post a reply to this message");
+ show_button($url, tra("Reply"), tra("Post a reply to this
message"));
$url = "forum_reply.php?thread=" . $thread->id . "&post=" .
$post->id . "#input";
- show_button($url, "Quote", "Post a reply by quoting this message");
+ show_button($url, tra("Quote"), tra("Post a reply by quoting this
message"));
}
echo "</td></tr>";
} else {
@@ -659,7 +659,7 @@
$title = cleanup_title($thread->title);
$m = $n%2;
if ($post->hidden) {
- $deleted = "<br><font color=red>[Hidden by a moderator]</font>";
+ $deleted = "<br><font color=red>[".tra("Hidden by a
moderator")."]</font>";
} else {
$deleted = "";
}
@@ -678,9 +678,9 @@
break;
}
echo "
- (<a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#".$post->id."\">Message
".$post->id."</a>)
+ (<a
href=\"forum_thread.php?id=".$thread->id."&nowrap=true#".$post->id."\">".tra("Message
%1", $post->id)."</a>)
<br>
- Posted $when by ".user_links($user)." $deleted
+ ".tra("Posted %1 by %2", $when, user_links($user))." $deleted
<hr>
$content
</td></tr>
@@ -698,7 +698,7 @@
function check_banished($user) {
if (is_banished($user)) {
error_page(
- "You may not post or rate messages until ".gmdate('M j, Y',
$user->prefs->banished_until)
+ tra("You may not post or rate messages until %1", gmdate('M j, Y',
$user->prefs->banished_until))
);
}
}
@@ -709,7 +709,7 @@
} else {
$project_rules="";
}
- return "
+ return tra("
<ul>
<li> Posts must be 'kid friendly': they may not contain
content that is obscene, hate-related,
@@ -722,7 +722,7 @@
<li> No messages that are deliberately hostile or insulting.
<li> No abusive comments involving race, religion,
nationality, gender, class or sexuality.
- ".$project_rules."
+ ").$project_rules."
</ul>
";
}
@@ -731,9 +731,8 @@
return "<br><br>
<table><tr><td align=left>
<font size=-2>
- Rules:
- ".post_rules()."
- <a href=moderation.php>More info</a>
+ ".tra("Rules:").post_rules()."
+ <a href=moderation.php>".tra("More info")."</a>
</font>
</td></tr></table>
";
@@ -1006,35 +1005,35 @@
$moderators_vote_to_ban = parse_bool($config, "moderators_vote_to_ban");
if ($post->hidden) {
-
show_button("forum_moderate_post_action.php?action=unhide&id=".$post->id."$tokens",
"Unhide", "Unhide this post");
+
show_button("forum_moderate_post_action.php?action=unhide&id=".$post->id."$tokens",
tra("Unhide"), tra("Unhide this post"));
} else {
-
show_button("forum_moderate_post.php?action=hide&id=".$post->id."$tokens",
"Hide", "Hide this post");
+
show_button("forum_moderate_post.php?action=hide&id=".$post->id."$tokens",
tra("Hide"), tra("Hide this post"));
}
show_button(
"forum_moderate_post.php?action=move&id=".$post->id."$tokens",
- "Move", "Move post to a different thread"
+ tra("Move"), tra("Move post to a different thread")
);
if ($forum->parent_type == 0) {
if ($logged_in_user->prefs->privilege(S_ADMIN) ||
($logged_in_user->prefs->privilege(S_MODERATOR) && $moderators_allowed_to_ban))
{
-
show_button("forum_moderate_post.php?action=banish_user&id=".$post->id."&userid=".$post->user."$tokens",
"Banish author");
+
show_button("forum_moderate_post.php?action=banish_user&id=".$post->id."&userid=".$post->user."$tokens",
tra("Banish author"));
}
if ($logged_in_user->prefs->privilege(S_MODERATOR) &&
$moderators_vote_to_ban) {
require_once("../inc/forum_banishment_vote.inc");
if (vote_is_in_progress($post->user)) {
show_button(
"forum_banishment_vote.php?action=yes&userid=".$post->user,
- "Vote to banish author"
+ tra("Vote to banish author")
);
show_button(
"forum_banishment_vote.php?action=no&userid=".$post->user,
- "Vote not to banish author"
+ tra("Vote not to banish author")
);
} else {
show_button(
"forum_banishment_vote.php?action=start&userid=".$post->user,
- "Start vote to banish author"
+ tra("Start vote to banish author")
);
}
}
@@ -1067,7 +1066,7 @@
// non-team-members can't post
//
if ($user->teamid != $team->id) {
- error_page("Only team members can post to the team message board");
+ error_page(tra("Only team members can post to the team message
board"));
}
break;
}
@@ -1091,12 +1090,12 @@
function check_reply_access($user, $forum, $thread) {
if ($thread->locked && !is_moderator($user, $forum)) {
error_page(
- "This thread is locked. Only forum moderators and administrators
are allowed to post there."
+ tra("This thread is locked. Only forum moderators and
administrators are allowed to post there.")
);
}
if ($thread->hidden) {
error_page(
- "Can't post to a hidden thread."
+ tra("Can't post to a hidden thread.")
);
}
@@ -1186,13 +1185,13 @@
function subscribed_post_web_line($notify) {
$thread = BoincThread::lookup_id($notify->opaque);
- return "New posts in the thread <a
href=forum_thread.php?id=$thread->id>$thread->title</a>";
+ return tra("New posts in the thread %1","<a
href=forum_thread.php?id=$thread->id>$thread->title</a>");
}
function subscribe_rss($notify, &$title, &$msg, &$url) {
$thread = BoincThread::lookup_id($notify->opaque);
- $title = "New posts in subscribed thread";
- $msg = "There are new posts in the thread '$thread->title'";
+ $title = tra("New posts in subscribed thread");
+ $msg = tra("There are new posts in the thread '%1'",$thread->title);
$url = URL_BASE."forum_thread.php?id=$thread->id";
}
Index: html/inc/bbcode_html.inc
===================================================================
--- html/inc/bbcode_html.inc (revision 24875)
+++ html/inc/bbcode_html.inc (working copy)
@@ -1,68 +1,71 @@
<?php
+require_once("../inc/translation.inc");
+
$bbcode_js = "<script type=\"text/javascript\"
src=\"bbcode_toolbar.js\"></script>";
-$bbcode_html = <<<EOT
+$bbcode_html = '
<table width="40%" border="0" cellspacing="0" cellpadding="2"
class="bbcode_buttons">
<tr align="center" valign="middle">
<td><span class="genmed">
- <input type="button" class="button" accesskey="b"
name="addbbcode0" value=" B " style="font-weight:bold; width: 30px"
onClick="bbstyle(0)" title="Bold text: [b]text[/b] (alt+b)" />
+ <input type="button" class="button" accesskey="b"
name="addbbcode0" value=" B " style="font-weight:bold; width: 30px"
onClick="bbstyle(0)" title="'.tra("Bold text: [b]text[/b] (alt+b)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="i"
name="addbbcode2" value=" i " style="font-style:italic; width: 30px"
onClick="bbstyle(2)" title="Italic text: [i]text[/i] (alt+i)" />
+ <input type="button" class="button" accesskey="i"
name="addbbcode2" value=" i " style="font-style:italic; width: 30px"
onClick="bbstyle(2)" title="'.tra("Italic text: [i]text[/i] (alt+i)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="u"
name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px"
onClick="bbstyle(4)" title="Underline text: [u]text[/u] (alt+u)" />
+ <input type="button" class="button" accesskey="u"
name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px"
onClick="bbstyle(4)" title="'.tra("Underline text: [u]text[/u] (alt+u)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="q"
name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)"
title="Quote text: [quote]text[/quote] (alt+q)" />
+ <input type="button" class="button" accesskey="q"
name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)"
title="'.tra("Quote text: [quote]text[/quote] (alt+q)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="c"
name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)"
title="Code display: [code]code[/code] (alt+c)" />
+ <input type="button" class="button" accesskey="c"
name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)"
title="'.tra("Code display: [code]code[/code] (alt+c)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="l"
name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)"
title="List: [list]text[/list] (alt+l)" />
+ <input type="button" class="button" accesskey="l"
name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)"
title="'.tra("List: [list]text[/list] (alt+l)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="o"
name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)"
title="Ordered list: [list=]text[/list] (alt+o)" />
+ <input type="button" class="button" accesskey="o"
name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)"
title="'.tra("Ordered list: [list=]text[/list] (alt+o)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="p"
name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)"
title="Insert image: [img]http://image_url[/img] (alt+p)" />
+ <input type="button" class="button" accesskey="p"
name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)"
title="'.tra("Insert image: [img]http://image_url[/img] (alt+p)").'" />
</span></td>
<td><span class="genmed">
- <input type="button" class="button" accesskey="w"
name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px"
onClick="bbstyle(16)" title="Insert URL: [url]http://url[/url] or
[url=http://url]URL text[/url] (alt+w)" />
+ <input type="button" class="button" accesskey="w"
name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px"
onClick="bbstyle(16)" title="'.tra("Insert URL: [url]http://url[/url] or
[url=http://url]URL text[/url] (alt+w)").'" />
</span></td>
</tr>
<tr>
<td colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td><nobr><span class="genmed"> Font color:
- <select name="addbbcode22" onChange="bbfontstyle('[color='
+ this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value +
']', '[/color]');this.selectedIndex=0;" title="Font color:
[color=red]text[/color] Tip: you can also use color=#FF0000" >
- <option style="color:black" value="#000000"
class="genmed">Default</option>
- <option style="color:darkred" value="darkred"
class="genmed">Dark Red</option>
- <option style="color:red" value="red"
class="genmed">Red</option>
- <option style="color:orange" value="orange"
class="genmed">Orange</option>
- <option style="color:brown" value="brown"
class="genmed">Brown</option>
- <option style="color:yellow" value="yellow"
class="genmed">Yellow</option>
- <option style="color:green" value="green"
class="genmed">Green</option>
- <option style="color:olive" value="olive"
class="genmed">Olive</option>
- <option style="color:cyan" value="cyan"
class="genmed">Cyan</option>
- <option style="color:blue" value="blue"
class="genmed">Blue</option>
- <option style="color:darkblue" value="darkblue"
class="genmed">Dark Blue</option>
- <option style="color:indigo" value="indigo"
class="genmed">Indigo</option>
- <option style="color:violet" value="violet"
class="genmed">Violet</option>
- </select> Font size:<select name="addbbcode24"
onChange="bbfontstyle('[size=' +
this.form.addbbcode24.options[this.form.addbbcode24.selectedIndex].value + ']',
'[/size]');this.selectedIndex=0;" title="Font size: [size=x-small]small
text[/size]" >
- <option value="12" selected
class="genmed">Default</option>
- <option value="9" class="genmed">Small</option>
- <option value="12" class="genmed">Normal</option>
- <option value="18" class="genmed">Large</option>
+ <td><nobr><span class="genmed"> '.tra("Font color").':
+ <select name="addbbcode22"
onChange="bbfontstyle(\'[color=\' +
this.form.addbbcode22.options[this.form.addbbcode22.selectedIndex].value +
\']\', \'[/color]\');this.selectedIndex=0;" title="'.tra("Font color:
[color=red]text[/color] Tip: you can also use color=#FF0000").'" >
+ <option style="color:black" value="#000000"
class="genmed">'.tra("Default").'</option>
+ <option style="color:darkred" value="darkred"
class="genmed">'.tra("Dark Red").'</option>
+ <option style="color:red" value="red"
class="genmed">'.tra("Red").'</option>
+ <option style="color:orange" value="orange"
class="genmed">'.tra("Orange").'</option>
+ <option style="color:brown" value="brown"
class="genmed">'.tra("Brown").'</option>
+ <option style="color:yellow" value="yellow"
class="genmed">'.tra("Yellow").'</option>
+ <option style="color:green" value="green"
class="genmed">'.tra("Green").'</option>
+ <option style="color:olive" value="olive"
class="genmed">'.tra("Olive").'</option>
+ <option style="color:cyan" value="cyan"
class="genmed">'.tra("Cyan").'</option>
+ <option style="color:blue" value="blue"
class="genmed">'.tra("Blue").'</option>
+ <option style="color:darkblue" value="darkblue"
class="genmed">'.tra("Dark Blue").'</option>
+ <option style="color:indigo" value="indigo"
class="genmed">'.tra("Indigo").'</option>
+ <option style="color:violet" value="violet"
class="genmed">'.tra("Violet").'</option>
+ </select> '.tra("Font size").':
+ <select name="addbbcode24" onChange="bbfontstyle(\'[size=\'
+ this.form.addbbcode24.options[this.form.addbbcode24.selectedIndex].value +
\']\', \'[/size]\');this.selectedIndex=0;" title="'.tra("Font size:
[size=x-small]small text[/size]").'" >
+ <option value="12" selected
class="genmed">'.tra("Default").'</option>
+ <option value="9" class="genmed">'.tra("Small").'</option>
+ <option value="12"
class="genmed">'.tra("Normal").'</option>
+ <option value="18"
class="genmed">'.tra("Large").'</option>
</select>
</span></nobr></td>
- <td nowrap="nowrap" align="right"><span class="gensmall"><a
href="javascript:bbstyle(-1)" class="genmed" title="Close all open bbCode
tags">Close Tags</a></span></td>
+ <td nowrap="nowrap" align="right"><span class="gensmall"><a
href="javascript:bbstyle(-1)" class="genmed" title='.tra("Close all open bbCode
tags").'>'.tra("Close Tags").'</a></span></td>
</tr>
</table>
</td>
</tr>
</table>
-EOT;
+';
\ No newline at end of file
Index: html/user/pm.php
===================================================================
--- html/user/pm.php (revision 24875)
+++ html/user/pm.php (working copy)
@@ -29,7 +29,7 @@
function show_block_link($userid) {
echo " <a href=\"pm.php?action=block&id=$userid\">";
- show_image(REPORT_POST_IMAGE, "Block messages from this user", "Block
user", REPORT_POST_IMAGE_HEIGHT);
+ show_image(REPORT_POST_IMAGE, tra("Block messages from this user"),
tra("Block user"), REPORT_POST_IMAGE_HEIGHT);
echo "</a>";
}
@@ -103,15 +103,15 @@
echo "<br>".time_str($msg->date)."</td>\n";
echo "<td valign=top>".output_transform($msg->content,
$options)."<p>";
$tokens = url_tokens($logged_in_user->authenticator);
- show_button("pm.php?action=new&replyto=$msg->id",
tra("Reply"), "Reply to this message");
- show_button("pm.php?action=delete&id=$msg->id&$tokens",
tra("Delete"), "Delete this message");
+ show_button("pm.php?action=new&replyto=$msg->id",
tra("Reply"), tra("Reply to this message"));
+ show_button("pm.php?action=delete&id=$msg->id&$tokens",
tra("Delete"), tra("Delete this message"));
echo "</ul></td></tr>\n";
}
echo "
<tr><td>
- <a href=\"javascript:set_all(1)\">Select all</a>
+ <a href=\"javascript:set_all(1)\">".tra("Select all")."</a>
|
- <a href=\"javascript:set_all(0)\">Unselect all</a>
+ <a href=\"javascript:set_all(0)\">".tra("Unselect all")."</a>
</td>
<td colspan=2>
<input type=submit value=\"".tra("Delete selected messages")."\">
@@ -128,7 +128,7 @@
$id = get_int("id");
$message = BoincPrivateMessage::lookup_id($id);
if (!$message || $message->userid != $logged_in_user->id) {
- error_page("no such message");
+ error_page(tra("no such message"));
}
page_head(tra("Private messages")." : ".$message->subject);
pm_header();
@@ -185,9 +185,9 @@
pm_form($replyto, $userid, tra("You need to fill all fields to send a
private message"));
} else {
if (!akismet_check($logged_in_user, $content)) {
- pm_form($replyto, $userid, "Your message was flagged as spam
+ pm_form($replyto, $userid, tra("Your message was flagged as spam
by the Akismet anti-spam system.
- Please modify your text and try again."
+ Please modify your text and try again.")
);
}
$to = str_replace(", ", ",", $to); // Filter out spaces after separator
@@ -257,7 +257,7 @@
check_tokens($logged_in_user->authenticator);
$id = post_int("id");
$blocked_user = BoincUser::lookup_id($id);
- if (!$blocked_user) error_page("no such user");
+ if (!$blocked_user) error_page(tra("no such user"));
add_ignored_user($logged_in_user, $blocked_user);
page_head(tra("User %1 blocked", $blocked_user->name));
@@ -299,7 +299,7 @@
} elseif ($action == "delete_selected") {
do_delete_selected($logged_in_user);
} else {
- error_page("Unknown action");
+ error_page(tra("Unknown action"));
}
page_tail();
Index: html/user/moderation.php
===================================================================
--- html/user/moderation.php (revision 24875)
+++ html/user/moderation.php (working copy)
@@ -23,11 +23,11 @@
check_get_args(array());
page_head("Moderation");
-echo "
+echo tra("
To maximize discussion and flow of information,
our message boards are moderated.
Message board postings are subject to the following posting rules:
-".post_rules()."
+").post_rules().tra("
<p>
Moderators may delete posts that violate any of these rules.
The authors of deleted posts will be notified via email.
@@ -58,10 +58,10 @@
and potentially incendiary. If you have a legitimate claim,
send email to the address below.
<p>
-This moderation policy is set by the ".PROJECT." project.
-If you have comments about the policy, email ".SYS_ADMIN_EMAIL.".
+This moderation policy is set by the %1 project.
+If you have comments about the policy, email %2.
-";
+",PROJECT,SYS_ADMIN_EMAIL);
page_tail();
?>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.