Make sure dbr and dbl have plural forms defined, add test.
This commit is contained in:
Родитель
295ccd0351
Коммит
aba4b7c860
Двоичные данные
locale/dbl/LC_MESSAGES/django.mo
Двоичные данные
locale/dbl/LC_MESSAGES/django.mo
Двоичный файл не отображается.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Generated-By: Babel 2.4.0\n"
|
||||
|
||||
msgid "No links are allowed."
|
||||
|
|
Двоичные данные
locale/dbl/LC_MESSAGES/djangojs.mo
Двоичные данные
locale/dbl/LC_MESSAGES/djangojs.mo
Двоичный файл не отображается.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Generated-By: Babel 2.4.0\n"
|
||||
|
||||
msgid "{0} star"
|
||||
|
|
Двоичные данные
locale/dbr/LC_MESSAGES/django.mo
Двоичные данные
locale/dbr/LC_MESSAGES/django.mo
Двоичный файл не отображается.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Generated-By: Babel 2.4.0\n"
|
||||
|
||||
msgid "No links are allowed."
|
||||
|
|
Двоичные данные
locale/dbr/LC_MESSAGES/djangojs.mo
Двоичные данные
locale/dbr/LC_MESSAGES/djangojs.mo
Двоичный файл не отображается.
|
@ -11,7 +11,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Generated-By: Babel 2.4.0\n"
|
||||
|
||||
msgid "{0} star"
|
||||
|
|
|
@ -89,6 +89,7 @@ AMO_LANGUAGES = (
|
|||
'zh-CN', 'zh-TW',
|
||||
)
|
||||
|
||||
# Make sure we run our tests with debug languages.
|
||||
AMO_LANGUAGES = AMO_LANGUAGES + DEBUG_LANGUAGES
|
||||
|
||||
LANGUAGES = lazy(lazy_langs, dict)(AMO_LANGUAGES)
|
||||
|
|
|
@ -10,6 +10,7 @@ from django.test.utils import override_settings
|
|||
|
||||
from lxml import etree
|
||||
import mock
|
||||
import pytest
|
||||
from mock import patch
|
||||
from pyquery import PyQuery as pq
|
||||
|
||||
|
@ -23,6 +24,13 @@ from olympia.amo.urlresolvers import reverse
|
|||
from olympia.users.models import UserProfile
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.parametrize('locale', list(settings.LANGUAGES))
|
||||
def test_locale_switcher(client, locale):
|
||||
response = client.get('/{}/firefox/'.format(locale))
|
||||
assert response.status_code == 200
|
||||
|
||||
|
||||
class Test403(TestCase):
|
||||
fixtures = ['base/users']
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ SHORTER_LANGUAGES = {
|
|||
# L10n dashboard. Generally languages start here and move into AMO_LANGUAGES.
|
||||
HIDDEN_LANGUAGES = ('cy', 'hr', 'sr', 'sr-Latn', 'tr')
|
||||
|
||||
DEBUG_LANGUAGES = ('dbr', 'dbg')
|
||||
DEBUG_LANGUAGES = ('dbr', 'dbl')
|
||||
|
||||
|
||||
def lazy_langs(languages):
|
||||
|
|
Загрузка…
Ссылка в новой задаче