Commits

Anonymous committed 1a107fd

Added "no users on ban list" message to the banlist page if the list is
empty.

Comments (0)

Files changed (6)

solace/i18n/de/LC_MESSAGES/messages.mo

Binary file modified.

solace/i18n/de/LC_MESSAGES/messages.po

 "Project-Id-Version: Solace 0.1\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
 "POT-Creation-Date: 2009-08-14 12:14+0200\n"
-"PO-Revision-Date: 2009-09-22 20:47+0200\n"
+"PO-Revision-Date: 2009-09-23 11:39+0200\n"
 "Last-Translator: Armin Ronacher <armin.ronacher@active-4.com>\n"
 "Language-Team: de <LL@li.org>\n"
 "Plural-Forms: nplurals=2; plural=(n != 1)\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.4\n"
 
-#: solace/application.py:307 solace/application.py:334
+#: solace/application.py:317 solace/application.py:344
 msgid "You have to login in order to visit this page."
 msgstr "Du musst dich anmelden um diese Seite zu sehen."
 
-#: solace/application.py:318
+#: solace/application.py:328
 msgid "You cannot access this resource."
 msgstr "Du kannst diese Seite nicht ansehen."
 
 "    “ban user” link or enter his username into the following field:"
 msgstr ""
 "Um einen Benutzer zu bannen besuche sein Profil und folge dem\n"
-"„Banne Benutzer“ Link oder gibt seinen Benutzernamen in das folgende Feld ein:"
+"„Banne Benutzer“ Link oder gibt seinen Benutzernamen in das folgende Feld"
+" ein:"
 
 #: solace/templates/admin/bans.html:16
 msgid "Ban user"
 msgstr "Banne Benutzer"
 
-#: solace/templates/admin/bans.html:20
+#: solace/templates/admin/bans.html:19
 msgid "Banned Users"
 msgstr "Gebannte Benutzer"
 
-#: solace/templates/admin/bans.html:25 solace/templates/users/profile.html:39
+#: solace/templates/admin/bans.html:24 solace/templates/users/profile.html:39
 msgid "lift the ban"
 msgstr "Bann aufheben"
 
+#: solace/templates/admin/bans.html:26
+msgid "No users are currently banned."
+msgstr "Momentan sind keine Benutzer auf der Bannliste."
+
 #: solace/templates/admin/layout.html:7 solace/templates/admin/status.html:3
 msgid "Status"
 msgstr "Status"
 
 #: solace/templates/core/bad_request.html:5
 msgid "Your client made a request the server could not understand."
-msgstr "Dein Browser hat ein Anfrage an den Server gestellt, die nicht verarbeitet werden konnte."
+msgstr ""
+"Dein Browser hat ein Anfrage an den Server gestellt, die nicht "
+"verarbeitet werden konnte."
 
 #: solace/templates/core/forbidden.html:2
 #: solace/templates/core/forbidden.html:4
 msgid "Delete"
 msgstr "Löschen"
 
-#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:141
+#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:142
 #, python-format
 msgid "Questions Tagged “%s”"
 msgstr "Fragen getaggt als „%s“"
 msgid "Add Reply"
 msgstr "Antwort hinzufügen"
 
-#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:116
+#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:117
 msgid "Unanswered Questions"
 msgstr "Unbeantwortete Fragen"
 
 
 #: solace/utils/forms.py:1102
 msgid "Form submitted multiple times or session expired.  Try again."
-msgstr "Formular mehrmalig abgesendet oder Sitzung abgelaufen.  Probiere es nochmal."
+msgstr ""
+"Formular mehrmalig abgesendet oder Sitzung abgelaufen.  Probiere es "
+"nochmal."
 
 #: solace/utils/forms.py:1111
 msgid "You entered an invalid captcha."
 "Die Sprache der Benutzeroberfläche wurde auf %s geändert.  Du wurdest "
 "gleichzeitig zur Hilfesektion dieser Sprache weitergeleitet."
 
-#: solace/views/kb.py:85 solace/views/kb.py:225
+#: solace/views/kb.py:86 solace/views/kb.py:226
 msgid "(deleted)"
 msgstr "(gelöscht)"
 
-#: solace/views/kb.py:104
+#: solace/views/kb.py:105
 msgid "Questions"
 msgstr "Sektionen"
 
-#: solace/views/kb.py:179
+#: solace/views/kb.py:180
 msgid "Your reply was posted."
 msgstr "Deine Antwort wurde abgsendet."
 
-#: solace/views/kb.py:223
+#: solace/views/kb.py:224
 #, python-format
 msgid "Answer by %s"
 msgstr "Antwort von %s"
 
-#: solace/views/kb.py:242
+#: solace/views/kb.py:243
 msgid "Your question was posted."
 msgstr "Die Frage wurde abgesendet."
 
