ttrss/localized_js.php

138 lines
4.9 KiB
PHP
Raw Normal View History

2007-03-06 06:11:28 +00:00
<?php
require "functions.php";
header("Content-Type: text/plain; charset=UTF-8");
2007-03-06 06:54:47 +00:00
function T_js_decl($s1) {
if (!$s1) return;
$T_s1 = __($s1);
if ($T_s1 != $s1) {
return "T_messages[\"$s1\"] = \"".__($s1)."\";\n";
} else {
return "";
}
2007-03-06 06:11:28 +00:00
}
?>
var T_messages = new Object();
function __(msg) {
if (T_messages[msg]) {
return T_messages[msg];
} else {
2007-03-06 06:54:47 +00:00
debug('[gettext] not found: ' + msg);
2007-03-06 06:11:28 +00:00
return msg;
}
}
<?php
2007-03-06 06:54:47 +00:00
print T_js_decl("display feeds");
print T_js_decl("display tags");
print T_js_decl("Loading, please wait...");
print T_js_decl("All feeds updated.");
print T_js_decl("Marking all feeds as read...");
print T_js_decl("Adding feed...");
print T_js_decl("Removing feed...");
print T_js_decl("Saving feed...");
print T_js_decl("Can't add category: no name specified.");
print T_js_decl("Adding feed category...");
print T_js_decl("Can't add user: no login specified.");
2007-03-06 06:11:28 +00:00
2007-03-06 06:54:47 +00:00
print T_js_decl("Adding user...");
print T_js_decl("Can't create label: missing SQL expression.");
print T_js_decl("Can't create label: missing caption.");
print T_js_decl("Remove selected labels?");
print T_js_decl("Removing selected labels...");
print T_js_decl("No labels are selected.");
print T_js_decl("Remove selected users?");
print T_js_decl("Removing selected users...");
print T_js_decl("No users are selected.");
print T_js_decl("Remove selected filters?");
print T_js_decl("Removing selected filters...");
print T_js_decl("No filters are selected.");
print T_js_decl("Unsubscribe from selected feeds?");
print T_js_decl("Unsubscribing from selected feeds...");
print T_js_decl("No feeds are selected.");
print T_js_decl("Remove selected categories?");
print T_js_decl("Removing selected categories...");
print T_js_decl("No categories are selected.");
print T_js_decl("Saving category...");
print T_js_decl("Loading help...");
print T_js_decl("Saving label...");
print T_js_decl("Login field cannot be blank.");
print T_js_decl("Saving user...");
print T_js_decl("Saving filter...");
print T_js_decl("No labels are selected.");
print T_js_decl("Please select only one label.");
print T_js_decl("No users are selected.");
print T_js_decl("Please select only one user.");
print T_js_decl("No users are selected.");
print T_js_decl("Please select only one user.");
print T_js_decl("Reset password of selected user?");
print T_js_decl("Resetting password for selected user...");
print T_js_decl("No feeds are selected.");
print T_js_decl("Please select only one feed.");
print T_js_decl("No filters are selected.");
print T_js_decl("Please select only one filter.");
print T_js_decl("No feeds are selected.");
print T_js_decl("Please select one feed.");
print T_js_decl("No categories are selected.");
print T_js_decl("Please select only one category.");
print T_js_decl("No OPML file to upload.");
print T_js_decl("Changing category of selected feeds...");
print T_js_decl("Reset to defaults?");
print T_js_decl("Trying to change password...");
print T_js_decl("Trying to change e-mail...");
2007-03-26 05:31:42 +00:00
print T_js_decl("No articles are selected.");
2007-05-15 06:20:57 +00:00
print T_js_decl("Could not update headlines (missing XML object)");
print T_js_decl("Could not display article (missing XML object)");
print T_js_decl("No feed selected.");
2007-08-10 04:25:06 +00:00
print T_js_decl("Replace current publishing address with a new one?");
print T_js_decl("Address changed.");
print T_js_decl("Could not change address.");
2007-08-10 16:16:43 +00:00
print T_js_decl("You can't unsubscribe from the category.");
print T_js_decl("Please select some feed first.");
print T_js_decl("You can't edit this kind of feed.");
print T_js_decl("Can't create label: missing SQL expression.");
print T_js_decl("Can't create label: missing caption.");
print T_js_decl("Can't add user: no login specified.");
print T_js_decl("No labels are selected.");
print T_js_decl("No users are selected.");
print T_js_decl("No filters are selected.");
print T_js_decl("No feeds are selected.");
print T_js_decl("No categories are selected.");
print T_js_decl("Login field cannot be blank.");
print T_js_decl("No feeds are selected.");
print T_js_decl("Can't add filter: nothing to match on.");
print T_js_decl("Can't subscribe: no feed URL given.");
2007-08-12 02:30:04 +00:00
print T_js_decl("Unsubscribe from %s?");
print T_js_decl("Mark all visible articles in %s as read?");
print T_js_decl("Mark all selected articles in %s as read?");
print T_js_decl("Please enter label title:");
print T_js_decl("Save current configuration?");
2007-08-21 01:22:29 +00:00
print T_js_decl("Old password cannot be blank.");
print T_js_decl("New password cannot be blank.");
print T_js_decl("Entered passwords do not match.");
print T_js_decl("No articles found to mark");
print T_js_decl("Mark %d article(s) as read?");
print T_js_decl("No article is selected.");
print T_js_decl("Star article");
print T_js_decl("Unstar article");
print T_js_decl("Please wait...");
print T_js_decl("Publish article");
print T_js_decl("Unpublish article");
#print T_js_decl(
#print T_js_decl(
2007-08-21 01:22:29 +00:00
#print T_js_decl(
#print T_js_decl(
2007-08-10 16:16:43 +00:00
#print T_js_decl(
#print T_js_decl(
#print T_js_decl(
#print T_js_decl(
#print T_js_decl(
2007-03-06 06:11:28 +00:00
2007-03-06 06:54:47 +00:00
?>