summaryrefslogtreecommitdiff
path: root/includes/pages/user_news.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2013-11-25 21:56:56 +0100
committerPhilip Häusler <msquare@notrademark.de>2013-11-25 21:56:56 +0100
commit85d9bf4f9c9546c2a8ea87d0641686886275ce21 (patch)
treeb786d1b2fa1f38afd305df2f64bc8f84215516b4 /includes/pages/user_news.php
parent813751ac7a0e3f17af791397fa7e6b60d526f0a0 (diff)
angel views in english complete
Diffstat (limited to 'includes/pages/user_news.php')
-rw-r--r--includes/pages/user_news.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php
index aa243ef6..ed4de018 100644
--- a/includes/pages/user_news.php
+++ b/includes/pages/user_news.php
@@ -1,4 +1,8 @@
<?php
+function user_news_comments_title() {
+ return _("News comments");
+}
+
function news_title() {
return _("News");
}
@@ -72,7 +76,7 @@ function user_news_comments() {
$text = preg_replace("/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui", '', strip_tags($_REQUEST['text']));
sql_query("INSERT INTO `news_comments` (`Refid`, `Datum`, `Text`, `UID`) VALUES ('" . sql_escape($nid) . "', '" . date("Y-m-d H:i:s") . "', '" . sql_escape($text) . "', '" . sql_escape($user["UID"]) . "')");
engelsystem_log("Created news_comment: " . $text);
- $html .= success("Eintrag wurde gespeichert", true);
+ $html .= success(_("Entry saved."), true);
}
$html .= '<a href="' . page_link_to("news") . '">&laquo; Back</a>';
@@ -100,22 +104,22 @@ function user_news_comments() {
$html .= '
<br />
<hr>
- <h2>Neuer Kommentar:</h2>
+ <h2>' . _("New Comment:") . '</h2>
<a name="Neu">&nbsp;</a>
<form action="' . page_link_to("news_comments") . '" method="post">
<input type="hidden" name="nid" value="' . $_REQUEST["nid"] . '">
<table>
<tr>
- <td align="right" valign="top">Text:</td>
+ <td align="right" valign="top">' . _("Message:") . '</td>
<td><textarea name="text" cols="50" rows="10"></textarea></td>
</tr>
</table>
<br />
- <input type="submit" value="sichern...">
+ <input type="submit" value="' . _("Save") . '">
</form>';
} else {
- $html .= "Fehlerhafter Aufruf!";
+ $html .= _("Fehlerhafter Aufruf!");
}
return $html;