-#: solace/views/kb.py:277
+#: solace/views/kb.py:278
 msgid "The post was edited."
 msgstr "Der Beitrag wurde bearbeitet."
 
-#: solace/views/kb.py:281
+#: solace/views/kb.py:282
 #, python-format
 msgid "%s (%s)"
 msgstr "%s (%s)"
 
-#: solace/views/kb.py:284
+#: solace/views/kb.py:285
 msgid "Current revision"
 msgstr "Aktuelle Revision"
 
-#: solace/views/kb.py:308
+#: solace/views/kb.py:309
 msgid "The post was deleted"
 msgstr "Der Beitrag wurde gelöscht."
 
-#: solace/views/kb.py:332
+#: solace/views/kb.py:333
 msgid "The post was restored"
 msgstr "Der Beitrag wurde wiederhergestellt."
 
-#: solace/views/kb.py:335
+#: solace/views/kb.py:336
 msgid "The revision was restored"
 msgstr "Die Revision wurde wiederhergestellt."
 
-#: solace/views/kb.py:393
+#: solace/views/kb.py:397
 msgid "You cannot vote on deleted posts."
 msgstr "Du kannst nicht für gelöschte Beiträge stimmen."
 
-#: solace/views/kb.py:406
+#: solace/views/kb.py:410
 msgid "You cannot upvote your own post."
 msgstr "Du kannst nicht für deinen eigenen Beitrag stimmen."
 
-#: solace/views/kb.py:414
+#: solace/views/kb.py:418
 #, python-format
 msgid "In order to upvote you need at least %d reputation"
 msgstr "Um upzuvoten musst du zumindest %d Ansehen haben"
 
-#: solace/views/kb.py:427
+#: solace/views/kb.py:431
 #, python-format
 msgid "In order to downvote you need at least %d reputation"
 msgstr "Um downzuvoten musst du mindestens %d Ansehen haben"
 
-#: solace/views/kb.py:463
+#: solace/views/kb.py:471
 msgid "You cannot accept deleted posts as answers"
 msgstr "Du kannst gelöschte Beiträge nicht als Antworten akzeptieren."
 
-#: solace/views/kb.py:475
+#: solace/views/kb.py:483
 msgid "You cannot unaccept this reply as an answer."
 msgstr "Du kannst diese Antwort nicht de-akzeptieren."
 
-#: solace/views/kb.py:488
+#: solace/views/kb.py:496
 msgid "You cannot accept this reply as answer."
 msgstr "Du kannst diese Antwort nicht akzeptieren."
 
-#: solace/views/kb.py:540
+#: solace/views/kb.py:548
 msgid "You cannot submit comments for deleted posts"
 msgstr "Du kannst nicht Kommentare zu gelöschten Posts abgeben."
 
 msgid "Your profile was updated"
 msgstr "Dein Profil wurde aktualisiert"
 
-#~ msgid "Invalid security token submitted."
-#~ msgstr "Ungültigere Sicherheits-Token übermittelt."
-

solace/i18n/messages.pot

 msgstr ""
 "Project-Id-Version: Plurk_Solace 0.1\n"
 "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2009-09-22 20:47+0200\n"
+"POT-Creation-Date: 2009-09-23 11:39+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.4\n"
 
-#: solace/application.py:307 solace/application.py:334
+#: solace/application.py:317 solace/application.py:344
 msgid "You have to login in order to visit this page."
 msgstr ""
 
-#: solace/application.py:318
+#: solace/application.py:328
 msgid "You cannot access this resource."
 msgstr ""
 
 msgid "Ban user"
 msgstr ""
 
-#: solace/templates/admin/bans.html:20
+#: solace/templates/admin/bans.html:19
 msgid "Banned Users"
 msgstr ""
 
-#: solace/templates/admin/bans.html:25 solace/templates/users/profile.html:39
+#: solace/templates/admin/bans.html:24 solace/templates/users/profile.html:39
 msgid "lift the ban"
 msgstr ""
 
+#: solace/templates/admin/bans.html:26
+msgid "No users are currently banned."
+msgstr ""
+
 #: solace/templates/admin/layout.html:7 solace/templates/admin/status.html:3
 msgid "Status"
 msgstr ""
 msgid "Delete"
 msgstr ""
 
-#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:141
+#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:142
 #, python-format
 msgid "Questions Tagged “%s”"
 msgstr ""
 msgid "Add Reply"
 msgstr ""
 
-#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:116
+#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:117
 msgid "Unanswered Questions"
 msgstr ""
 
 "help section of that language."
 msgstr ""
 
-#: solace/views/kb.py:85 solace/views/kb.py:225
+#: solace/views/kb.py:86 solace/views/kb.py:226
 msgid "(deleted)"
 msgstr ""
 
