add gettext to js, bump translations
This commit is contained in:
parent
793185a9a5
commit
709e7dc29b
5 changed files with 68 additions and 44 deletions
Binary file not shown.
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 1.0\n"
|
"Project-Id-Version: 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2007-03-05 19:53+0300\n"
|
"POT-Creation-Date: 2007-03-06 12:07+0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -114,18 +114,10 @@ msgstr ""
|
||||||
msgid "This program requires XmlHttpRequest "
|
msgid "This program requires XmlHttpRequest "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: errors.php:6
|
|
||||||
msgid "to function properly. Your browser doesn't seem to support it."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: errors.php:8
|
#: errors.php:8
|
||||||
msgid "This program requires cookies "
|
msgid "This program requires cookies "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: errors.php:9
|
|
||||||
msgid "to function properly. Your browser doesn't seem to support them."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: errors.php:11
|
#: errors.php:11
|
||||||
msgid "Backend sanity check failed"
|
msgid "Backend sanity check failed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -175,39 +167,39 @@ msgstr ""
|
||||||
|
|
||||||
#: functions.php:2038 functions.php:2852
|
#: functions.php:2038 functions.php:2852
|
||||||
msgid "Special"
|
msgid "Special"
|
||||||
msgstr ""
|
msgstr "Особые"
|
||||||
|
|
||||||
#: functions.php:2040 functions.php:2878
|
#: functions.php:2040 functions.php:2878
|
||||||
msgid "Labels"
|
msgid "Labels"
|
||||||
msgstr ""
|
msgstr "Метки"
|
||||||
|
|
||||||
#: functions.php:2058 functions.php:2344 functions.php:2862
|
#: functions.php:2058 functions.php:2344 functions.php:2862
|
||||||
msgid "Starred articles"
|
msgid "Starred articles"
|
||||||
msgstr ""
|
msgstr "Отмеченные статьи"
|
||||||
|
|
||||||
#: functions.php:2308
|
#: functions.php:2308
|
||||||
msgid "Global search results"
|
msgid "Global search results"
|
||||||
msgstr ""
|
msgstr "Результаты поиска"
|
||||||
|
|
||||||
#: functions.php:2310
|
#: functions.php:2310
|
||||||
msgid "Tag search results"
|
msgid "Tag search results"
|
||||||
msgstr ""
|
msgstr "Результаты поиска"
|
||||||
|
|
||||||
#: functions.php:2326
|
#: functions.php:2326
|
||||||
msgid "Category search results"
|
msgid "Category search results"
|
||||||
msgstr ""
|
msgstr "Результаты поиска"
|
||||||
|
|
||||||
#: functions.php:2339
|
#: functions.php:2339
|
||||||
msgid "Feed search results"
|
msgid "Feed search results"
|
||||||
msgstr ""
|
msgstr "Результаты поиска"
|
||||||
|
|
||||||
#: functions.php:2352
|
#: functions.php:2352
|
||||||
msgid "Label search results"
|
msgid "Label search results"
|
||||||
msgstr ""
|
msgstr "Результаты поиска"
|
||||||
|
|
||||||
#: functions.php:2547
|
#: functions.php:2547
|
||||||
msgid "New headlines for last 24 hours, as of "
|
msgid "New headlines for last 24 hours, as of "
|
||||||
msgstr ""
|
msgstr "Новые заголовки за последние 24 часа, на "
|
||||||
|
|
||||||
#: functions.php:2591
|
#: functions.php:2591
|
||||||
msgid ""
|
msgid ""
|
||||||
|
@ -222,11 +214,11 @@ msgstr ""
|
||||||
|
|
||||||
#: functions.php:2760 functions.php:2789
|
#: functions.php:2760 functions.php:2789
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr "Все"
|
||||||
|
|
||||||
#: functions.php:2761 functions.php:2790 functions.php:2793 tt-rss.php:162
|
#: functions.php:2761 functions.php:2790 functions.php:2793 tt-rss.php:162
|
||||||
msgid "Unread"
|
msgid "Unread"
|
||||||
msgstr ""
|
msgstr "Непрочитанные"
|
||||||
|
|
||||||
#: functions.php:2762 functions.php:2791
|
#: functions.php:2762 functions.php:2791
|
||||||
msgid "None"
|
msgid "None"
|
||||||
|
@ -242,15 +234,15 @@ msgstr ""
|
||||||
|
|
||||||
#: functions.php:2768
|
#: functions.php:2768
|
||||||
msgid "Mark as read"
|
msgid "Mark as read"
|
||||||
msgstr ""
|
msgstr "Пометить как прочитанные"
|
||||||
|
|
||||||
#: functions.php:2769
|
#: functions.php:2769
|
||||||
msgid "This page"
|
msgid "This page"
|
||||||
msgstr ""
|
msgstr "Эту страницу"
|
||||||
|
|
||||||
#: functions.php:2770
|
#: functions.php:2770
|
||||||
msgid "Entire feed"
|
msgid "Entire feed"
|
||||||
msgstr ""
|
msgstr "Весь фид"
|
||||||
|
|
||||||
#: functions.php:2775
|
#: functions.php:2775
|
||||||
msgid "Next page"
|
msgid "Next page"
|
||||||
|
@ -266,15 +258,15 @@ msgstr ""
|
||||||
|
|
||||||
#: functions.php:2788
|
#: functions.php:2788
|
||||||
msgid "Select:"
|
msgid "Select:"
|
||||||
msgstr ""
|
msgstr "Выбрать:"
|
||||||
|
|
||||||
#: functions.php:2793
|
#: functions.php:2793
|
||||||
msgid "Toggle:"
|
msgid "Toggle:"
|
||||||
msgstr ""
|
msgstr "Изменить:"
|
||||||
|
|
||||||
#: functions.php:2794 tt-rss.php:161
|
#: functions.php:2794 tt-rss.php:161
|
||||||
msgid "Starred"
|
msgid "Starred"
|
||||||
msgstr ""
|
msgstr "Отмеченные"
|
||||||
|
|
||||||
#: functions.php:2796
|
#: functions.php:2796
|
||||||
msgid "Mark as read:"
|
msgid "Mark as read:"
|
||||||
|
@ -282,7 +274,7 @@ msgstr ""
|
||||||
|
|
||||||
#: functions.php:2797
|
#: functions.php:2797
|
||||||
msgid "Page"
|
msgid "Page"
|
||||||
msgstr ""
|
msgstr "Страница"
|
||||||
|
|
||||||
#: functions.php:2798 modules/pref-filters.php:261
|
#: functions.php:2798 modules/pref-filters.php:261
|
||||||
msgid "Feed"
|
msgid "Feed"
|
||||||
|
@ -304,6 +296,14 @@ msgstr ""
|
||||||
msgid "Tags"
|
msgid "Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: localized_js.php:14
|
||||||
|
msgid "display feeds"
|
||||||
|
msgstr "показать фиды"
|
||||||
|
|
||||||
|
#: localized_js.php:15
|
||||||
|
msgid "display tags"
|
||||||
|
msgstr "показать теги"
|
||||||
|
|
||||||
#: login_form.php:49 modules/pref-feeds.php:264 modules/pref-users.php:29
|
#: login_form.php:49 modules/pref-feeds.php:264 modules/pref-users.php:29
|
||||||
msgid "Login:"
|
msgid "Login:"
|
||||||
msgstr "Пользователь:"
|
msgstr "Пользователь:"
|
||||||
|
@ -423,10 +423,6 @@ msgstr ""
|
||||||
msgid "config: SESSION_EXPIRE_TIME should be greater or equal to"
|
msgid "config: SESSION_EXPIRE_TIME should be greater or equal to"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: sanity_check.php:53
|
|
||||||
msgid "SESSION_COOKIE_LIFETIME"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: sanity_check.php:61
|
#: sanity_check.php:61
|
||||||
msgid "config: DATABASE_BACKED_SESSIONS is incompatible with SINGLE_USER_MODE"
|
msgid "config: DATABASE_BACKED_SESSIONS is incompatible with SINGLE_USER_MODE"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -474,7 +470,7 @@ msgstr ""
|
||||||
|
|
||||||
#: tt-rss.php:142
|
#: tt-rss.php:142
|
||||||
msgid " Mark as read"
|
msgid " Mark as read"
|
||||||
msgstr ""
|
msgstr " Отметить как прочитанные"
|
||||||
|
|
||||||
#: tt-rss.php:143
|
#: tt-rss.php:143
|
||||||
msgid " (Un)hide read feeds"
|
msgid " (Un)hide read feeds"
|
||||||
|
@ -482,15 +478,15 @@ msgstr ""
|
||||||
|
|
||||||
#: tt-rss.php:145
|
#: tt-rss.php:145
|
||||||
msgid "Other actions:"
|
msgid "Other actions:"
|
||||||
msgstr ""
|
msgstr "Другое:"
|
||||||
|
|
||||||
#: tt-rss.php:146
|
#: tt-rss.php:146
|
||||||
msgid " Create filter"
|
msgid " Create filter"
|
||||||
msgstr ""
|
msgstr " Создать фильтр"
|
||||||
|
|
||||||
#: tt-rss.php:152 modules/popup-dialog.php:95
|
#: tt-rss.php:152 modules/popup-dialog.php:95
|
||||||
msgid "Search:"
|
msgid "Search:"
|
||||||
msgstr "Поиск:"
|
msgstr "Искать:"
|
||||||
|
|
||||||
#: tt-rss.php:157
|
#: tt-rss.php:157
|
||||||
msgid "View:"
|
msgid "View:"
|
||||||
|
@ -587,7 +583,7 @@ msgstr "Категория:"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:73 modules/pref-feeds.php:118
|
#: modules/popup-dialog.php:73 modules/pref-feeds.php:118
|
||||||
msgid "Subscribe"
|
msgid "Subscribe"
|
||||||
msgstr ""
|
msgstr "Подписаться"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:76 modules/popup-dialog.php:155
|
#: modules/popup-dialog.php:76 modules/popup-dialog.php:155
|
||||||
#: modules/popup-dialog.php:207 modules/popup-dialog.php:294
|
#: modules/popup-dialog.php:207 modules/popup-dialog.php:294
|
||||||
|
@ -615,23 +611,23 @@ msgstr ""
|
||||||
|
|
||||||
#: modules/popup-dialog.php:135
|
#: modules/popup-dialog.php:135
|
||||||
msgid "Match on:"
|
msgid "Match on:"
|
||||||
msgstr ""
|
msgstr "Искать по:"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:138
|
#: modules/popup-dialog.php:138
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr ""
|
msgstr "Заголовок"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:139
|
#: modules/popup-dialog.php:139
|
||||||
msgid "Content"
|
msgid "Content"
|
||||||
msgstr ""
|
msgstr "Содержимое"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:140
|
#: modules/popup-dialog.php:140
|
||||||
msgid "Title or content"
|
msgid "Title or content"
|
||||||
msgstr ""
|
msgstr "Заголовок или содержимое"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:164 modules/pref-labels.php:209
|
#: modules/popup-dialog.php:164 modules/pref-labels.php:209
|
||||||
msgid "Create label"
|
msgid "Create label"
|
||||||
msgstr ""
|
msgstr "Создать метку"
|
||||||
|
|
||||||
#: modules/popup-dialog.php:174
|
#: modules/popup-dialog.php:174
|
||||||
msgid "Caption:"
|
msgid "Caption:"
|
||||||
|
|
26
localized_js.php
Normal file
26
localized_js.php
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
<?php
|
||||||
|
require "functions.php";
|
||||||
|
header("Content-Type: text/plain; charset=UTF-8");
|
||||||
|
|
||||||
|
function js_decl($s1, $s2) {
|
||||||
|
return "T_messages[\"$s1\"] = \"$s2\";\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
var T_messages = new Object();
|
||||||
|
|
||||||
|
function __(msg) {
|
||||||
|
if (T_messages[msg]) {
|
||||||
|
return T_messages[msg];
|
||||||
|
} else {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
print js_decl("display feeds", __("display feeds"));
|
||||||
|
print js_decl("display tags", __("display tags"));
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
|
@ -32,9 +32,9 @@ function toggleTags() {
|
||||||
var p = document.getElementById("dispSwitchPrompt");
|
var p = document.getElementById("dispSwitchPrompt");
|
||||||
|
|
||||||
if (display_tags) {
|
if (display_tags) {
|
||||||
p.innerHTML = "display feeds";
|
p.innerHTML = __("display feeds");
|
||||||
} else {
|
} else {
|
||||||
p.innerHTML = "display tags";
|
p.innerHTML = __("display tags");
|
||||||
}
|
}
|
||||||
|
|
||||||
notify_progress("Loading, please wait...");
|
notify_progress("Loading, please wait...");
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
|
<link rel="shortcut icon" type="image/png" href="images/favicon.png">
|
||||||
|
|
||||||
<script type="text/javascript" src="prototype.js"></script>
|
<script type="text/javascript" src="prototype.js"></script>
|
||||||
|
<script type="text/javascript" src="localized_js.php?<?php echo $dt_add ?>"></script>
|
||||||
|
|
||||||
<script type="text/javascript" src="tt-rss.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="tt-rss.js?<?php echo $dt_add ?>"></script>
|
||||||
<script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
|
<script type="text/javascript" src="functions.js?<?php echo $dt_add ?>"></script>
|
||||||
|
@ -116,7 +117,8 @@ window.onload = init;
|
||||||
|
|
||||||
<div id="feeds-holder">
|
<div id="feeds-holder">
|
||||||
<div id="dispSwitch">
|
<div id="dispSwitch">
|
||||||
<a id="dispSwitchPrompt" href="javascript:toggleTags()">display tags</a>
|
<a id="dispSwitchPrompt"
|
||||||
|
href="javascript:toggleTags()"><?php echo __("display tags") ?></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="feeds-frame"> </div>
|
<div id="feeds-frame"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue