From: Andrew Dolgov Date: Tue, 6 Mar 2007 06:11:28 +0000 (+0100) Subject: add gettext to js, bump translations X-Git-Tag: 1.2.9~25 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=709e7dc29bdfd104ea81f72607b77c46a84a0af9;p=tt-rss.git add gettext to js, bump translations --- diff --git a/locale/ru_RU/LC_MESSAGES/messages.mo b/locale/ru_RU/LC_MESSAGES/messages.mo index 4295006a..3f638ceb 100644 Binary files a/locale/ru_RU/LC_MESSAGES/messages.mo and b/locale/ru_RU/LC_MESSAGES/messages.mo differ diff --git a/locale/ru_RU/LC_MESSAGES/messages.po b/locale/ru_RU/LC_MESSAGES/messages.po index dd36603d..993784c5 100644 --- a/locale/ru_RU/LC_MESSAGES/messages.po +++ b/locale/ru_RU/LC_MESSAGES/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.0\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" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -114,18 +114,10 @@ msgstr "" msgid "This program requires XmlHttpRequest " msgstr "" -#: errors.php:6 -msgid "to function properly. Your browser doesn't seem to support it." -msgstr "" - #: errors.php:8 msgid "This program requires cookies " msgstr "" -#: errors.php:9 -msgid "to function properly. Your browser doesn't seem to support them." -msgstr "" - #: errors.php:11 msgid "Backend sanity check failed" msgstr "" @@ -175,39 +167,39 @@ msgstr "" #: functions.php:2038 functions.php:2852 msgid "Special" -msgstr "" +msgstr "Особые" #: functions.php:2040 functions.php:2878 msgid "Labels" -msgstr "" +msgstr "Метки" #: functions.php:2058 functions.php:2344 functions.php:2862 msgid "Starred articles" -msgstr "" +msgstr "Отмеченные статьи" #: functions.php:2308 msgid "Global search results" -msgstr "" +msgstr "Результаты поиска" #: functions.php:2310 msgid "Tag search results" -msgstr "" +msgstr "Результаты поиска" #: functions.php:2326 msgid "Category search results" -msgstr "" +msgstr "Результаты поиска" #: functions.php:2339 msgid "Feed search results" -msgstr "" +msgstr "Результаты поиска" #: functions.php:2352 msgid "Label search results" -msgstr "" +msgstr "Результаты поиска" #: functions.php:2547 msgid "New headlines for last 24 hours, as of " -msgstr "" +msgstr "Новые заголовки за последние 24 часа, на " #: functions.php:2591 msgid "" @@ -222,11 +214,11 @@ msgstr "" #: functions.php:2760 functions.php:2789 msgid "All" -msgstr "" +msgstr "Все" #: functions.php:2761 functions.php:2790 functions.php:2793 tt-rss.php:162 msgid "Unread" -msgstr "" +msgstr "Непрочитанные" #: functions.php:2762 functions.php:2791 msgid "None" @@ -242,15 +234,15 @@ msgstr "" #: functions.php:2768 msgid "Mark as read" -msgstr "" +msgstr "Пометить как прочитанные" #: functions.php:2769 msgid "This page" -msgstr "" +msgstr "Эту страницу" #: functions.php:2770 msgid "Entire feed" -msgstr "" +msgstr "Весь фид" #: functions.php:2775 msgid "Next page" @@ -266,15 +258,15 @@ msgstr "" #: functions.php:2788 msgid "Select:" -msgstr "" +msgstr "Выбрать:" #: functions.php:2793 msgid "Toggle:" -msgstr "" +msgstr "Изменить:" #: functions.php:2794 tt-rss.php:161 msgid "Starred" -msgstr "" +msgstr "Отмеченные" #: functions.php:2796 msgid "Mark as read:" @@ -282,7 +274,7 @@ msgstr "" #: functions.php:2797 msgid "Page" -msgstr "" +msgstr "Страница" #: functions.php:2798 modules/pref-filters.php:261 msgid "Feed" @@ -304,6 +296,14 @@ msgstr "" msgid "Tags" 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 msgid "Login:" msgstr "Пользователь:" @@ -423,10 +423,6 @@ msgstr "" msgid "config: SESSION_EXPIRE_TIME should be greater or equal to" msgstr "" -#: sanity_check.php:53 -msgid "SESSION_COOKIE_LIFETIME" -msgstr "" - #: sanity_check.php:61 msgid "config: DATABASE_BACKED_SESSIONS is incompatible with SINGLE_USER_MODE" msgstr "" @@ -474,7 +470,7 @@ msgstr "" #: tt-rss.php:142 msgid "  Mark as read" -msgstr "" +msgstr "  ÐžÑ‚метить как прочитанные" #: tt-rss.php:143 msgid "  (Un)hide read feeds" @@ -482,15 +478,15 @@ msgstr "" #: tt-rss.php:145 msgid "Other actions:" -msgstr "" +msgstr "Другое:" #: tt-rss.php:146 msgid "  Create filter" -msgstr "" +msgstr "  Ð¡Ð¾Ð·Ð´Ð°Ñ‚ÑŒ фильтр" #: tt-rss.php:152 modules/popup-dialog.php:95 msgid "Search:" -msgstr "Поиск:" +msgstr "Искать:" #: tt-rss.php:157 msgid "View:" @@ -587,7 +583,7 @@ msgstr "Категория:" #: modules/popup-dialog.php:73 modules/pref-feeds.php:118 msgid "Subscribe" -msgstr "" +msgstr "Подписаться" #: modules/popup-dialog.php:76 modules/popup-dialog.php:155 #: modules/popup-dialog.php:207 modules/popup-dialog.php:294 @@ -615,23 +611,23 @@ msgstr "" #: modules/popup-dialog.php:135 msgid "Match on:" -msgstr "" +msgstr "Искать по:" #: modules/popup-dialog.php:138 msgid "Title" -msgstr "" +msgstr "Заголовок" #: modules/popup-dialog.php:139 msgid "Content" -msgstr "" +msgstr "Содержимое" #: modules/popup-dialog.php:140 msgid "Title or content" -msgstr "" +msgstr "Заголовок или содержимое" #: modules/popup-dialog.php:164 modules/pref-labels.php:209 msgid "Create label" -msgstr "" +msgstr "Создать метку" #: modules/popup-dialog.php:174 msgid "Caption:" diff --git a/localized_js.php b/localized_js.php new file mode 100644 index 00000000..b46ba83b --- /dev/null +++ b/localized_js.php @@ -0,0 +1,26 @@ + + +var T_messages = new Object(); + +function __(msg) { + if (T_messages[msg]) { + return T_messages[msg]; + } else { + return msg; + } +} + + + diff --git a/tt-rss.js b/tt-rss.js index 52ce95f2..eefc90e7 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -32,9 +32,9 @@ function toggleTags() { var p = document.getElementById("dispSwitchPrompt"); if (display_tags) { - p.innerHTML = "display feeds"; + p.innerHTML = __("display feeds"); } else { - p.innerHTML = "display tags"; + p.innerHTML = __("display tags"); } notify_progress("Loading, please wait..."); diff --git a/tt-rss.php b/tt-rss.php index e7c28f03..420aaf5f 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -45,6 +45,7 @@ + @@ -116,7 +117,8 @@ window.onload = init;