msgstr ""
"Project-Id-Version: Syrup Reserves 0.1\n"
"Report-Msgid-Bugs-To: Graham Fawcett <graham.fawcett@gmail.com>\n"
-"POT-Creation-Date: 2011-03-28 20:26-0400\n"
+"POT-Creation-Date: 2011-03-28 21:49-0400\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"
msgid "Term"
msgstr ""
-#: templates/open_sites.xhtml:19 templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/open_sites.xhtml:19 templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_delete_confirm.xhtml:28
#: templates/item/item_metadata.xhtml:46
msgid "Title"
msgid "Search Results"
msgstr ""
-#: templates/search_results.xhtml:26
+#: templates/search_results.xhtml:27
#, python-format
-msgid "You searched for: [1:%(query)s.] Found %(num)s matches."
+msgid "You searched for: [1:%(query)s.]"
msgstr ""
-#: templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/search_results.xhtml:28
+#, python-format
+msgid "Found %(num)s match."
+msgid_plural "Found %(num)s matches."
+msgstr[0] ""
+msgstr[1] ""
+
+#: templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
msgid "Author"
msgstr ""
-#: templates/search_results.xhtml:31
+#: templates/search_results.xhtml:35
msgid "Site"
msgstr ""
-#: templates/search_results.xhtml:54
+#: templates/search_results.xhtml:58
msgid "Your searches may return more results if you [1:log in] before searching."
msgstr ""
msgstr ""
#: templates/item/common_metadata.xhtml:21
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_metadata.xhtml:50
msgid "Publisher"
msgstr ""
#: templates/item/item_add_cat_search.xhtml:49
#, python-format
-msgid "%(first)s–%(last)s of %(total)s results."
-msgstr ""
+msgid "%(first)s result."
+msgid_plural "%(first)s–%(last)s of %(total)s results."
+msgstr[0] ""
+msgstr[1] ""
-#: templates/item/item_add_cat_search.xhtml:51
+#: templates/item/item_add_cat_search.xhtml:54
#, python-format
msgid "Previous %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:55
+#: templates/item/item_add_cat_search.xhtml:58
#, python-format
msgid "Next %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
msgid "PubDate"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:70
+#: templates/item/item_add_cat_search.xhtml:73
msgid "details"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:71
+#: templates/item/item_add_cat_search.xhtml:74
msgid "Electronic resource."
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:72
+#: templates/item/item_add_cat_search.xhtml:75
msgid "view"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:82
+#: templates/item/item_add_cat_search.xhtml:85
msgid "Pick this item"
msgstr ""
msgid "Click here to download the document."
msgstr ""
+#. Bytes will always be plural!
#: templates/item/item_metadata.xhtml:113
#, python-format
msgid "Document type: %(type)s. Size: %(bytes)s bytes."
"Project-Id-Version: Syrup Reserves 0.1\n"
"Report-Msgid-Bugs-To: Graham Fawcett <graham.fawcett@gmail.com>\n"
"POT-Creation-Date: 2011-03-28 20:22+0400\n"
-"PO-Revision-Date: 2011-03-28 20:26-0400\n"
+"PO-Revision-Date: 2011-03-28 21:49-0400\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: en_CA <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "Term"
msgstr ""
-#: templates/open_sites.xhtml:19 templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/open_sites.xhtml:19 templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_delete_confirm.xhtml:28
#: templates/item/item_metadata.xhtml:46
msgid "Title"
msgid "Search Results"
msgstr ""
-#: templates/search_results.xhtml:26
+#: templates/search_results.xhtml:27
#, python-format
-msgid "You searched for: [1:%(query)s.] Found %(num)s matches."
+msgid "You searched for: [1:%(query)s.]"
msgstr ""
-#: templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/search_results.xhtml:28
+#, fuzzy, python-format
+msgid "Found %(num)s match."
+msgid_plural "Found %(num)s matches."
+msgstr[0] ""
+msgstr[1] ""
+
+#: templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
msgid "Author"
msgstr ""
-#: templates/search_results.xhtml:31
+#: templates/search_results.xhtml:35
msgid "Site"
msgstr ""
-#: templates/search_results.xhtml:54
+#: templates/search_results.xhtml:58
msgid "Your searches may return more results if you [1:log in] before searching."
msgstr ""
msgstr ""
#: templates/item/common_metadata.xhtml:21
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_metadata.xhtml:50
msgid "Publisher"
msgstr ""
msgstr ""
#: templates/item/item_add_cat_search.xhtml:49
-#, python-format
-msgid "%(first)s–%(last)s of %(total)s results."
-msgstr ""
+#, fuzzy, python-format
+msgid "%(first)s result."
+msgid_plural "%(first)s–%(last)s of %(total)s results."
+msgstr[0] ""
+msgstr[1] ""
-#: templates/item/item_add_cat_search.xhtml:51
+#: templates/item/item_add_cat_search.xhtml:54
#, python-format
msgid "Previous %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:55
+#: templates/item/item_add_cat_search.xhtml:58
#, python-format
msgid "Next %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
msgid "PubDate"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:70
+#: templates/item/item_add_cat_search.xhtml:73
msgid "details"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:71
+#: templates/item/item_add_cat_search.xhtml:74
msgid "Electronic resource."
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:72
+#: templates/item/item_add_cat_search.xhtml:75
msgid "view"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:82
+#: templates/item/item_add_cat_search.xhtml:85
msgid "Pick this item"
msgstr ""
msgid "Click here to download the document."
msgstr ""
+#. Bytes will always be plural!
#: templates/item/item_metadata.xhtml:113
#, python-format
msgid "Document type: %(type)s. Size: %(bytes)s bytes."
"Project-Id-Version: Syrup Reserves 0.1\n"
"Report-Msgid-Bugs-To: Graham Fawcett <graham.fawcett@gmail.com>\n"
"POT-Creation-Date: 2011-03-28 20:22+0400\n"
-"PO-Revision-Date: 2011-03-28 20:26-0400\n"
+"PO-Revision-Date: 2011-03-28 21:49-0400\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: eo <LL@li.org>\n"
"MIME-Version: 1.0\n"
msgid "Term"
msgstr "TErm"
-#: templates/open_sites.xhtml:19 templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/open_sites.xhtml:19 templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_delete_confirm.xhtml:28
#: templates/item/item_metadata.xhtml:46
msgid "Title"
msgid "Search Results"
msgstr "SEArch REsUlts"
-#: templates/search_results.xhtml:26
+#: templates/search_results.xhtml:27
#, python-format
-msgid "You searched for: [1:%(query)s.] Found %(num)s matches."
-msgstr "YOU sEArchEd fOr: [1:%(query)s.] FOUnd %(num)s mAtchEs."
+msgid "You searched for: [1:%(query)s.]"
+msgstr "YOU sEArchEd fOr: [1:%(query)s.]"
-#: templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/search_results.xhtml:28
+#, python-format
+msgid "Found %(num)s match."
+msgid_plural "Found %(num)s matches."
+msgstr[0] "FOUnd %(num)s mAtch."
+msgstr[1] "FOUnd %(num)s mAtchEs."
+
+#: templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
msgid "Author"
msgstr "aUthOr"
-#: templates/search_results.xhtml:31
+#: templates/search_results.xhtml:35
msgid "Site"
msgstr "SItE"
-#: templates/search_results.xhtml:54
+#: templates/search_results.xhtml:58
msgid ""
"Your searches may return more results if you [1:log in] before searching."
msgstr ""
msgstr "aUthOr #%(num)s"
#: templates/item/common_metadata.xhtml:21
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_metadata.xhtml:50
msgid "Publisher"
msgstr "PUblIshEr"
#: templates/item/item_add_cat_search.xhtml:49
#, python-format
-msgid "%(first)s–%(last)s of %(total)s results."
-msgstr "%(first)s–%(last)s Of %(total)s rEsUlts."
+msgid "%(first)s result."
+msgid_plural "%(first)s–%(last)s of %(total)s results."
+msgstr[0] "%(first)s rEsUlt."
+msgstr[1] "%(first)s–%(last)s Of %(total)s rEsUlts."
-#: templates/item/item_add_cat_search.xhtml:51
+#: templates/item/item_add_cat_search.xhtml:54
#, python-format
msgid "Previous %(count)s"
msgstr "PrEvIOUs %(count)s"
-#: templates/item/item_add_cat_search.xhtml:55
+#: templates/item/item_add_cat_search.xhtml:58
#, python-format
msgid "Next %(count)s"
msgstr "NExt %(count)s"
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
msgid "PubDate"
msgstr "PUbDAtE"
-#: templates/item/item_add_cat_search.xhtml:70
+#: templates/item/item_add_cat_search.xhtml:73
msgid "details"
msgstr "dEtAIls"
-#: templates/item/item_add_cat_search.xhtml:71
+#: templates/item/item_add_cat_search.xhtml:74
msgid "Electronic resource."
msgstr "elEctrOnIc rEsOUrcE."
-#: templates/item/item_add_cat_search.xhtml:72
+#: templates/item/item_add_cat_search.xhtml:75
msgid "view"
msgstr "vIEw"
-#: templates/item/item_add_cat_search.xhtml:82
+#: templates/item/item_add_cat_search.xhtml:85
msgid "Pick this item"
msgstr "PIck thIs ItEm"
msgid "Click here to download the document."
msgstr "ClIck hErE tO dOwnlOAd thE dOcUmEnt."
+#. Bytes will always be plural!
#: templates/item/item_metadata.xhtml:113
#, python-format
msgid "Document type: %(type)s. Size: %(bytes)s bytes."
"Project-Id-Version: Syrup Reserves 0.1\n"
"Report-Msgid-Bugs-To: Graham Fawcett <graham.fawcett@gmail.com>\n"
"POT-Creation-Date: 2011-03-28 20:22+0400\n"
-"PO-Revision-Date: 2011-03-28 20:26-0400\n"
+"PO-Revision-Date: 2011-03-28 21:49-0400\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: fr_CA <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
msgid "Term"
msgstr ""
-#: templates/open_sites.xhtml:19 templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/open_sites.xhtml:19 templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_delete_confirm.xhtml:28
#: templates/item/item_metadata.xhtml:46
msgid "Title"
msgid "Search Results"
msgstr ""
-#: templates/search_results.xhtml:26
+#: templates/search_results.xhtml:27
#, python-format
-msgid "You searched for: [1:%(query)s.] Found %(num)s matches."
+msgid "You searched for: [1:%(query)s.]"
msgstr ""
-#: templates/search_results.xhtml:31
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/search_results.xhtml:28
+#, fuzzy, python-format
+msgid "Found %(num)s match."
+msgid_plural "Found %(num)s matches."
+msgstr[0] ""
+msgstr[1] ""
+
+#: templates/search_results.xhtml:35
+#: templates/item/item_add_cat_search.xhtml:65
msgid "Author"
msgstr ""
-#: templates/search_results.xhtml:31
+#: templates/search_results.xhtml:35
msgid "Site"
msgstr ""
-#: templates/search_results.xhtml:54
+#: templates/search_results.xhtml:58
msgid "Your searches may return more results if you [1:log in] before searching."
msgstr ""
msgstr ""
#: templates/item/common_metadata.xhtml:21
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
#: templates/item/item_metadata.xhtml:50
msgid "Publisher"
msgstr ""
msgstr ""
#: templates/item/item_add_cat_search.xhtml:49
-#, python-format
-msgid "%(first)s–%(last)s of %(total)s results."
-msgstr ""
+#, fuzzy, python-format
+msgid "%(first)s result."
+msgid_plural "%(first)s–%(last)s of %(total)s results."
+msgstr[0] ""
+msgstr[1] ""
-#: templates/item/item_add_cat_search.xhtml:51
+#: templates/item/item_add_cat_search.xhtml:54
#, python-format
msgid "Previous %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:55
+#: templates/item/item_add_cat_search.xhtml:58
#, python-format
msgid "Next %(count)s"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:62
+#: templates/item/item_add_cat_search.xhtml:65
msgid "PubDate"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:70
+#: templates/item/item_add_cat_search.xhtml:73
msgid "details"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:71
+#: templates/item/item_add_cat_search.xhtml:74
msgid "Electronic resource."
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:72
+#: templates/item/item_add_cat_search.xhtml:75
msgid "view"
msgstr ""
-#: templates/item/item_add_cat_search.xhtml:82
+#: templates/item/item_add_cat_search.xhtml:85
msgid "Pick this item"
msgstr ""
msgid "Click here to download the document."
msgstr ""
+#. Bytes will always be plural!
#: templates/item/item_metadata.xhtml:113
#, python-format
msgid "Document type: %(type)s. Size: %(bytes)s bytes."
import genshi.output
from django.conf import settings
from warnings import warn
-from django.utils.translation import ugettext
+import django.utils.translation
try:
from threading import local
#---------------------------------------------------------------------------
# Templating support
-translator = Translator(ugettext)
+translator = Translator(django.utils.translation)
class TemplateSet(object):
from conifer.syrup import models
from django.conf import settings
from django.utils.translation import ugettext as _
+from django.utils.translation import ngettext
</form>
<div py:def="page_control" py:if="results">
<p>
- <span i18n:msg="first,last,total">${start}–${min(numhits, start+limit-1)} of ${numhits} results.</span>
+ <span i18n:choose="numhits; first,last,total">
+ <i18n:singular>${numhits} result.</i18n:singular>
+ <i18n:plural>${start}–${min(numhits, start+limit-1)} of ${numhits} results.</i18n:plural>
+ </span>
<span py:if="start-limit>0">
- <a href=".?query=${query}&start=${start-limit}&limit=${limit}" i18n:msg="count">Previous ${limit}</a>
•
+ <a href=".?query=${query}&start=${start-limit}&limit=${limit}" i18n:msg="count">Previous ${limit}</a>
</span>
<span py:if="start+limit<numhits">
+ •
<a href=".?query=${query}&start=${start+limit}&limit=${limit}" i18n:msg="count">Next ${limit}</a>
</span>
</p>
</div>
<div id="downloadpanel">
<p><a class="bigdownload" href="${item.item_download_url()}"><button onclick="location='${item.item_download_url()}';">Click here to download the document.</button></a></p>
- <p i18n:msg="type,bytes">Document type: ${item.fileobj_mimetype}. Size: ${item.fileobj.size} bytes.</p>
+ <p i18n:msg="type,bytes" i18n:comment="Bytes will always be plural!">Document type: ${item.fileobj_mimetype}. Size: ${item.fileobj.size} bytes.</p>
</div>
</div>
alt="lock" title="This resource is access-controlled."/>
- <h2 py:if="query_string" i18n:msg="query, num">
- You searched for: <i>${query_string}.</i> Found ${len(results)} matches.
+ <h2 py:if="query_string">
+ <span i18n:msg="query">You searched for: <i>${query_string}.</i></span>
+ <span i18n:choose="len(results); num">
+ <i18n:singular>Found ${len(results)} match.</i18n:singular>
+ <i18n:plural>Found ${len(results)} matches.</i18n:plural>
+ </span>
</h2>
<tr py:if="results" py:def="pageheader()">