localization fixes

master
Andrew Dolgov 16 years ago
parent 3c374d6370
commit 2a52d96fe6

@ -1852,7 +1852,6 @@ function displayHelpInfobox(topic_id) {
var w = window.open(url, "ttrss_help",
"status=0,toolbar=0,location=0,width=450,height=500,scrollbars=1,menubar=0");
return false;
}
function focus_element(id) {

@ -3,7 +3,7 @@
if (!$_GET["noheaders"]) {
print "<html><head>
<title>Tiny Tiny RSS : Help</title>
<title>".__('Help')."</title>
<link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
</head><body>";

@ -1316,7 +1316,8 @@
}
if ($hidden) {
$edit_title = "<span class=\"insensitive\">$edit_title (Hidden)</span>";
$edit_title = "<span class=\"insensitive\">$edit_title ".
__('(Hidden)')."</span>";
$last_updated = "<span class=\"insensitive\">$last_updated</span>";
$last_article = "<span class=\"insensitive\">$last_article</span>";
}
@ -1329,8 +1330,8 @@
$parent_title = $line["parent_title"];
if ($parent_title) {
$parent_title = "<span class='groupPrompt'>(linked to
$parent_title)</span>";
$linked_to = sprintf(__("(linked to %s)"), $parent_title);
$parent_title = "<span class='groupPrompt'>$linked_to</span>";
}
print "<td $onclick>" . "$edit_title $parent_title" . "</td>";

@ -129,7 +129,7 @@
$help_text = db_fetch_result($result, 0, "help_text");
print $help_text;
} else {
print "Unknown option: $pref_name";
printf(__("Unknown option: %s"), $pref_name);
}
} else if ($subop == "change-email") {

@ -14,7 +14,7 @@
$uid = sprintf("%d", $_GET["id"]);
print "<div id=\"infoBoxTitle\">User details</div>";
print "<div id=\"infoBoxTitle\">".__('User details')."</div>";
print "<div class='infoBoxContents'>";
@ -28,7 +28,7 @@
WHERE id = '$uid'");
if (db_num_rows($result) == 0) {
print "<h1>User not found</h1>";
print "<h1>".__('User not found')."</h1>";
return;
}
@ -36,8 +36,6 @@
$login = db_fetch_result($result, 0, "login");
// print "<h1>$login</h1>";
print "<table width='100%'>";
$last_login = date(get_pref($link, 'LONG_DATE_FORMAT'),
@ -49,21 +47,9 @@
$access_level = db_fetch_result($result, 0, "access_level");
$stored_articles = db_fetch_result($result, 0, "stored_articles");
// print "<tr><td>Username</td><td>$login</td></tr>";
// print "<tr><td>Access level</td><td>$access_level</td></tr>";
print "<tr><td>".__('Registered')."</td><td>$created</td></tr>";
print "<tr><td>".__('Last logged in')."</td><td>$last_login</td></tr>";
/* $result = db_query($link, "SELECT
SUM(LENGTH(content)) AS db_size
FROM ttrss_user_entries,ttrss_entries
WHERE owner_uid = '$uid' AND ref_id = id");
$db_size = round(db_fetch_result($result, 0, "db_size") / 1024);
print "<tr><td>".__('Stored articles').
"</td><td>$stored_articles (${db_size}K)</td></tr>"; */
$result = db_query($link, "SELECT COUNT(id) as num_feeds FROM ttrss_feeds
WHERE owner_uid = '$uid'");

@ -190,7 +190,7 @@
<td><?php echo __('How much is two plus two:') ?></td><td>
<input name="turing_test"></td></tr>
<tr><td colspan="2" align="right">
<input type="submit" name="sub_btn" value="<?php echo __('Submit registration"') ?>"
<input type="submit" name="sub_btn" value="<?php echo __('Submit registration') ?>"
disabled="true" onclick='return validateRegForm()'>
</td></tr>
</table>

Loading…
Cancel
Save