backend.php: add some gettext work
This commit is contained in:
parent
e10c8e9f60
commit
b869934543
48
backend.php
48
backend.php
|
@ -59,28 +59,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$purge_intervals = array(
|
$purge_intervals = array(
|
||||||
0 => "Use default",
|
0 => _("Use default"),
|
||||||
-1 => "Never purge",
|
-1 => _("Never purge"),
|
||||||
5 => "1 week old",
|
5 => _("1 week old"),
|
||||||
14 => "2 weeks old",
|
14 => _("2 weeks old"),
|
||||||
31 => "1 month old",
|
31 => _("1 month old"),
|
||||||
60 => "2 months old",
|
60 => _("2 months old"),
|
||||||
90 => "3 months old");
|
90 => _("3 months old"));
|
||||||
|
|
||||||
$update_intervals = array(
|
$update_intervals = array(
|
||||||
0 => "Use default",
|
0 => _("Use default"),
|
||||||
-1 => "Disable updates",
|
-1 => _("Disable updates"),
|
||||||
30 => "Each 30 minutes",
|
30 => _("Each 30 minutes"),
|
||||||
60 => "Hourly",
|
60 => _("Hourly"),
|
||||||
240 => "Each 4 hours",
|
240 => _("Each 4 hours"),
|
||||||
720 => "Each 12 hours",
|
720 => _("Each 12 hours"),
|
||||||
1440 => "Daily",
|
1440 => _("Daily"),
|
||||||
10080 => "Weekly");
|
10080 => _("Weekly");
|
||||||
|
|
||||||
|
|
||||||
$access_level_names = array(
|
$access_level_names = array(
|
||||||
0 => "User",
|
0 => _("User"),
|
||||||
10 => "Administrator");
|
10 => _("Administrator"));
|
||||||
|
|
||||||
require_once "modules/pref-prefs.php";
|
require_once "modules/pref-prefs.php";
|
||||||
require_once "modules/popup-dialog.php";
|
require_once "modules/popup-dialog.php";
|
||||||
|
@ -216,7 +216,7 @@
|
||||||
$entry_author = $line["author"];
|
$entry_author = $line["author"];
|
||||||
|
|
||||||
if ($entry_author) {
|
if ($entry_author) {
|
||||||
$entry_author = " - by $entry_author";
|
$entry_author = _(" - by ") . $entry_author;
|
||||||
}
|
}
|
||||||
|
|
||||||
$parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'),
|
$parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'),
|
||||||
|
@ -258,7 +258,7 @@
|
||||||
|
|
||||||
if (!$entry_comments) $entry_comments = " "; # placeholder
|
if (!$entry_comments) $entry_comments = " "; # placeholder
|
||||||
|
|
||||||
if (!$tags_str) $tags_str = '<span class="tagList">no tags</span>';
|
if (!$tags_str) $tags_str = '<span class="tagList">'._('no tags').'</span>';
|
||||||
|
|
||||||
print "<div style='float : right'>$tags_str
|
print "<div style='float : right'>$tags_str
|
||||||
<a title=\"Edit tags for this article\"
|
<a title=\"Edit tags for this article\"
|
||||||
|
@ -271,7 +271,7 @@
|
||||||
print "<div class=\"postContent\">";
|
print "<div class=\"postContent\">";
|
||||||
|
|
||||||
if (db_num_rows($tmp_result) > 0) {
|
if (db_num_rows($tmp_result) > 0) {
|
||||||
print "<div id=\"allEntryTags\">Tags: $f_tags_str</div>";
|
print "<div id=\"allEntryTags\">"._('Tags:')."$f_tags_str</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
|
if (get_pref($link, 'OPEN_LINKS_IN_NEW_WINDOW')) {
|
||||||
|
@ -324,8 +324,7 @@
|
||||||
"SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
|
"SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1");
|
||||||
|
|
||||||
if (db_num_rows($result) == 0) {
|
if (db_num_rows($result) == 0) {
|
||||||
print "<div align='center'>
|
print "<div align='center'>"._('Feed not found.')."</div>";
|
||||||
Feed not found.</div>";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -391,8 +390,7 @@
|
||||||
print "<div id=\"headlinesContainer\" $rtl_tag>";
|
print "<div id=\"headlinesContainer\" $rtl_tag>";
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -570,7 +568,7 @@
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
print "<div class='whiteBox'>No articles found.</div>";
|
print "<div class='whiteBox'>"._('No articles found.')."</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
Loading…
Reference in New Issue