Skip to content

Commit

Permalink
Added disqus, Fixed tehpug#10
Browse files Browse the repository at this point in the history
  • Loading branch information
k1-hedayati committed May 27, 2014
1 parent 3757213 commit 14c2937
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 39 deletions.
Binary file modified wsgi/conf/locale/fa/LC_MESSAGES/django.mo
Binary file not shown.
82 changes: 43 additions & 39 deletions wsgi/conf/locale/fa/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-02 16:04+0430\n"
"POT-Creation-Date: 2014-05-27 09:34+0430\n"
"PO-Revision-Date: 2013-12-09 23:05+0430\n"
"Last-Translator: Behnam Ahmad Khan Beigi <b3hnam@gnu.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -17,8 +17,8 @@ msgstr ""
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Virtaal 0.7.1\n"

#: books/models.py:37 faq/models.py:36 members/models.py:127 news/models.py:37
#: page/models.py:46 page/models.py:91 projects/models.py:42
#: books/models.py:37 faq/models.py:36 members/models.py:127 news/models.py:35
#: page/models.py:44 page/models.py:86 projects/models.py:42
msgid "Language"
msgstr "زبان"

Expand All @@ -30,7 +30,7 @@ msgstr "زبان وب‌گاه (هم اکنون en-us)"
msgid "Book Name"
msgstr "اسم کتاب"

#: books/models.py:42 page/models.py:37 projects/models.py:51
#: books/models.py:42 page/models.py:35 projects/models.py:51
msgid "Slug"
msgstr "نشانی مشخص"

Expand Down Expand Up @@ -129,7 +129,7 @@ msgid "Home page"
msgstr "صفحهٔ خانگی"

#: faq/models.py:31 mediacenter/models.py:32 members/models.py:30
#: news/models.py:33 page/models.py:33 page/models.py:83
#: news/models.py:31 page/models.py:31 page/models.py:78
msgid "User"
msgstr "کاربر"

Expand All @@ -141,8 +141,8 @@ msgstr "سؤال"
msgid "Answer"
msgstr "جواب"

#: faq/models.py:41 mediacenter/models.py:34 news/models.py:42
#: page/models.py:51 page/models.py:96
#: faq/models.py:41 mediacenter/models.py:34 news/models.py:40
#: page/models.py:49 page/models.py:91
msgid "Date and Time"
msgstr "تاریخ و زمان"

Expand All @@ -151,11 +151,11 @@ msgstr "تاریخ و زمان"
msgid "FAQ"
msgstr "سؤال‌های متداول"

#: karajlug_org/settings.py:88 templates/base.html:61
#: karajlug_org/settings.py:87 templates/base.html:61
msgid "Persian"
msgstr "فارسی"

#: karajlug_org/settings.py:89 templates/base.html:59
#: karajlug_org/settings.py:88 templates/base.html:59
msgid "English"
msgstr "انگلیسی"

Expand Down Expand Up @@ -237,23 +237,23 @@ msgstr "جزئیات اعضا"
msgid "Bio"
msgstr "شرح حال"

#: news/models.py:35 page/models.py:35 page/models.py:86
#: news/models.py:33 page/models.py:33 page/models.py:81
msgid "Title"
msgstr "عنوان"

#: news/models.py:36 page/models.py:40 page/models.py:89
#: news/models.py:34 page/models.py:38 page/models.py:84
msgid "News content"
msgstr "محتوا اخبار"

#: news/models.py:71 news/models.py:72
#: news/models.py:67 news/models.py:68
msgid "News"
msgstr "اخبار"

#: news/templates/news_list.html:14
msgid "previous"
msgstr "قبلی"

#: news/templates/news_list.html:18 page/models.py:78
#: news/templates/news_list.html:18 page/models.py:73
msgid "Page"
msgstr "صفحه"

Expand All @@ -269,37 +269,37 @@ msgstr "بعدی"
msgid " TehPUG "
msgstr " پاگ تهران "

#: news/templates/news_view.html:19 templates/index.html:132
#: news/templates/news_view.html:19 templates/index.html:134
#: templates/page.html:12
msgid "On"
msgstr "در"

#: news/templates/news_view.html:19 templates/index.html:132
#: news/templates/news_view.html:19 templates/index.html:134
#: templates/page.html:12
msgid "by"
msgstr "توسط"

#: page/models.py:42
#: page/models.py:40
msgid "Publish"
msgstr "انتشار"

#: page/models.py:44
#: page/models.py:42
msgid "Appear in navigation?"
msgstr "در جستجو ظاهر شود؟"

#: page/models.py:53
#: page/models.py:51
msgid "Weight"
msgstr "وزن"

#: page/models.py:77 page/templates/nav.html:2
#: page/models.py:72 page/templates/nav.html:2
msgid "Pages"
msgstr "صفحه‌ها"

#: page/models.py:104
#: page/models.py:97
msgid "First Pages"
msgstr "صفحات اول"

#: page/models.py:105
#: page/models.py:98
msgid "First Page"
msgstr "صفحهٔ اول"

