$feed_title = $qfh_ret[1];
$feed_site_url = $qfh_ret[2];
$last_error = $qfh_ret[3];
-
+
+ if ($feed == -2) {
+ $feed_site_url = article_publish_url($link);
+ }
+
/// STOP //////////////////////////////////////////////////////////////////////////////////
if (!$offset) {
return sha1(uniqid(rand(), true));
}
+ function article_publish_url($link) {
+
+ $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
+ parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
+
+ $url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
+
+ return $url_path;
+ }
+
?>
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-17 11:17+0400\n"
+"POT-Creation-Date: 2007-08-10 12:23+0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"\t\tofficial site for more information."
msgstr ""
-#: functions.php:2203 functions.php:2242 functions.php:2559 functions.php:3294
-#: functions.php:3324 modules/pref-feeds.php:890
+#: functions.php:2239 functions.php:2278 functions.php:2602 functions.php:3384
+#: functions.php:3414 modules/pref-feeds.php:890
msgid "Uncategorized"
msgstr "Нет категории"
-#: functions.php:2232 functions.php:3142
+#: functions.php:2268 functions.php:3224
msgid "Special"
msgstr "Особые"
-#: functions.php:2234 functions.php:3168
+#: functions.php:2270 functions.php:3258
msgid "Labels"
msgstr "Метки"
-#: functions.php:2252 functions.php:2581 functions.php:3152
+#: functions.php:2288 functions.php:2624 functions.php:3235
msgid "Starred articles"
msgstr "Отмеченные статьи"
-#: functions.php:2545 functions.php:2547
+#: functions.php:2290 functions.php:2626 functions.php:3242
+#, fuzzy
+msgid "Published articles"
+msgstr "Отмеченные статьи"
+
+#: functions.php:2588 functions.php:2590
msgid "Search results"
msgstr "Результаты поиска"
-#: functions.php:2563 functions.php:2576 functions.php:2589
+#: functions.php:2606 functions.php:2619 functions.php:2634
msgid "Searched for"
msgstr "Поиск"
-#: functions.php:2809
+#: functions.php:2857
msgid "New headlines for last 24 hours, as of "
msgstr "Новые заголовки за последние 24 часа, на "
-#: functions.php:2853
+#: functions.php:2901
msgid ""
"You have been sent this email because you have enabled daily digests in Tiny "
"Tiny RSS at "
msgstr ""
-#: functions.php:2855
+#: functions.php:2903
msgid ""
"To unsubscribe, visit your configuration options or contact instance owner.\n"
msgstr ""
-#: functions.php:3034 functions.php:3069 modules/pref-feeds.php:615
-#: modules/pref-feeds.php:852 modules/pref-filters.php:255
-#: modules/pref-labels.php:234 modules/pref-users.php:208
+#: functions.php:3109 functions.php:3151 functions.php:4049
+#: modules/pref-feeds.php:615 modules/pref-feeds.php:852
+#: modules/pref-filters.php:255 modules/pref-labels.php:234
+#: modules/pref-users.php:208
msgid "Select:"
msgstr "Выбрать:"
-#: functions.php:3035 functions.php:3070 modules/pref-feeds.php:616
+#: functions.php:3110 functions.php:3152 modules/pref-feeds.php:616
#: modules/pref-feeds.php:853 modules/pref-filters.php:256
#: modules/pref-labels.php:235 modules/pref-users.php:209
msgid "All"
msgstr "Все"
-#: functions.php:3036 functions.php:3040 functions.php:3071 functions.php:3074
+#: functions.php:3111 functions.php:3115 functions.php:3153 functions.php:3156
#: tt-rss.php:172
msgid "Unread"
msgstr "Новые"
-#: functions.php:3037 functions.php:3072 modules/pref-feeds.php:617
+#: functions.php:3112 functions.php:3154 modules/pref-feeds.php:617
#: modules/pref-feeds.php:854 modules/pref-filters.php:257
#: modules/pref-labels.php:236 modules/pref-users.php:210
msgid "None"
msgstr "Ничего"
-#: functions.php:3041 functions.php:3075 tt-rss.php:171
+#: functions.php:3116 functions.php:3157 tt-rss.php:171
msgid "Starred"
msgstr "Отмеченные"
-#: functions.php:3043
+#: functions.php:3117
+msgid "Published"
+msgstr ""
+
+#: functions.php:3120
msgid "Mark as read"
msgstr "Как прочитанные"
-#: functions.php:3044
+#: functions.php:3121
msgid "This page"
msgstr "Эту страницу"
-#: functions.php:3045
+#: functions.php:3122
msgid "Entire feed"
msgstr "Весь канал"
-#: functions.php:3050
+#: functions.php:3130
msgid "Next page"
msgstr "След. стр."
-#: functions.php:3051
+#: functions.php:3131
msgid "Previous page"
msgstr "Пред. cтр."
-#: functions.php:3052
+#: functions.php:3132
msgid "First page"
msgstr "На первую"
-#: functions.php:3060 functions.php:3086
+#: functions.php:3142 functions.php:3168
msgid "Convert to label"
msgstr "Превратить в метку"
-#: functions.php:3074
+#: functions.php:3156
msgid "Toggle:"
msgstr "Изменить:"
-#: functions.php:3077
+#: functions.php:3159
msgid "Mark as read:"
msgstr "Пометить как прочит.:"
-#: functions.php:3078
+#: functions.php:3160
msgid "Page"
msgstr "Страница"
-#: functions.php:3079 modules/pref-filters.php:263
+#: functions.php:3161 modules/pref-filters.php:263
msgid "Feed"
msgstr "Канал"
-#: functions.php:3124
+#: functions.php:3206
msgid "Generated feed"
msgstr ""
-#: functions.php:3364
+#: functions.php:3454
msgid "No feeds to display."
msgstr "Нет каналов для отображения."
-#: functions.php:3381
+#: functions.php:3471
msgid "Tags"
msgstr "Теги"
-#: functions.php:3600
+#: functions.php:3693
msgid " - by "
msgstr ", автор - "
-#: functions.php:3644
+#: functions.php:3738
msgid "no tags"
msgstr "нет тегов"
-#: functions.php:3657
+#: functions.php:3750
msgid "Tags:"
msgstr "Теги:"
-#: functions.php:3713
+#: functions.php:3807
msgid "Feed not found."
msgstr "Канал не найден."
-#: functions.php:3770
+#: functions.php:3869
msgid ""
"Could not display feed (query failed). Please check label match syntax or "
"local configuration."
msgstr ""
-#: functions.php:3972
+#: functions.php:4110
msgid "No articles found."
msgstr "Статей не найдено."
msgid "display tags"
msgstr "показать теги"
-#: localized_js.php:34 prefs.php:124 tt-rss.php:79
+#: localized_js.php:34 prefs.php:126 tt-rss.php:79
msgid "Loading, please wait..."
msgstr "Идет загрузка..."
msgid "No feed selected."
msgstr "Канал не выбран."
+#: localized_js.php:93
+msgid "Replace current publishing address with a new one?"
+msgstr ""
+
+#: localized_js.php:94
+msgid "Address changed."
+msgstr ""
+
+#: localized_js.php:95
+msgid "Could not change address."
+msgstr ""
+
#: login_form.php:49 modules/pref-feeds.php:264 modules/pref-users.php:29
msgid "Login:"
msgstr "Пользователь:"
msgstr "Другие каналы"
#: prefs.php:112
+#, fuzzy
+msgid "Published Articles"
+msgstr "Все статьи"
+
+#: prefs.php:114
msgid "Content Filtering"
msgstr "Фильтры"
-#: prefs.php:115
+#: prefs.php:117
msgid "Label Editor"
msgstr "Метки"
-#: prefs.php:119
+#: prefs.php:121
msgid "User Manager"
msgstr "Пользователи"
-#: prefs.php:127 tt-rss.php:82
+#: prefs.php:129 tt-rss.php:82
msgid ""
"Your browser doesn't support Javascript, which is required\n"
"\t\tfor this application to function properly. Please check your\n"
msgstr ""
#: modules/popup-dialog.php:427
-msgid "browse all"
+msgid "browse more"
msgstr ""
#: modules/pref-feed-browser.php:77
msgid "Export OPML"
msgstr "Экспортировать OPML"
+#: modules/pref-feeds.php:1053
+msgid ""
+"Published articles are exported as a public RSS feed and can be subscribed "
+"by anyone who knows the address specified below."
+msgstr ""
+
+#: modules/pref-feeds.php:1060
+msgid "Generate another address"
+msgstr ""
+
#: modules/pref-filters.php:22
msgid "Filter editor"
msgstr "Редактор фильтров"
msgstr ""
"Project-Id-Version: Tiny Tiny RSS1.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-07-17 11:17+0400\n"
+"POT-Creation-Date: 2007-08-10 12:23+0400\n"
"PO-Revision-Date: 2007-06-10 11:56+0800\n"
"Last-Translator: sluke <sluke520@yahoo.com.cn>\n"
"Language-Team: hicode.org <sluke520@yahoo.com.cn>\n"
"不支持你的MySQL版本. 请访问 \n"
"\t\t官方网站获取更多信息。"
-#: functions.php:2203 functions.php:2242 functions.php:2559 functions.php:3294
-#: functions.php:3324 modules/pref-feeds.php:890
+#: functions.php:2239 functions.php:2278 functions.php:2602 functions.php:3384
+#: functions.php:3414 modules/pref-feeds.php:890
msgid "Uncategorized"
msgstr "未分类"
-#: functions.php:2232 functions.php:3142
+#: functions.php:2268 functions.php:3224
msgid "Special"
msgstr "专用"
-#: functions.php:2234 functions.php:3168
+#: functions.php:2270 functions.php:3258
msgid "Labels"
msgstr "标记"
-#: functions.php:2252 functions.php:2581 functions.php:3152
+#: functions.php:2288 functions.php:2624 functions.php:3235
msgid "Starred articles"
msgstr "星级文章"
-#: functions.php:2545 functions.php:2547
+#: functions.php:2290 functions.php:2626 functions.php:3242
+#, fuzzy
+msgid "Published articles"
+msgstr "星级文章"
+
+#: functions.php:2588 functions.php:2590
msgid "Search results"
msgstr "搜索结果"
-#: functions.php:2563 functions.php:2576 functions.php:2589
+#: functions.php:2606 functions.php:2619 functions.php:2634
msgid "Searched for"
msgstr "搜索"
-#: functions.php:2809
+#: functions.php:2857
msgid "New headlines for last 24 hours, as of "
msgstr "24小时最新头条,截至"
-#: functions.php:2853
+#: functions.php:2901
msgid ""
"You have been sent this email because you have enabled daily digests in Tiny "
"Tiny RSS at "
msgstr "由于您启用了Tiny Tiny RSS每日文摘,会收到此邮件。"
-#: functions.php:2855
+#: functions.php:2903
msgid ""
"To unsubscribe, visit your configuration options or contact instance owner.\n"
msgstr "若要退订,访问你的配置选项或联络管理员。\n"
-#: functions.php:3034 functions.php:3069 modules/pref-feeds.php:615
-#: modules/pref-feeds.php:852 modules/pref-filters.php:255
-#: modules/pref-labels.php:234 modules/pref-users.php:208
+#: functions.php:3109 functions.php:3151 functions.php:4049
+#: modules/pref-feeds.php:615 modules/pref-feeds.php:852
+#: modules/pref-filters.php:255 modules/pref-labels.php:234
+#: modules/pref-users.php:208
msgid "Select:"
msgstr "选择:"
-#: functions.php:3035 functions.php:3070 modules/pref-feeds.php:616
+#: functions.php:3110 functions.php:3152 modules/pref-feeds.php:616
#: modules/pref-feeds.php:853 modules/pref-filters.php:256
#: modules/pref-labels.php:235 modules/pref-users.php:209
msgid "All"
msgstr "所有"
-#: functions.php:3036 functions.php:3040 functions.php:3071 functions.php:3074
+#: functions.php:3111 functions.php:3115 functions.php:3153 functions.php:3156
#: tt-rss.php:172
msgid "Unread"
msgstr "未读"
-#: functions.php:3037 functions.php:3072 modules/pref-feeds.php:617
+#: functions.php:3112 functions.php:3154 modules/pref-feeds.php:617
#: modules/pref-feeds.php:854 modules/pref-filters.php:257
#: modules/pref-labels.php:236 modules/pref-users.php:210
msgid "None"
msgstr "无"
-#: functions.php:3041 functions.php:3075 tt-rss.php:171
+#: functions.php:3116 functions.php:3157 tt-rss.php:171
msgid "Starred"
msgstr "星级"
-#: functions.php:3043
+#: functions.php:3117
+msgid "Published"
+msgstr ""
+
+#: functions.php:3120
msgid "Mark as read"
msgstr "标记为已读"
-#: functions.php:3044
+#: functions.php:3121
msgid "This page"
msgstr "本页"
-#: functions.php:3045
+#: functions.php:3122
msgid "Entire feed"
msgstr "输入feed"
-#: functions.php:3050
+#: functions.php:3130
msgid "Next page"
msgstr "下页"
-#: functions.php:3051
+#: functions.php:3131
msgid "Previous page"
msgstr "上页"
-#: functions.php:3052
+#: functions.php:3132
msgid "First page"
msgstr "首页"
-#: functions.php:3060 functions.php:3086
+#: functions.php:3142 functions.php:3168
msgid "Convert to label"
msgstr "转换标签"
-#: functions.php:3074
+#: functions.php:3156
msgid "Toggle:"
msgstr "触发:"
-#: functions.php:3077
+#: functions.php:3159
msgid "Mark as read:"
msgstr "标记为已读:"
-#: functions.php:3078
+#: functions.php:3160
msgid "Page"
msgstr "页"
-#: functions.php:3079 modules/pref-filters.php:263
+#: functions.php:3161 modules/pref-filters.php:263
msgid "Feed"
msgstr "Feed"
-#: functions.php:3124
+#: functions.php:3206
msgid "Generated feed"
msgstr "产生feed"
-#: functions.php:3364
+#: functions.php:3454
msgid "No feeds to display."
msgstr "无feed显示。"
-#: functions.php:3381
+#: functions.php:3471
msgid "Tags"
msgstr "标签"
-#: functions.php:3600
+#: functions.php:3693
msgid " - by "
msgstr ", 由 - "
-#: functions.php:3644
+#: functions.php:3738
msgid "no tags"
msgstr "无标签"
-#: functions.php:3657
+#: functions.php:3750
msgid "Tags:"
msgstr "标签:"
-#: functions.php:3713
+#: functions.php:3807
msgid "Feed not found."
msgstr "未找到Feed."
-#: functions.php:3770
+#: functions.php:3869
msgid ""
"Could not display feed (query failed). Please check label match syntax or "
"local configuration."
msgstr "无法显示feed(查询失败); 请核对标签匹配语法或本地配置."
-#: functions.php:3972
+#: functions.php:4110
msgid "No articles found."
msgstr "未找到文章。"
msgid "display tags"
msgstr "显示标签"
-#: localized_js.php:34 prefs.php:124 tt-rss.php:79
+#: localized_js.php:34 prefs.php:126 tt-rss.php:79
msgid "Loading, please wait..."
msgstr "读取中,请等待..."
msgid "No feed selected."
msgstr "无选定feed."
+#: localized_js.php:93
+msgid "Replace current publishing address with a new one?"
+msgstr ""
+
+#: localized_js.php:94
+msgid "Address changed."
+msgstr ""
+
+#: localized_js.php:95
+#, fuzzy
+msgid "Could not change address."
+msgstr "未能更新数据库"
+
#: login_form.php:49 modules/pref-feeds.php:264 modules/pref-users.php:29
msgid "Login:"
msgstr "登陆:"
msgstr "其他feed"
#: prefs.php:112
+#, fuzzy
+msgid "Published Articles"
+msgstr "所有文章"
+
+#: prefs.php:114
msgid "Content Filtering"
msgstr "内容过滤器"
-#: prefs.php:115
+#: prefs.php:117
msgid "Label Editor"
msgstr "标记编辑"
-#: prefs.php:119
+#: prefs.php:121
msgid "User Manager"
msgstr "用户管理"
-#: prefs.php:127 tt-rss.php:82
+#: prefs.php:129 tt-rss.php:82
msgid ""
"Your browser doesn't support Javascript, which is required\n"
"\t\tfor this application to function properly. Please check your\n"
msgstr "显示最热标签"
#: modules/popup-dialog.php:427
-msgid "browse all"
+#, fuzzy
+msgid "browse more"
msgstr "浏览所有"
#: modules/pref-feed-browser.php:77
msgid "Export OPML"
msgstr "导出OPML"
+#: modules/pref-feeds.php:1053
+msgid ""
+"Published articles are exported as a public RSS feed and can be subscribed "
+"by anyone who knows the address specified below."
+msgstr ""
+
+#: modules/pref-feeds.php:1060
+msgid "Generate another address"
+msgstr ""
+
#: modules/pref-filters.php:22
msgid "Filter editor"
msgstr "过滤器编辑"
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.");
+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.");
?>
print "<rpc-reply>";
set_pref($link, "_PREFS_PUBLISH_KEY", generate_publish_key());
-
- $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
- parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
- $new_link = $url_path . "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
+ $new_link = article_publish_url($link);
print "<link><![CDATA[$new_link]]></link>";
print "<p>".__('Published articles are exported as a public RSS feed and can be subscribed by anyone who knows the address specified below.')."</p>";
- $url_path = 'http://' . $_SERVER["HTTP_HOST"] . \
- parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);
-
- $url_path .= "?op=publish&key=" . get_pref($link, "_PREFS_PUBLISH_KEY");
+ $url_path = article_publish_url($link);
print "<p class=\"small\"><a id=\"pubGenAddress\" target=\"_new\" href=\"$url_path\">$url_path</a></p>";
link.href = new_link.firstChild.nodeValue;
link.innerHTML = new_link.firstChild.nodeValue;
- notify_info("Address changed");
+ notify_info("Address changed.");
} else {
- notify_error("Could not change address");
+ notify_error("Could not change address.");
}
} else {
- notify_error("Could not change address");
+ notify_error("Could not change address.");
}
} catch (e) {
exception_error("replace_pubkey_callback", e);
if (sel_rows.length > 0) {
- var ok = confirm("Remove selected labels?");
+ var ok = confirm(__("Remove selected labels?"));
if (ok) {
notify_progress("Removing selected labels...");
if (sel_rows.length > 0) {
- var ok = confirm("Remove selected users?");
+ var ok = confirm(__("Remove selected users?"));
if (ok) {
notify_progress("Removing selected users...");
if (sel_rows.length > 0) {
- var ok = confirm("Remove selected filters?");
+ var ok = confirm(__("Remove selected filters?"));
if (ok) {
notify_progress("Removing selected filters...");
if (sel_rows.length > 0) {
- var ok = confirm("Unsubscribe from selected feeds?");
+ var ok = confirm(__("Unsubscribe from selected feeds?"));
if (ok) {
if (sel_rows.length > 0) {
- var ok = confirm("Remove selected categories?");
+ var ok = confirm(__("Remove selected categories?"));
if (ok) {
notify_progress("Removing selected categories...");
return false;
}
- var ok = confirm("Replace current publishing address with a new one?");
+ var ok = confirm(__("Replace current publishing address with a new one?"));
if (ok) {