<input id=\"feed_search\" size=\"20\"
onchange=\"javascript:updateFeedList()\" value=\"$feed_search\">
<input type=\"submit\" class=\"button\"
- onclick=\"javascript:updateFeedList()\" value=\"Search\">
+ onclick=\"javascript:updateFeedList()\" value=\"".__('Search')."\">
</div>";
print "<div class=\"prefGenericAddBox\">
if (ENABLE_FEED_BROWSER && !SINGLE_USER_MODE) {
print " <input type=\"submit\" class=\"button\"
- onclick=\"javascript:browseFeeds()\" value=\"Top 25\">";
+ onclick=\"javascript:browseFeeds()\" value=\"".__('Top 25')."\">";
}
print "</div>";
print "<p><span id=\"feedOpToolbar\">";
- if ($subop == "edit") {
- print "Edit feed:
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:feedEditCancel()\" value=\"Cancel\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:feedEditSave()\" value=\"Save\">";
- } else {
-
- print "
- Selection:
- <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:editSelectedFeed()\" value=\"Edit\">
- <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:removeSelectedFeeds()\" value=\"Unsubscribe\">";
-
- if (get_pref($link, 'ENABLE_FEED_CATS')) {
+ print "<input type=\"submit\" class=\"button\" disabled=\"true\"
+ onclick=\"javascript:editSelectedFeed()\" value=\"".__('Edit')."\">
+ <input type=\"submit\" class=\"button\" disabled=\"true\"
+ onclick=\"javascript:removeSelectedFeeds()\"
+ value=\"".__('Unsubscribe')."\">";
- print " | ";
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
- print_feed_cat_select($link, "sfeed_set_fcat", "", "disabled");
+ print " | ";
- print " <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:categorizeSelectedFeeds()\" value=\"Recategorize\">";
+ print_feed_cat_select($link, "sfeed_set_fcat", "", "disabled");
- }
+ print " <input type=\"submit\" class=\"button\" disabled=\"true\"
+ onclick=\"javascript:categorizeSelectedFeeds()\" value=\"".
+ __('Recategorize')."\">";
+ }
- print "</span>";
+ print "</span>";
- if (get_pref($link, 'ENABLE_FEED_CATS')) {
-
- print " <input type=\"submit\" class=\"button\"
- onclick=\"javascript:editFeedCats()\" value=\"Edit categories\">";
+ if (get_pref($link, 'ENABLE_FEED_CATS')) {
-# print " | ";
+ print " <input type=\"submit\" class=\"button\"
+ onclick=\"javascript:editFeedCats()\" value=\"".__('Edit categories')."\">";
- }
+# print " | ";
}
} else {
}
- print "<h3>OPML</h3>
+ print "<h3>".__('OPML')."</h3>
<div style='float : left'>
<form enctype=\"multipart/form-data\" method=\"POST\" action=\"opml.php\">
File: <input id=\"opml_file\" name=\"opml_file\" type=\"file\">
<input class=\"button\" name=\"op\" onclick=\"return validateOpmlImport();\"
- type=\"submit\" value=\"Import\">
+ type=\"submit\" value=\"".__('Import')."\">
</form></div>";
print " or ";
print "<input type=\"submit\"
class=\"button\" onclick=\"gotoExportOpml()\"
- value=\"Export OPML\">";
+ value=\"".__('Export OPML')."\">";
}
?>
$enabled = sql_bool_to_bool(db_fetch_result($result, 0, "enabled"));
$inverse = sql_bool_to_bool(db_fetch_result($result, 0, "inverse"));
- print "<div id=\"infoBoxTitle\">Filter editor</div>";
+ print "<div id=\"infoBoxTitle\">".__('Filter editor')."</div>";
print "<div class=\"infoBoxContents\">";
print "<form id=\"filter_edit_form\" onsubmit='return false'>";
onchange=\"toggleSubmitNotEmpty(this, 'infobox_submit')\"
name=\"reg_exp\" class=\"iedit\" value=\"$reg_exp\">";
- print "</td></tr><tr><td>On field:</td><td>";
+ print "</td></tr><tr><td>".__('On field:')."</td><td>";
print_select_hash("filter_type", $filter_type, $filter_types, "class=\"_iedit\"");
print "</td></tr>";
- print "<tr><td>Feed:</td><td colspan='2'>";
+ print "<tr><td>".__('Feed:')."</td><td colspan='2'>";
print_feed_select($link, "feed_id", $feed_id);
print "</td></tr>";
- print "<tr><td>Action:</td>";
+ print "<tr><td>".__('Action:')."</td>";
print "<td colspan='2'><select name=\"action_id\"
onchange=\"filterDlgCheckAction(this)\">";
print "</td></tr>";
- print "<tr><td>Params:</td>";
+ print "<tr><td>".__('Params:')."</td>";
$param_disabled = ($action_id == 4) ? "" : "disabled";
print "<tr><td valign='top'>Options:</td><td>
<input type=\"checkbox\" name=\"enabled\" id=\"enabled\" $checked>
- <label for=\"enabled\">Enabled</label><br/>";
+ <label for=\"enabled\">".__('Enabled')."</label><br/>";
if ($inverse) {
$checked = "checked";
}
print "<input type=\"checkbox\" name=\"inverse\" id=\"inverse\" $checked>
- <label for=\"inverse\">Inverse match</label>";
+ <label for=\"inverse\">".__('Inverse match')."</label>";
print "</td></tr></table>";
print "<input type=\"submit\"
id=\"infobox_submit\"
class=\"button\" onclick=\"return filterEditSave()\"
- value=\"Save\"> ";
+ value=\"".__('Save')."\"> ";
print "<input class=\"button\"
type=\"submit\" onclick=\"return filterEditCancel()\"
- value=\"Cancel\">";
+ value=\"".__('Cancel')."\">";
print "</div>";
class=\"button\"
onclick=\"return displayDlg('quickAddFilter', false)\"
id=\"create_filter_btn\"
- value=\"Create filter\">";
+ value=\"".__('Create filter')."\">";
$result = db_query($link, "SELECT
ttrss_filters.id AS id,reg_exp,
print "<tr class=\"title\">
<td align='center' width=\"5%\"> </td>
- <td width=\"20%\"><a href=\"javascript:updateFilterList('reg_exp')\">Filter expression</a></td>
- <td width=\"20%\"><a href=\"javascript:updateFilterList('feed_title')\">Feed</a></td>
- <td width=\"15%\"><a href=\"javascript:updateFilterList('filter_type')\">Match</a></td>
- <td width=\"15%\"><a href=\"javascript:updateFilterList('action_description')\">Action</a></td>";
+ <td width=\"20%\"><a href=\"javascript:updateFilterList('reg_exp')\">".__('Filter expression')."</a></td>
+ <td width=\"20%\"><a href=\"javascript:updateFilterList('feed_title')\">".__('Feed')."</a></td>
+ <td width=\"15%\"><a href=\"javascript:updateFilterList('filter_type')\">".__('Match')."</a></td>
+ <td width=\"15%\"><a href=\"javascript:updateFilterList('action_description')\">".__('Action')."</a></td>";
$lnum = 0;
$line["reg_exp"] = htmlspecialchars(db_unescape_string($line["reg_exp"]));
- if (!$line["feed_title"]) $line["feed_title"] = "All feeds";
+ if (!$line["feed_title"]) $line["feed_title"] = __("All feeds");
$line["feed_title"] = htmlspecialchars(db_unescape_string($line["feed_title"]));
if (!$enabled) {
$line["reg_exp"] = "<span class=\"insensitive\">" .
- $line["reg_exp"] . " (Disabled)</span>";
+ $line["reg_exp"] . " " . __("(Disabled)")."</span>";
$line["feed_title"] = "<span class=\"insensitive\">" .
$line["feed_title"] . "</span>";
$line["filter_type_descr"] = "<span class=\"insensitive\">" .
$inverse_label = "";
if ($inverse) {
- $inverse_label = " <span class='insensitive'>(Inverse)</span>";
+ $inverse_label = " <span class='insensitive'>".__('(Inverse)')."</span>";
}
print "<td><a href=\"javascript:editFilter($filter_id);\">" .
}
if ($lnum == 0) {
- print "<tr><td colspan=\"4\" align=\"center\">No filters defined.</td></tr>";
+ print "<tr><td colspan=\"4\" align=\"center\">".__('No filters defined.')."</td></tr>";
}
print "</table>";
print "<p id=\"filterOpToolbar\">";
- print "
- Selection:
+ print "<input type=\"submit\" class=\"button\" disabled=\"true\"
+ onclick=\"return editSelectedFilter()\" value=\"".__('Edit')."\">
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"return editSelectedFilter()\" value=\"Edit\">
- <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"return removeSelectedFilters()\" value=\"Remove\">";
+ onclick=\"return removeSelectedFilters()\" value=\"".__('Remove')."\">";
print "</p>";
} else {
- print "<p>No filters defined.</p>";
+ print "<p>".__('No filters defined.')."</p>";
}
}
print"<input type=\"submit\" class=\"button\"
id=\"label_create_btn\"
onclick=\"return displayDlg('quickAddLabel', false)\"
- value=\"Create label\"></div>";
+ value=\"".__('Create label')."\"></div>";
$result = db_query($link, "SELECT
id,sql_exp,description
print "<tr class=\"title\">
<td width=\"5%\"> </td>
- <td width=\"30%\"><a href=\"javascript:updateLabelList('description')\">Caption</a></td>
- <td width=\"50%\"><a href=\"javascript:updateLabelList('sql_exp')\">SQL Expression</a>
+ <td width=\"30%\"><a href=\"javascript:updateLabelList('description')\">".__('Caption')."</a></td>
+ <td width=\"50%\"><a href=\"javascript:updateLabelList('sql_exp')\">".__('SQL Expression')."</a>
</td>
</tr>";
}
if ($lnum == 0) {
- print "<tr><td colspan=\"4\" align=\"center\">No labels defined.</td></tr>";
+ print "<tr><td colspan=\"4\" align=\"center\">".__('No labels defined.')."</td></tr>";
}
print "</table>";
print "<p id=\"labelOpToolbar\">";
- print "
- Selection:
+ print "<input type=\"submit\" class=\"button\" disabled=\"true\"
+ onclick=\"javascript:editSelectedLabel()\" value=\"".__('Edit')."\">
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:editSelectedLabel()\" value=\"Edit\">
- <input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:removeSelectedLabels()\" value=\"Remove\">";
+ onclick=\"javascript:removeSelectedLabels()\" value=\"".__('Remove')."\">";
} else {
- print "<p>No labels defined.</p>";
+ print "<p>".__('No labels defined.')."</p>";
}
}
?>
print "<p id='userOpToolbar'>";
-/* if ($subop == "edit") {
- print "Edit user:
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:userEditSave()\" value=\"Save\">
- <input type=\"submit\" class=\"button\"
- onclick=\"javascript:userEditCancel()\" value=\"Cancel\">";
-
- } else { */
-
- print "
- Selection:
+ print "
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:selectedUserDetails()\" value=\"User details\">
+ onclick=\"javascript:selectedUserDetails()\" value=\"".__('User details')."\">
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:editSelectedUser()\" value=\"Edit\">
+ onclick=\"javascript:editSelectedUser()\" value=\"".__('Edit')."\">
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:removeSelectedUsers()\" value=\"Remove\">
+ onclick=\"javascript:removeSelectedUsers()\" value=\"".__('Remove')."\">
<input type=\"submit\" class=\"button\" disabled=\"true\"
- onclick=\"javascript:resetSelectedUserPass()\" value=\"Reset password\">";
+ onclick=\"javascript:resetSelectedUserPass()\" value=\"".__('Reset password')."\">";
-// }
}
?>