-#: solace/views/kb.py:104
+#: solace/views/kb.py:105
 msgid "Questions"
 msgstr ""
 
-#: solace/views/kb.py:179
+#: solace/views/kb.py:180
 msgid "Your reply was posted."
 msgstr ""
 
-#: solace/views/kb.py:223
+#: solace/views/kb.py:224
 #, python-format
 msgid "Answer by %s"
 msgstr ""
 
-#: solace/views/kb.py:242
+#: solace/views/kb.py:243
 msgid "Your question was posted."
 msgstr ""
 
-#: solace/views/kb.py:277
+#: solace/views/kb.py:278
 msgid "The post was edited."
 msgstr ""
 
-#: solace/views/kb.py:281
+#: solace/views/kb.py:282
 #, python-format
 msgid "%s (%s)"
 msgstr ""
 
-#: solace/views/kb.py:284
+#: solace/views/kb.py:285
 msgid "Current revision"
 msgstr ""
 
-#: solace/views/kb.py:308
+#: solace/views/kb.py:309
 msgid "The post was deleted"
 msgstr ""
 
-#: solace/views/kb.py:332
+#: solace/views/kb.py:333
 msgid "The post was restored"
 msgstr ""
 
-#: solace/views/kb.py:335
+#: solace/views/kb.py:336
 msgid "The revision was restored"
 msgstr ""
 
-#: solace/views/kb.py:393
+#: solace/views/kb.py:397
 msgid "You cannot vote on deleted posts."
 msgstr ""
 
-#: solace/views/kb.py:406
+#: solace/views/kb.py:410
 msgid "You cannot upvote your own post."
 msgstr ""
 
-#: solace/views/kb.py:414
+#: solace/views/kb.py:418
 #, python-format
 msgid "In order to upvote you need at least %d reputation"
 msgstr ""
 
-#: solace/views/kb.py:427
+#: solace/views/kb.py:431
 #, python-format
 msgid "In order to downvote you need at least %d reputation"
 msgstr ""
 
-#: solace/views/kb.py:463
+#: solace/views/kb.py:471
 msgid "You cannot accept deleted posts as answers"
 msgstr ""
 
-#: solace/views/kb.py:475
+#: solace/views/kb.py:483
 msgid "You cannot unaccept this reply as an answer."
 msgstr ""
 
-#: solace/views/kb.py:488
+#: solace/views/kb.py:496
 msgid "You cannot accept this reply as answer."
 msgstr ""
 
-#: solace/views/kb.py:540
+#: solace/views/kb.py:548
 msgid "You cannot submit comments for deleted posts"
 msgstr ""
 

solace/i18n/tr/LC_MESSAGES/messages.mo

Binary file modified.

solace/i18n/tr/LC_MESSAGES/messages.po

 "Project-Id-Version: Solace 0.1\n"
 "Report-Msgid-Bugs-To: muhuk@muhuk.com\n"
 "POT-Creation-Date: 2009-08-31 02:34+0200\n"
-"PO-Revision-Date: 2009-09-22 20:47+0200\n"
+"PO-Revision-Date: 2009-09-23 11:39+0200\n"
 "Last-Translator: Atamert Ölçgen <muhuk@muhuk.com>\n"
 "Language-Team: tr <LL@li.org>\n"
 "Plural-Forms: nplurals=1; plural=0\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Generated-By: Babel 0.9.4\n"
 
-#: solace/application.py:307 solace/application.py:334
+#: solace/application.py:317 solace/application.py:344
 msgid "You have to login in order to visit this page."
 msgstr "Bu sayfayı görebilmek için giriş yapmalısınız."
 
-#: solace/application.py:318
+#: solace/application.py:328
 #, fuzzy
 msgid "You cannot access this resource."
 msgstr "Bu yanıtı kabul edemezsiniz."
 msgid "Ban user"
 msgstr ""
 
-#: solace/templates/admin/bans.html:20
+#: solace/templates/admin/bans.html:19
 msgid "Banned Users"
 msgstr ""
 
-#: solace/templates/admin/bans.html:25 solace/templates/users/profile.html:39
+#: solace/templates/admin/bans.html:24 solace/templates/users/profile.html:39
 msgid "lift the ban"
 msgstr ""
 
+#: solace/templates/admin/bans.html:26
+#, fuzzy
+msgid "No users are currently banned."
+msgstr "Bu kullanıcı adı kullanımda."
+
 #: solace/templates/admin/layout.html:7 solace/templates/admin/status.html:3
 msgid "Status"
 msgstr ""
 msgid "Delete"
 msgstr "Sil"
 
-#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:141
+#: solace/templates/kb/by_tag.html:3 solace/views/kb.py:142
 #, python-format
 msgid "Questions Tagged “%s”"
 msgstr "“%s” Etiketli Sorular"
 msgid "Add Reply"
 msgstr "Yanıt Ekle"
 
