From 709e7dc29bdfd104ea81f72607b77c46a84a0af9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Mar 2007 07:11:28 +0100 Subject: [PATCH] add gettext to js, bump translations --- locale/ru_RU/LC_MESSAGES/messages.mo | Bin 2007 -> 3849 bytes locale/ru_RU/LC_MESSAGES/messages.po | 78 +++++++++++++-------------- localized_js.php | 26 +++++++++ tt-rss.js | 4 +- tt-rss.php | 4 +- 5 files changed, 68 insertions(+), 44 deletions(-) create mode 100644 localized_js.php diff --git a/locale/ru_RU/LC_MESSAGES/messages.mo b/locale/ru_RU/LC_MESSAGES/messages.mo index 4295006a72e47df093975742abb1173b9f9dcd27..3f638cebeebfbfe2416f795b0bc31bd6446f6668 100644 GIT binary patch literal 3849 zcmb7^U2Ggz6~}KNKx-f^^)!>2 z&CF~<#EU;@tH>r138(?lhN!B<1C>nTZ5_LD5E4Q{fMy;*NPI-R^o3SPd_C|2zjJr& z#&N2avG4r$-Z}T)bN=Vt`{&y>epm7ArQJ^Z=LV$);jiAyi|3~IDfKCMGyEjn3O@`V zf<5ptD5fLuR`?`*KYR*qhDYGd@C5t_JOe)fUxK&5m*I!tW%xn(OUS?a9j}e>kJW_%T?8{Hsx3H$gY+hZ&DU*>?hpf8T=l!sp;;;1wwG z{Q+)*uS4v;OUnf3-E^wv0P7?uDY)J}B$e;BD}0S^o$m zRP_xgc9T%{ISu(&-^=>vp?v=l6n`#d{CW00g_5t|Ly7lwcpo|b2fUa59c*5NWq2o? zfTHs`DEnQ6pM#4~=3j+d;2TivHX)Ma`7S8B7omI~gi<$0;C*lg%KQ%eH2fKq{Qn7x z{hJwYAqeqzJM4vzK-u4eV)t!`sk#V7uVpCvq}ljiVV?fKv+sAa=|TE?;1}Q|6u*BA zWuKoy(eF2qe|43YtosI(y#F`rZ^Bsi-2!D^FE8=G2xZ=5P~v|Aik}|*1U#AbUxK33 zFQBY{6^fsKhvLr`Hk0%502F-=z_}Vx<*ctfOtl(6m<>Dt@25#U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#RinLK$ zy3e_B{DX@7+ngJ~2k7Gq9KtTf@hv8C19#wO%;0xS;a~L7-|k!thfwo!m~*b}MtRu9 ziwgGRTr{8>xqt=UUqU5t9kt*JY5_xia22({qp1G`6ZBt3{Vpo;H>i0Vp>5|jqXFM= zoLz6Bs!<^AVGQs9p2ajSMejQ}LjNxA$ET>uy+e)rg?rE=J5{iRM{xr6y#>s&zU%O? z8x6I?XLuObPziiReefq{F~+tAaRk*LL(Q8;?Q8}$?;MWdA}Y~acmy9JKlh%$wvJin zuFxQzp?0rO_8earDxE@!>}Xr)dLPT!|?ug_7Wm9R&>+)V-i6ZYM2@gW=gK zdxgrRyP#mRVdzfSNv~k@-afnIf@k91IUXEAmt*f=b9w*B7BQcklES0B&$>TQL|H(SZ6ZR@uv5bGrs(#UK o`{%8ax?rzUQ+6|b%D$w}_^ZA3-r9#7y>4Jz1H*lRT^wxv19_xjI{*Lx 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;
 
-- 2.39.5