From 1ce1412eb2b3c87961720f1815011cfaee68fc57 Mon Sep 17 00:00:00 2001 From: gilsondev Date: Wed, 4 Nov 2015 10:27:41 -0200 Subject: [PATCH] Update AUTHORS, HISTORY and README, and create locale --- AUTHORS.rst | 2 +- HISTORY.rst | 9 +- README.rst | 3 + rest_localflavor/__init__.py | 2 +- .../locale/ca/LC_MESSAGES/django.po | 129 ++++++++++++++++++ .../locale/en/LC_MESSAGES/django.po | 70 +++++++++- .../locale/pt_BR/LC_MESSAGES/django.po | 72 +++++++++- 7 files changed, 282 insertions(+), 5 deletions(-) create mode 100644 rest_localflavor/locale/ca/LC_MESSAGES/django.po diff --git a/AUTHORS.rst b/AUTHORS.rst index c033325..e6e01e8 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -10,4 +10,4 @@ Development Lead Contributors ------------ -None yet. Why not be the first? +Mattias Lindvall diff --git a/HISTORY.rst b/HISTORY.rst index e470537..6c92240 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,11 +3,18 @@ History ------- +1.2 (2015-11-03) +++++++++++++++++ + +* Create serializer helpers to Canada (Thanks Mattias Lindvall <@thnee>). + 1.1 (2015-10-28) +++++++++++++++++ -* Generate a *.po files to Portuguese Language. +* Generate a `*.po` files to Portuguese Language. 1.0 (2015-10-27) ++++++++++++++++++ * First release on PyPI. +* Create serializer helpers to Brazil. diff --git a/README.rst b/README.rst index 8dc6799..24e883f 100644 --- a/README.rst +++ b/README.rst @@ -8,6 +8,9 @@ django-rest-localflavor .. image:: https://travis-ci.org/gilsondev/django-rest-localflavor.png?branch=master :target: https://travis-ci.org/gilsondev/django-rest-localflavor +.. image:: http://smallactsmanifesto.org/static/images/smallacts-badge-80x15-blue.png + :target: http://smallactsmanifesto.org + Country-specific serializers fields, to Django Rest Framework Documentation (soon) diff --git a/rest_localflavor/__init__.py b/rest_localflavor/__init__.py index 7e49527..64477cf 100644 --- a/rest_localflavor/__init__.py +++ b/rest_localflavor/__init__.py @@ -1 +1 @@ -__version__ = '1.0' +__version__ = '1.2' diff --git a/rest_localflavor/locale/ca/LC_MESSAGES/django.po b/rest_localflavor/locale/ca/LC_MESSAGES/django.po new file mode 100644 index 0000000..54ecd06 --- /dev/null +++ b/rest_localflavor/locale/ca/LC_MESSAGES/django.po @@ -0,0 +1,129 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-04 10:21-0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: br/serializers.py:35 +msgid "You can not insert a blank state." +msgstr "" + +#: br/serializers.py:36 +msgid "You can not insert a invalid state." +msgstr "" + +#: br/serializers.py:73 +msgid "Invalid CPF number." +msgstr "" + +#: br/serializers.py:74 +msgid "This field requires at most 11 digits or 14 characters." +msgstr "" + +#: br/serializers.py:75 br/serializers.py:139 +msgid "This field requires only numbers." +msgstr "" + +#: br/serializers.py:76 +#, python-brace-format +msgid "Ensure this field has no more than {max_length} characters." +msgstr "" + +#: br/serializers.py:77 +#, python-brace-format +msgid "Ensure this field has at least {min_length} characters." +msgstr "" + +#: br/serializers.py:138 +msgid "Invalid CNPJ number." +msgstr "" + +#: br/serializers.py:140 +msgid "This field requires at least 14 digits" +msgstr "" + +#: br/serializers.py:187 +msgid "Enter a zip code in the format XXXXX-XXX, XX.XXX-XXX or XXXXXXXX." +msgstr "" + +#: ca/ca_provinces.py:6 +msgid "Alberta" +msgstr "" + +#: ca/ca_provinces.py:7 +msgid "British Columbia" +msgstr "" + +#: ca/ca_provinces.py:8 +msgid "Manitoba" +msgstr "" + +#: ca/ca_provinces.py:9 +msgid "New Brunswick" +msgstr "" + +#: ca/ca_provinces.py:10 +msgid "Newfoundland and Labrador" +msgstr "" + +#: ca/ca_provinces.py:11 +msgid "Northwest Territories" +msgstr "" + +#: ca/ca_provinces.py:12 +msgid "Nova Scotia" +msgstr "" + +#: ca/ca_provinces.py:13 +msgid "Nunavut" +msgstr "" + +#: ca/ca_provinces.py:14 +msgid "Ontario" +msgstr "" + +#: ca/ca_provinces.py:15 +msgid "Prince Edward Island" +msgstr "" + +#: ca/ca_provinces.py:16 +msgid "Quebec" +msgstr "" + +#: ca/ca_provinces.py:17 +msgid "Saskatchewan" +msgstr "" + +#: ca/ca_provinces.py:18 +msgid "Yukon" +msgstr "" + +#: ca/serializers.py:34 +msgid "Enter a postal code in the format XXX XXX." +msgstr "" + +#: ca/serializers.py:60 +msgid "Phone numbers must be in XXX-XXX-XXXX format." +msgstr "" + +#: ca/serializers.py:88 +msgid "Enter a Canadian province or territory." +msgstr "" + +#: ca/serializers.py:128 +msgid "Enter a valid Canadian Social Insurance number in XXX-XXX-XXX format." +msgstr "" diff --git a/rest_localflavor/locale/en/LC_MESSAGES/django.po b/rest_localflavor/locale/en/LC_MESSAGES/django.po index ace0531..059ba14 100644 --- a/rest_localflavor/locale/en/LC_MESSAGES/django.po +++ b/rest_localflavor/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-28 17:00-0200\n" +"POT-Creation-Date: 2015-11-04 10:21-0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,3 +58,71 @@ msgstr "" #: br/serializers.py:187 msgid "Enter a zip code in the format XXXXX-XXX, XX.XXX-XXX or XXXXXXXX." msgstr "" + +#: ca/ca_provinces.py:6 +msgid "Alberta" +msgstr "" + +#: ca/ca_provinces.py:7 +msgid "British Columbia" +msgstr "" + +#: ca/ca_provinces.py:8 +msgid "Manitoba" +msgstr "" + +#: ca/ca_provinces.py:9 +msgid "New Brunswick" +msgstr "" + +#: ca/ca_provinces.py:10 +msgid "Newfoundland and Labrador" +msgstr "" + +#: ca/ca_provinces.py:11 +msgid "Northwest Territories" +msgstr "" + +#: ca/ca_provinces.py:12 +msgid "Nova Scotia" +msgstr "" + +#: ca/ca_provinces.py:13 +msgid "Nunavut" +msgstr "" + +#: ca/ca_provinces.py:14 +msgid "Ontario" +msgstr "" + +#: ca/ca_provinces.py:15 +msgid "Prince Edward Island" +msgstr "" + +#: ca/ca_provinces.py:16 +msgid "Quebec" +msgstr "" + +#: ca/ca_provinces.py:17 +msgid "Saskatchewan" +msgstr "" + +#: ca/ca_provinces.py:18 +msgid "Yukon" +msgstr "" + +#: ca/serializers.py:34 +msgid "Enter a postal code in the format XXX XXX." +msgstr "" + +#: ca/serializers.py:60 +msgid "Phone numbers must be in XXX-XXX-XXXX format." +msgstr "" + +#: ca/serializers.py:88 +msgid "Enter a Canadian province or territory." +msgstr "" + +#: ca/serializers.py:128 +msgid "Enter a valid Canadian Social Insurance number in XXX-XXX-XXX format." +msgstr "" diff --git a/rest_localflavor/locale/pt_BR/LC_MESSAGES/django.po b/rest_localflavor/locale/pt_BR/LC_MESSAGES/django.po index bb21c22..6ce2187 100644 --- a/rest_localflavor/locale/pt_BR/LC_MESSAGES/django.po +++ b/rest_localflavor/locale/pt_BR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-28 17:00-0200\n" +"POT-Creation-Date: 2015-11-04 10:21-0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Gilson Filho \n" "Language-Team: LANGUAGE \n" @@ -59,3 +59,73 @@ msgstr "Esse campo precisa de no mínimo 14 dígitos" #: br/serializers.py:187 msgid "Enter a zip code in the format XXXXX-XXX, XX.XXX-XXX or XXXXXXXX." msgstr "Entre com o CEP no formato XXXXX-XXX, XX.XXX-XXX ou XXXXXXXX." + +#: ca/ca_provinces.py:6 +msgid "Alberta" +msgstr "" + +#: ca/ca_provinces.py:7 +msgid "British Columbia" +msgstr "" + +#: ca/ca_provinces.py:8 +msgid "Manitoba" +msgstr "" + +#: ca/ca_provinces.py:9 +msgid "New Brunswick" +msgstr "" + +#: ca/ca_provinces.py:10 +msgid "Newfoundland and Labrador" +msgstr "" + +#: ca/ca_provinces.py:11 +msgid "Northwest Territories" +msgstr "" + +#: ca/ca_provinces.py:12 +msgid "Nova Scotia" +msgstr "" + +#: ca/ca_provinces.py:13 +msgid "Nunavut" +msgstr "" + +#: ca/ca_provinces.py:14 +msgid "Ontario" +msgstr "" + +#: ca/ca_provinces.py:15 +msgid "Prince Edward Island" +msgstr "" + +#: ca/ca_provinces.py:16 +msgid "Quebec" +msgstr "" + +#: ca/ca_provinces.py:17 +msgid "Saskatchewan" +msgstr "" + +#: ca/ca_provinces.py:18 +msgid "Yukon" +msgstr "" + +#: ca/serializers.py:34 +#, fuzzy +#| msgid "Enter a zip code in the format XXXXX-XXX, XX.XXX-XXX or XXXXXXXX." +msgid "Enter a postal code in the format XXX XXX." +msgstr "Entre com o CEP no formato XXXXX-XXX, XX.XXX-XXX ou XXXXXXXX." + +#: ca/serializers.py:60 +msgid "Phone numbers must be in XXX-XXX-XXXX format." +msgstr "" + +#: ca/serializers.py:88 +msgid "Enter a Canadian province or territory." +msgstr "" + +#: ca/serializers.py:128 +msgid "Enter a valid Canadian Social Insurance number in XXX-XXX-XXX format." +msgstr ""