mobile: add some translations
This commit is contained in:
parent
1b74062fc5
commit
e0142e27ec
|
@ -9,16 +9,16 @@
|
||||||
print "<div id=\"heading\">";
|
print "<div id=\"heading\">";
|
||||||
|
|
||||||
if ($tags) {
|
if ($tags) {
|
||||||
print "Tags <span id=\"headingAddon\">
|
print __("Tags")."<span id=\"headingAddon\">
|
||||||
(<a href=\"tt-rss.php\">View feeds</a>, ";
|
(<a href=\"tt-rss.php\">".__("View feeds")."</a>, ";
|
||||||
} else {
|
} else {
|
||||||
print "Feeds <span id=\"headingAddon\">
|
print __("Feeds")." <span id=\"headingAddon\">
|
||||||
(<a href=\"tt-rss.php?tags=1\">View tags</a>, ";
|
(<a href=\"tt-rss.php?tags=1\">".__("View tags")."</a>, ";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<a href=\"tt-rss.php?go=sform\">Search</a>, ";
|
print "<a href=\"tt-rss.php?go=sform\">".__("Search")."</a>, ";
|
||||||
|
|
||||||
print "<a href=\"logout.php\">Logout</a>)</span>";
|
print "<a href=\"logout.php\">".__("Logout")."</a>)</span>";
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
print "<ul class=\"feedList\">";
|
print "<ul class=\"feedList\">";
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
/* virtual feeds */
|
/* virtual feeds */
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "<li class=\"feedCat\">Special</li>";
|
print "<li class=\"feedCat\">".__("Special")."</li>";
|
||||||
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
if (db_num_rows($result) > 0) {
|
if (db_num_rows($result) > 0) {
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
if (get_pref($link, 'ENABLE_FEED_CATS')) {
|
||||||
print "<li class=\"feedCat\">Labels</li>";
|
print "<li class=\"feedCat\">".__("Labels")."</li>";
|
||||||
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
print "<li class=\"feedCatHolder\"><ul class=\"feedCatList\">";
|
||||||
} else {
|
} else {
|
||||||
// print "<li><hr></li>";
|
// print "<li><hr></li>";
|
||||||
|
@ -139,9 +139,12 @@
|
||||||
$lnum = 0;
|
$lnum = 0;
|
||||||
|
|
||||||
$category = "";
|
$category = "";
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
while ($line = db_fetch_assoc($result)) {
|
||||||
|
if (get_pref($link, 'HIDE_READ_FEEDS') && (int)$line['unread']==0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$feed = db_unescape_string($line["title"]);
|
$feed = db_unescape_string($line["title"]);
|
||||||
$feed_id = $line["id"];
|
$feed_id = $line["id"];
|
||||||
|
|
||||||
|
@ -413,8 +416,9 @@
|
||||||
/// STOP //////////////////////////////////////////////////////////////////////////////////
|
/// STOP //////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
print "<div align='center'>
|
print "<div align='center'>".
|
||||||
Could not display feed (query failed). Please check label match syntax or local configuration.</div>";
|
__("Could not display feed (query failed). Please check label match syntax or local configuration.").
|
||||||
|
"</div>";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -424,9 +428,9 @@
|
||||||
# }
|
# }
|
||||||
|
|
||||||
print "$feed_title <span id=\"headingAddon\">(";
|
print "$feed_title <span id=\"headingAddon\">(";
|
||||||
print "<a href=\"tt-rss.php\">Back</a>, ";
|
print "<a href=\"tt-rss.php\">".__("Back")."</a>, ";
|
||||||
print "<a href=\"tt-rss.php?go=sform&aid=$feed&ic=$cat_view\">Search</a>, ";
|
print "<a href=\"tt-rss.php?go=sform&aid=$feed&ic=$cat_view\">".__("Search")."</a>, ";
|
||||||
print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=ForceUpdate\">Update</a>";
|
print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=ForceUpdate\">".__("Update")."</a>";
|
||||||
|
|
||||||
# print "Mark as read: ";
|
# print "Mark as read: ";
|
||||||
# print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=MarkAsRead\">Page</a>, ";
|
# print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=MarkAsRead\">Page</a>, ";
|
||||||
|
@ -491,10 +495,10 @@
|
||||||
($line["unread"] != "t" && $line["unread"] != "1")) {
|
($line["unread"] != "t" && $line["unread"] != "1")) {
|
||||||
|
|
||||||
$update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\"
|
$update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\"
|
||||||
alt=\"Updated\">";
|
alt=\"".__("Updated")."\">";
|
||||||
} else {
|
} else {
|
||||||
$update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\"
|
$update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\"
|
||||||
alt=\"Updated\">";
|
alt=\"".__("Updated")."\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line["unread"] == "t" || $line["unread"] == "1") {
|
if ($line["unread"] == "t" || $line["unread"] == "1") {
|
||||||
|
@ -560,20 +564,20 @@
|
||||||
print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=MarkAllRead\">Feed</a></div>"; */
|
print "<a href=\"tt-rss.php?go=vf&id=$feed&subop=MarkAllRead\">Feed</a></div>"; */
|
||||||
|
|
||||||
print "Select:
|
print "Select:
|
||||||
<a href=\"javascript:selectHeadlines(1)\">All</a>,
|
<a href=\"javascript:selectHeadlines(1)\">".__("All")."</a>,
|
||||||
<a href=\"javascript:selectHeadlines(2)\">Unread</a>,
|
<a href=\"javascript:selectHeadlines(2)\">".__("Unread")."</a>,
|
||||||
<a href=\"javascript:selectHeadlines(3)\">None</a>,
|
<a href=\"javascript:selectHeadlines(3)\">".__("None")."</a>,
|
||||||
<a href=\"javascript:selectHeadlines(4)\">Invert</a>";
|
<a href=\"javascript:selectHeadlines(4)\">".__("Invert")."</a>";
|
||||||
|
|
||||||
print " ";
|
print " ";
|
||||||
|
|
||||||
print "<select name=\"catchup_op\">
|
print "<select name=\"catchup_op\">
|
||||||
<option value=\"selection\">Selection</option>
|
<option value=\"selection\">".__("Selection")."</option>
|
||||||
<option value=\"page\">Page</option>
|
<option value=\"page\">".__("Page")."</option>
|
||||||
<option value=\"feed\">Entire feed</option>
|
<option value=\"feed\">".__("Entire feed")."</option>
|
||||||
</select>
|
</select>
|
||||||
<input type=\"hidden\" name=\"cat\" value=\"$cat_view\">
|
<input type=\"hidden\" name=\"cat\" value=\"$cat_view\">
|
||||||
<input type=\"submit\" value=\"Mark as read\">";
|
<input type=\"submit\" value=\"".__("Mark as read")."\">";
|
||||||
|
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
|
@ -688,7 +692,7 @@
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
if ($num_tags > 0) {
|
if ($num_tags > 0) {
|
||||||
print "<div class=\"postTags\">Tags: $tags_str</div>";
|
print "<div class=\"postTags\">".__("Tags:")." $tags_str</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($line["marked"] == "t" || $line["marked"] == "1") {
|
if ($line["marked"] == "t" || $line["marked"] == "1") {
|
||||||
|
@ -719,8 +723,8 @@
|
||||||
|
|
||||||
print "<div id=\"heading\">";
|
print "<div id=\"heading\">";
|
||||||
|
|
||||||
print "Search <span id=\"headingAddon\">
|
print __("Search")." <span id=\"headingAddon\">
|
||||||
(<a href=\"tt-rss.php\">Go back</a>)</span></div>";
|
(<a href=\"tt-rss.php\">".__("Go back")."</a>)</span></div>";
|
||||||
|
|
||||||
print "<form method=\"GET\" action=\"tt-rss.php\" class=\"searchForm\">";
|
print "<form method=\"GET\" action=\"tt-rss.php\" class=\"searchForm\">";
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,9 @@
|
||||||
require_once "../sessions.php";
|
require_once "../sessions.php";
|
||||||
|
|
||||||
require_once "../version.php";
|
require_once "../version.php";
|
||||||
require_once "../config.php";
|
|
||||||
require_once "../db-prefs.php";
|
require_once "../db-prefs.php";
|
||||||
|
|
||||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
||||||
init_connection($link);
|
init_connection($link);
|
||||||
|
|
||||||
|
@ -119,7 +118,7 @@
|
||||||
<?php if (!$go) { ?>
|
<?php if (!$go) { ?>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a>
|
<a href="http://tt-rss.org/">Tiny-Tiny RSS</a>
|
||||||
<?php if (!defined('HIDE_VERSION')) { ?>
|
<?php if (!defined('HIDE_VERSION')) { ?>
|
||||||
v<?php echo VERSION ?>
|
v<?php echo VERSION ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1415,7 +1415,7 @@
|
||||||
|
|
||||||
$url_path = article_publish_url($link);
|
$url_path = article_publish_url($link);
|
||||||
|
|
||||||
print "<p><a class=\"visibleLinkB\" id=\"pubGenAddress\" target=\"_blank\" href=\"$url_path\">Link to published articles feed.</a></p>";
|
print "<p><a class=\"visibleLinkB\" id=\"pubGenAddress\" target=\"_blank\" href=\"$url_path\">".__("Link to published articles feed.")."</a></p>";
|
||||||
|
|
||||||
print "<p><input type=\"submit\" onclick=\"return pubRegenKey()\" class=\"button\"
|
print "<p><input type=\"submit\" onclick=\"return pubRegenKey()\" class=\"button\"
|
||||||
value=\"".__('Generate another link')."\">";
|
value=\"".__('Generate another link')."\">";
|
||||||
|
|
|
@ -123,7 +123,7 @@ window.onload = init;
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class='prefKbdHelp'>
|
<div class='prefKbdHelp'>
|
||||||
<img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})">Keyboard shortcuts</a>
|
<img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="firstTab"> </div>
|
<div class="firstTab"> </div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
TEMPLATE=messages.pot
|
TEMPLATE=messages.pot
|
||||||
|
|
||||||
xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php modules/*.php help/*.php
|
xgettext -kT_js_decl -kT_sprintf -kT_ngettext:1,2 -k__ -L PHP -o $TEMPLATE *.php modules/*.php help/*.php mobile/*.php
|
||||||
|
|
||||||
update_lang() {
|
update_lang() {
|
||||||
if [ -f $1.po ]; then
|
if [ -f $1.po ]; then
|
||||||
|
|
Loading…
Reference in New Issue