Expand Down Expand Up @@ -341,7 +341,7 @@ msgstr "پروژه"
msgid "Projects"
msgstr "پروژه‌ها"

#: projects/models.py:131 templates/index.html:53
#: projects/models.py:131 templates/index.html:55
msgid "Address"
msgstr "نشانی"

Expand Down Expand Up @@ -482,11 +482,11 @@ msgstr "مجله لینوکس‌مگ"
msgid "TehPUG in"
msgstr "پاگ تهران در"

#: templates/base.html:122
#: templates/base.html:125
msgid "Sponsors"
msgstr "حامیان"

#: templates/base.html:129
#: templates/base.html:132
msgid "Copyright 2013-2014 TehPUG Community"
msgstr "کپی‌رایت ۲۰۱۳−۲۰۱۴ اجتماع پاگ تهران"

Expand All @@ -510,66 +510,70 @@ msgstr "کانال"
msgid "Mailing List"
msgstr "میلینگ لیست"

#: templates/index.html:24
#: templates/index.html:26
msgid "Tehran Python User Group"
msgstr "گروه کاربران پایتون تهران"

#: templates/index.html:56
#: templates/index.html:58
msgid "Sessions"
msgstr "جلسات"

#: templates/index.html:59
#: templates/index.html:61
msgid ""
"Tehran, Africa St, Nor St (Africa to the north after the Zafar, before the "
"gas station), No 18, Tosan Co. Training Hall"
msgstr ""
"تهران، خیابان آفریقا، کوچه نور (آفریقا به سمت شمال بعد از ظفر، قبل از پمپ "
"بنزین)، پلاک ۱۸، سالن آموزش شرکت توسن"

#: templates/index.html:63 templates/index.html.py:92
#: templates/index.html:65 templates/index.html.py:94
msgid "More Information"
msgstr "اطلاعات بیشتر"

#: templates/index.html:66
#: templates/index.html:68
msgid "Keyvan Hedayati"
msgstr "کیوان هدایتی"

#: templates/index.html:66
#: templates/index.html:68
msgid "+98-936-8347120"
msgstr "۰۹۳۶۸۳۴۷۱۲۰"

#: templates/index.html:70 templates/index.html.py:75 templates/index.html:99
#: templates/index.html.py:104
#: templates/index.html:72 templates/index.html.py:77 templates/index.html:101
#: templates/index.html.py:106
msgid "View"
msgstr "دیدن"

#: templates/index.html:70 templates/index.html.py:77
#: templates/index.html:72 templates/index.html.py:79
msgid "Tosan Co."
msgstr "شرکت توسن"

#: templates/index.html:70 templates/index.html.py:79 templates/index.html:99
#: templates/index.html.py:108
#: templates/index.html:72 templates/index.html.py:81 templates/index.html:101
#: templates/index.html.py:110
msgid "in a larger map"
msgstr "در یک نقشهٔ بزرگ"

#: templates/index.html:86
#: templates/index.html:88
msgid "Workshops"
msgstr "کارگاه‌ها"

#: templates/index.html:88
#: templates/index.html:90
msgid "Tehran, Saadat Abad, Southern Allameh st, Eastern 36th, No 22, Kava Co."
msgstr ""
"تهران، سعادت آباد، علامه جنوبی، کوچه سی و ششم شرقی، پلاک ۲۲، شرکت کاوا "
"ارتباطات هوشمند"

#: templates/index.html:95
#: templates/index.html:97
msgid "Nima Norozi"
msgstr "نیما نوروزی"

#: templates/index.html:99 templates/index.html.py:106
#: templates/index.html:101 templates/index.html.py:108
msgid "Kava Co."
msgstr "شرکت کاوا ارتباطات هوشمند"

#: templates/index.html:135
msgid "Comments"
msgstr "نظر"

#: templates/social_links.html:4
msgid "Share it"
msgstr "به اشتراک بگذارید"
Expand Down
15 changes: 15 additions & 0 deletions wsgi/news/templates/news_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,19 @@ <h1>{{ news.title }}</h1>
</section>
<span>{% trans "On" %} {{ news.date|format_date:news.lang }} {% trans "by" %} {{ news.user }}</span>
</article>

<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'tehpug';

(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>


{% endblock %}
12 changes: 12 additions & 0 deletions wsgi/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ <h3>{% trans 'Sponsors' %} :</h3>
ga('send', 'pageview');

</script>

<script type="text/javascript">
var disqus_shortname = 'tehpug';

(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

{% block pagejs %}
{% endblock pagejs %}
</body>
Expand Down
2 changes: 2 additions & 0 deletions wsgi/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ <h2>
{% endautoescape %}
</section>
<span>
<a href="{{ news.get_absolute_url }}#disqus_thread"></a>
<a href="{{ news.get_absolute_url }}"><i class="fa fa-comments"></i></a>
{% trans "On" %} {{ news.date|format_date:news.lang }} {% trans "by" %} {{ news.user }}
</span>
</article>
Expand Down

0 comments on commit 14c2937

Please sign in to comment.