Skip to content

Commit

Permalink
Adding Norwegian Locale by @fanzypantz
Browse files Browse the repository at this point in the history
  • Loading branch information
jieter committed Jul 22, 2016
1 parent 30845d2 commit de4fe6d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
Binary file added django_tables2/locale/nb/LC_MESSAGES/django.mo
Binary file not shown.
47 changes: 47 additions & 0 deletions django_tables2/locale/nb/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This file is distributed under the same license as the django-tables2 package
#
msgid ""
msgstr ""
"Project-Id-Version: django-tables2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-22 11:11+0200\n"
"PO-Revision-Date: 2016-07-22 11:11+0200\n"
"Last-Translator: Andreas Tollånes"
"Language-Team: Norwegian Bokmal <nb@li.org>\n"
"Language: nb\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: templates/django_tables2/bootstrap.html:35
msgid "no results"
msgstr "ingen resultater"

#: templates/django_tables2/bootstrap.html:55
#, fuzzy
#| msgid "Previous"
msgid "previous"
msgstr "Forrige"

#: templates/django_tables2/bootstrap.html:59
#: templates/django_tables2/table.html:64
#, python-format
msgid "Page %(current)s of %(total)s"
msgstr "Side %(current)s av %(total)s"

#: templates/django_tables2/bootstrap.html:64
msgid "next"
msgstr "neste"

#: templates/django_tables2/table.html:56
msgid "Previous"
msgstr "Forrige"

#: templates/django_tables2/table.html:72
msgid "Next"
msgstr "Neste"

#: templates/django_tables2/table.html:78
#, python-format
msgid "%(count)s of %(total)s"
msgstr "%(count)s av %(total)s"
5 changes: 4 additions & 1 deletion tests/test_templates.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# coding: utf-8
from __future__ import unicode_literals

import pytest
from django.template import Context, Template
from django.test import TransactionTestCase
from django.utils.translation import override as translation_override
from django.utils.translation import ugettext_lazy

import django_tables2 as tables
import pytest
from django_tables2.config import RequestConfig

from .app.models import Person
Expand Down Expand Up @@ -254,6 +254,9 @@ class Meta:
with translation_override('it'):
assert 'Pagina 1 di 4' in table.as_html(request)

with translation_override('nb'):
assert 'Side 1 av 4' in table.as_html(request)


class BootstrapTable(CountryTable):
class Meta:
Expand Down

0 comments on commit de4fe6d

Please # to comment.