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) {
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>";
}
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>";
}
$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>";
$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") {
$uid = sprintf("%d", $_GET["id"]);
- print "<div id=\"infoBoxTitle\">User details</div>";
+ print "<div id=\"infoBoxTitle\">".__('User details')."</div>";
print "<div class='infoBoxContents'>";
WHERE id = '$uid'");
if (db_num_rows($result) == 0) {
- print "<h1>User not found</h1>";
+ print "<h1>".__('User not found')."</h1>";
return;
}
$login = db_fetch_result($result, 0, "login");
- // print "<h1>$login</h1>";
-
print "<table width='100%'>";
$last_login = date(get_pref($link, 'LONG_DATE_FORMAT'),
$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'");
<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>