Anonymous avatar 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.

Comments (0)

Files changed (3)

Add a comment to this file

cmsplugin_poll/locale/nb/LC_MESSAGES/django.mo

Binary file modified.

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"

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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.