-#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:116
+#: solace/templates/kb/unanswered.html:3 solace/views/kb.py:117
 msgid "Unanswered Questions"
 msgstr "Yanıtlanmamış Sorular"
 
 "Arabirim dili %s olarak ayarlanmıştı.  Ayrıca aynı dilin yardım bölümüne "
 "yönlendirildiniz."
 
-#: solace/views/kb.py:85 solace/views/kb.py:225
+#: solace/views/kb.py:86 solace/views/kb.py:226
 #, fuzzy
 msgid "(deleted)"
 msgstr "Sil"
 
-#: solace/views/kb.py:104
+#: solace/views/kb.py:105
 msgid "Questions"
 msgstr "Sorular"
 
-#: solace/views/kb.py:179
+#: solace/views/kb.py:180
 msgid "Your reply was posted."
 msgstr "Yanıtınız gönderildi."
 
-#: solace/views/kb.py:223
+#: solace/views/kb.py:224
 #, python-format
 msgid "Answer by %s"
 msgstr "%s tarafından yanıtlandı"
 
-#: solace/views/kb.py:242
+#: solace/views/kb.py:243
 msgid "Your question was posted."
 msgstr "Sorunuz gönderildi."
 
-#: solace/views/kb.py:277
+#: solace/views/kb.py:278
 msgid "The post was edited."
 msgstr "Düzenlemeleriniz kaydedildi."
 
-#: solace/views/kb.py:281
+#: solace/views/kb.py:282
 #, python-format
 msgid "%s (%s)"
 msgstr "%s (%s)"
 
-#: solace/views/kb.py:284
+#: solace/views/kb.py:285
 msgid "Current revision"
 msgstr "Şimdiki hali"
 
-#: solace/views/kb.py:308
+#: solace/views/kb.py:309
 msgid "The post was deleted"
 msgstr "Girdi silindi"
 
-#: solace/views/kb.py:332
+#: solace/views/kb.py:333
 msgid "The post was restored"
 msgstr "Girdi geri alındı"
 
-#: solace/views/kb.py:335
+#: solace/views/kb.py:336
 msgid "The revision was restored"
 msgstr "Düzenlemeye geri dönüldü"
 
-#: solace/views/kb.py:393
+#: solace/views/kb.py:397
 msgid "You cannot vote on deleted posts."
 msgstr "Silinmiş girdileri oylayamazsınız."
 
-#: solace/views/kb.py:406
+#: solace/views/kb.py:410
 msgid "You cannot upvote your own post."
 msgstr "Kendi girdinize puan veremezsiniz."
 
-#: solace/views/kb.py:414
+#: solace/views/kb.py:418
 #, python-format
 msgid "In order to upvote you need at least %d reputation"
 msgstr "Puan vermek için en az %d saygınlığa ihtiyacınız var"
 
-#: solace/views/kb.py:427
+#: solace/views/kb.py:431
 #, python-format
 msgid "In order to downvote you need at least %d reputation"
 msgstr "Puan kırmak için en az %d saygınlığa ihtiyacınız var"
 
-#: solace/views/kb.py:463
+#: solace/views/kb.py:471
 msgid "You cannot accept deleted posts as answers"
 msgstr "Silinmiş yanıtları kabul edemezsiniz"
 
-#: solace/views/kb.py:475
+#: solace/views/kb.py:483
 msgid "You cannot unaccept this reply as an answer."
 msgstr "Bu yanıtın kabulünü geri alamazsınız."
 
-#: solace/views/kb.py:488
+#: solace/views/kb.py:496
 msgid "You cannot accept this reply as answer."
 msgstr "Bu yanıtı kabul edemezsiniz."
 
-#: solace/views/kb.py:540
+#: solace/views/kb.py:548
 msgid "You cannot submit comments for deleted posts"
 msgstr "Silinmiş girdilere yorum ekleyemezsiniz"
 
 msgid "Your profile was updated"
 msgstr "Profiliniz güncellendi"
 
-#~ msgid "Invalid security token submitted."
-#~ msgstr "Geçersiz güvenlik kodu gönderildi."
-

solace/templates/admin/bans.html

       <input type="submit" value="{{ _('Ban user') }}">
     </div>
   {% endcall %}
-  {% if banned_users %}
   <h3>{{ _('Banned Users') }}</h3>
   <ul class="userlist">
   {%- for user in banned_users %}
     <li>{{ render_user(user, avatar_size=26) }}
       <span class="action">[<a href="{{ url_for('admin.unban', user=user.username)
         }}">{{ _('lift the ban') }}</a>]</span>
+  {%- else %}
+    <li>{{ _('No users are currently banned.') }}
   {%- endfor %}
   </ul>
-  {% endif %}
   {{ pagination }}
 {% endblock %}