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;YnPa)- zUJAUST$uDPk{3h%xId|3CPm`{`K=L0aT3%FW6B77HUMUy4}4VqD>75z9F|p+_dTZ( zGx9WwVWWr-b_>praU%D7c$kC>{kR5+x`63{Y2l3!Wup`#|B?=P!|;@FH&=@LXV?qm z9QcR(G+lD-Fg?Oa3jF|8Tz0LY%(3uiooEDy*#XHMI-bt@NU^3|rsNZX3Kl`;n28xu z3+wjtV#5Ve@+`YQ$us*0R4w3U$m}?5k=<4iDX7c|?lld&o^-OtaT9M=p(}j%YBJih_|FWqGs`<%mFZ5sZ zCvf8$G(7@s4v$Cu*NENeNqjD!rpy3Eh}zEuUi~Nxq+A;^<D{FuEMk`8i?e9atZ zcBS>tv4uf$7)^1EHBoZUwvE!4s^J)uHH&ZZd6>KEK;BE>{)`XQ2J&0^q-VG5t zO1%k;ALULxy*ZtumO+uG4@8XeUkG|DRZ)%U~lG+#sZC6 z`LFUZXNp}P=dP9+qg=qG=toW;!E}@kvW+;F&Dk3Olusbw*4HB1Z{M7 z{~#8hrtJY)a+){lDGvJ>_hYkR4DmKQNvn?lXn*A8Mn&Z$cOU9da3Om{lLRgWHglJ>SpsPIMds$fC*IIkoW5rnz>S!so}r%jn$i zdRmdTIGQj<3(%z5TU3D^wa_mo>^oR(Kn`nk67A=zyUhKMBZni!exhJM^\n" "Language-Team: LANGUAGE \n" @@ -319,9 +319,7 @@ msgstr "Ответы" #: templates/boards/post.html:105 #, python-format -#| msgid "%(count)s message," -#| msgid_plural "%(count)s messages," -msgid "%(count)s message," +msgid "%(count)s message" msgid_plural "%(count)s messages" msgstr[0] "%(count)s сообщение" msgstr[1] "%(count)s сообщения" @@ -329,9 +327,7 @@ msgstr[2] "%(count)s сообщений" #: templates/boards/post.html:106 #, python-format -#| msgid "%(count)s message," -#| msgid_plural "%(count)s messages," -msgid "%(count)s image," +msgid "%(count)s image" msgid_plural "%(count)s images" msgstr[0] "%(count)s изображение" msgstr[1] "%(count)s изображения" @@ -427,15 +423,22 @@ msgstr "Галерея" msgid "Tree" msgstr "Дерево" -#: templates/boards/thread.html:34 -msgid "messages" -msgstr "сообщений" +#: templates/boards/thread.html:36 +#| msgid "messages" +msgid "message" +msgid_plural "messages" +msgstr[0] "сообщение" +msgstr[1] "сообщения" +msgstr[2] "сообщений" -#: templates/boards/thread.html:35 -msgid "images" -msgstr "изображений" +#: templates/boards/thread.html:39 +msgid "image" +msgid_plural "images" +msgstr[0] "изображение" +msgstr[1] "изображения" +msgstr[2] "изображений" -#: templates/boards/thread.html:36 +#: templates/boards/thread.html:41 msgid "Last update: " msgstr "Последнее обновление: " diff --git a/boards/locale/ru/LC_MESSAGES/djangojs.mo b/boards/locale/ru/LC_MESSAGES/djangojs.mo index 58d209b02d15ab1f664e6f18e0dbda7ae067c0d4..6f605db078c248373980e3357705bfd3fa87bf9c GIT binary patch literal 965 zc${sKO>fgM7{|RAKngEHV z0us_rh}$H-K{qH{kr)>a9362*9Qg!%0G_0)3T%#ke(cBpzn>?`&#}=r2*w%UGEf1| z08_~R&!jP&YUgP4W5 z3^5(ogE)i+3oCRHiIG!3`>R-#QV zLgL9jxnZxMYK8)mVd0x)I2M z?!IG}h*uz48{aLMUT*3^A@69eFGErhK9hAnjKR>OqQ&+CT%XdO6P-yq}TMwMEWC%AnlSCI~|MB)s0N z`vIH7Yma;(X=trfmPmS_i`!bKf;eoA#~<9p>4!n673(eG*U1tW4QXQ5Ot#XRnZv!M zb(LK)bjvdE!~~9)`nY8n_%_zDne6AS>Hbm1nvIua#jf9Sk9v+N!HQB-ulxcB1F%OSA>az1WJQ zXaD-5?c}zd=q22-+n02}v6sy4aRdkZi6y?}W53*q>1g|8br=0#7cMy7%5hZ}{Q;mV BS(E?( diff --git a/boards/locale/ru/LC_MESSAGES/djangojs.po b/boards/locale/ru/LC_MESSAGES/djangojs.po --- a/boards/locale/ru/LC_MESSAGES/djangojs.po +++ b/boards/locale/ru/LC_MESSAGES/djangojs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-07-02 13:26+0300\n" +"POT-Creation-Date: 2015-09-04 18:47+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -19,14 +19,37 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" -#: static/js/refpopup.js:58 +#: static/js/3party/jquery-ui.min.js:8 +msgid "'" +msgstr "" + +#: static/js/refpopup.js:72 msgid "Loading..." msgstr "Загрузка..." -#: static/js/refpopup.js:77 +#: static/js/refpopup.js:91 msgid "Post not found" msgstr "Сообщение не найдено" -#: static/js/thread_update.js:279 +#: static/js/thread_update.js:261 +msgid "message" +msgid_plural "messages" +msgstr[0] "сообщение" +msgstr[1] "сообщения" +msgstr[2] "сообщений" + +#: static/js/thread_update.js:262 +msgid "image" +msgid_plural "images" +msgstr[0] "изображение" +msgstr[1] "изображения" +msgstr[2] "изображений" + +#: static/js/thread_update.js:445 msgid "Sending message..." -msgstr "Отправка сообщения..." \ No newline at end of file +msgstr "Отправка сообщения..." + +#: static/js/thread_update.js:449 +msgid "Server error!" +msgstr "Ошибка сервера!" + diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -102,11 +102,10 @@ function connectWebsocket() { * missed. */ function getThreadDiff() { - var lastUpdateTime = $('.metapanel').attr('data-last-update'); - var lastPostId = $('.post').last().attr('id'); + var all_posts = $('.post'); var uids = ''; - var posts = $('.post'); + var posts = all_posts; for (var i = 0; i < posts.length; i++) { uids += posts[i].getAttribute('data-uid') + ' '; } @@ -244,8 +243,10 @@ function updateMetadataPanel() { var replyCountField = $('#reply-count'); var imageCountField = $('#image-count'); - replyCountField.text(getReplyCount()); - imageCountField.text(getImageCount()); + var replyCount = getReplyCount(); + replyCountField.text(replyCount); + var imageCount = getImageCount(); + imageCountField.text(imageCount); var lastUpdate = $('.post:last').children('.post-info').first() .children('.pub_time').first().html(); @@ -257,6 +258,9 @@ function updateMetadataPanel() { blink(replyCountField); blink(imageCountField); + + $('#message-count-text').text(ngettext('message', 'messages', replyCount)); + $('#image-count-text').text(ngettext('image', 'images', imageCount)); } /** @@ -380,9 +384,6 @@ function replacePartial(oldNode, newNode // Replace children var children = oldNode.children(); if (children.length == 0) { - console.log(oldContent); - console.log(newContent) - oldNode.replaceWith(newNode); } else { var newChildren = newNode.children(); @@ -426,7 +427,7 @@ function updateNodeAttr(oldNode, newNode var newAttr = newNode.attr(attrName); if (oldAttr != newAttr) { oldNode.attr(attrName, newAttr); - }; + } } $(document).ready(function(){ diff --git a/boards/templates/boards/post.html b/boards/templates/boards/post.html --- a/boards/templates/boards/post.html +++ b/boards/templates/boards/post.html @@ -98,8 +98,8 @@ {% if is_opening %}