Skip to content

Commit

Permalink
Move locale files into indigo/locale so dependent packages find them
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jul 11, 2019
1 parent aa9c187 commit d97173f
Show file tree
Hide file tree
Showing 81 changed files with 1,770 additions and 2,422 deletions.
7 changes: 6 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ include LICENSE
include README.md
include VERSION

recursive-include locale *
recursive-include indigo/locale *

recursive-include indigo_api/fixtures *
recursive-include indigo_api/locale *
recursive-include indigo_api/static *
recursive-include indigo_api/templates *

recursive-include indigo_app/locale *
recursive-include indigo_app/static *
recursive-include indigo_app/templates *

Expand All @@ -15,5 +18,7 @@ recursive-include indigo_resolver/templates *

recursive-include indigo_pl/static *
recursive-include indigo_pl/templates *

recursive-include indigo_za/locale *
recursive-include indigo_za/static *
recursive-include indigo_za/templates *
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ You will also need `pdftotext` to import PDF files. On Mac, you can use Homebrew

## Adding translation strings

Translations are added on [CrowdIn](https://crowdin.com/project/openup-indigo).
Each indigo package has its own translations in the `locale` directory. Translations for strings are added on [CrowdIn](https://crowdin.com/project/openup-indigo).

If you have added or changed strings that need translating, you must [tell Django to update the .po files](https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#localization-how-to-create-language-files):

```bash
django-admin makemessages -a --ignore env/\*
django-admin compilemessages
for app in indigo indigo_api indigo_za; do pushd $app; django-admin makemessages -a; popd; done
django-admin compilemessages --settings indigo.settings
```

And then commit the changes. CrowdIn will pick up any changed strings and make them available for translation. Once they are translated, it will
Expand Down
Binary file added indigo/locale/af/LC_MESSAGES/django.mo
Binary file not shown.
58 changes: 58 additions & 0 deletions indigo/locale/af/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
msgid ""
msgstr ""
"Project-Id-Version: openup-indigo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\n"
"PO-Revision-Date: 2018-08-08 09:12\n"
"Last-Translator: longhotsummer <greg@kempe.net>\n"
"Language-Team: Afrikaans\n"
"Language: af_ZA\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"
"X-Generator: crowdin.com\n"
"X-Crowdin-Project: openup-indigo\n"
"X-Crowdin-Language: af\n"
"X-Crowdin-File: /master/locale/af/LC_MESSAGES/django.po\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr "Daad"

#: analysis/toc/base.py:14
msgid "Article"
msgstr "Artikel"

#: analysis/toc/base.py:15
msgid "By-law"
msgstr "Verordening"

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr "Hoofstuk"

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr "Regeringsbrief"

#: analysis/toc/base.py:18
msgid "Part"
msgstr "Deel"

#: analysis/toc/base.py:19
msgid "Section"
msgstr "Artikel"

#: analysis/toc/base.py:20
msgid "Preface"
msgstr "Voorwoord"

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr "Aanhef"

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr "%(type)s %(number)s van %(year)s"
Binary file not shown.
58 changes: 58 additions & 0 deletions indigo/locale/nr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
msgid ""
msgstr ""
"Project-Id-Version: openup-indigo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\n"
"PO-Revision-Date: 2018-08-03 14:50\n"
"Last-Translator: longhotsummer <greg@kempe.net>\n"
"Language-Team: Southern Ndebele\n"
"Language: nr_ZA\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"
"X-Generator: crowdin.com\n"
"X-Crowdin-Project: openup-indigo\n"
"X-Crowdin-Language: nr\n"
"X-Crowdin-File: /master/locale/af/LC_MESSAGES/django.po\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr ""

#: analysis/toc/base.py:14
msgid "Article"
msgstr ""

#: analysis/toc/base.py:15
msgid "By-law"
msgstr ""

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr "Isahluko"

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr ""

#: analysis/toc/base.py:18
msgid "Part"
msgstr ""

#: analysis/toc/base.py:19
msgid "Section"
msgstr ""

#: analysis/toc/base.py:20
msgid "Preface"
msgstr ""

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr ""

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr ""
Binary file not shown.
58 changes: 58 additions & 0 deletions indigo/locale/nso/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
msgid ""
msgstr ""
"Project-Id-Version: openup-indigo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\n"
"PO-Revision-Date: 2018-08-03 14:50\n"
"Last-Translator: longhotsummer <greg@kempe.net>\n"
"Language-Team: Northern Sotho\n"
"Language: ns_ZA\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"
"X-Generator: crowdin.com\n"
"X-Crowdin-Project: openup-indigo\n"
"X-Crowdin-Language: nso\n"
"X-Crowdin-File: /master/locale/af/LC_MESSAGES/django.po\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr ""

#: analysis/toc/base.py:14
msgid "Article"
msgstr ""

#: analysis/toc/base.py:15
msgid "By-law"
msgstr ""

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr "Kgaolo ya"

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr ""

#: analysis/toc/base.py:18
msgid "Part"
msgstr ""

#: analysis/toc/base.py:19
msgid "Section"
msgstr ""

#: analysis/toc/base.py:20
msgid "Preface"
msgstr ""

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr ""

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr ""
Binary file not shown.
62 changes: 62 additions & 0 deletions indigo/locale/pl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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 <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\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"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n"
"%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n"
"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr "Ustawa"

#: analysis/toc/base.py:14
msgid "Article"
msgstr ""

#: analysis/toc/base.py:15
msgid "By-law"
msgstr ""

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr ""

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr ""

#: analysis/toc/base.py:18
msgid "Part"
msgstr ""

#: analysis/toc/base.py:19
msgid "Section"
msgstr ""

#: analysis/toc/base.py:20
msgid "Preface"
msgstr ""

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr ""

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr ""
Binary file not shown.
58 changes: 58 additions & 0 deletions indigo/locale/ss/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
msgid ""
msgstr ""
"Project-Id-Version: openup-indigo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\n"
"PO-Revision-Date: 2018-08-03 14:50\n"
"Last-Translator: longhotsummer <greg@kempe.net>\n"
"Language-Team: Swati\n"
"Language: ss_ZA\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"
"X-Generator: crowdin.com\n"
"X-Crowdin-Project: openup-indigo\n"
"X-Crowdin-Language: ss\n"
"X-Crowdin-File: /master/locale/af/LC_MESSAGES/django.po\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr ""

#: analysis/toc/base.py:14
msgid "Article"
msgstr ""

#: analysis/toc/base.py:15
msgid "By-law"
msgstr ""

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr "Sehluko"

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr ""

#: analysis/toc/base.py:18
msgid "Part"
msgstr ""

#: analysis/toc/base.py:19
msgid "Section"
msgstr ""

#: analysis/toc/base.py:20
msgid "Preface"
msgstr ""

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr ""

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr ""
Binary file not shown.
58 changes: 58 additions & 0 deletions indigo/locale/st/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
msgid ""
msgstr ""
"Project-Id-Version: openup-indigo\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-07-11 21:03+0200\n"
"PO-Revision-Date: 2018-08-03 14:50\n"
"Last-Translator: longhotsummer <greg@kempe.net>\n"
"Language-Team: Southern Sotho\n"
"Language: st_ZA\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"
"X-Generator: crowdin.com\n"
"X-Crowdin-Project: openup-indigo\n"
"X-Crowdin-Language: st\n"
"X-Crowdin-File: /master/locale/af/LC_MESSAGES/django.po\n"

#: analysis/toc/base.py:13 analysis/work_detail/base.py:44
msgid "Act"
msgstr ""

#: analysis/toc/base.py:14
msgid "Article"
msgstr ""

#: analysis/toc/base.py:15
msgid "By-law"
msgstr ""

#: analysis/toc/base.py:16 analysis/work_detail/base.py:35
msgid "Chapter"
msgstr "Karolo"

#: analysis/toc/base.py:17
msgid "Government Notice"
msgstr ""

#: analysis/toc/base.py:18
msgid "Part"
msgstr ""

#: analysis/toc/base.py:19
msgid "Section"
msgstr ""

#: analysis/toc/base.py:20
msgid "Preface"
msgstr ""

#: analysis/toc/base.py:21
msgid "Preamble"
msgstr ""

#: analysis/work_detail/base.py:25
#, python-format
msgid "%(type)s %(number)s of %(year)s"
msgstr ""
Binary file not shown.
Loading

0 comments on commit d97173f

Please sign in to comment.