Commits

Anonymous committed 2568df5

Translate the 'vote' text also. There is no need to plurilize it because it
should always use the plurilized version unless when only one vote has been
given.

  • Participants
  • Parent commits d6786f2

Comments (0)

Files changed (3)

File cmsplugin_poll/locale/nb/LC_MESSAGES/django.mo

Binary file modified.

File cmsplugin_poll/locale/nb/LC_MESSAGES/django.po

 # This file is distributed under the same license as the cmsplugin_poll package.
 # Bertrand Bordage <bordage.bertrand@gmail.com>, 2012.
 #
-#, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: cmsplugin_poll 0.2\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2012-07-16 22:58+0200\n"
-"PO-Revision-Date: 2012-07-15 00:59+0200\n"
+"PO-Revision-Date: 2012-11-15 11:14+0100\n"
 "Last-Translator: Erlend Dalen <erlend.dalen@gmail.com>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"Language-Team: \n"
+"X-Generator: Poedit 1.5.4\n"
 
 #: admin.py:9
 msgid "Close selected polls"
 msgid "date closed"
 msgstr "avsluttet dato"
 
-#: models.py:12
-#: templates/cmsplugin_poll/detail.html:40
+#: models.py:12 templates/cmsplugin_poll/detail.html:40
 msgid "Poll"
 msgstr "Spørreundersøkelse"
 
 #: templates/cmsplugin_poll/results.html:3
 msgid "Poll results"
 msgstr "Resultat av spørreundersøkelse"
+
+#: templates/cmsplugin_poll/results.html:23
+msgid "vote"
+msgstr "stemme"

File cmsplugin_poll/templates/cmsplugin_poll/results.html

 <h4>{% trans "Poll results" %}</h4>
 
 {% if messages %}
-  <div class="messages">
+<div class="messages">
     {% for message in messages %}
-      <span{% if message.tags %} class="{{ message.tags }}"{% endif %}>
-        {{ message }}.
-      </span>
+    <span{% if message.tags %} class="{{ message.tags }}"{% endif %}>
+    {{ message }}.
+    </span>
     {% endfor %}
-  </div>
+</div>
 {% endif %}
 
 <h3>{{ poll.question }}</h3>
 <ul>
-  {% for choice in poll.choice_set.iterator %}
+    {% for choice in poll.choice_set.iterator %}
     <li>
-      {{ choice.choice }}
-      ({{ choice.votes }} vote{{ choice.votes|pluralize }},
-      {% get_choice_rate poll choice %})
+        {{ choice.choice }}
+
+        ({{ choice.votes }}
+        {% ifequal choice.votes 1 %}
+        {% trans "vote" %},
+        {% else %}
+        {% trans "votes" %},
+        {%  endifequal %}
+        {% get_choice_rate poll choice %})
     </li>
     <div name="choice" id="{{ choice.votes }}"></div>
-  {% endfor %}
+    {% endfor %}
 </ul>