Skip to content

Commit

Permalink
Adding 'en' source files and transifex config
Browse files Browse the repository at this point in the history
  • Loading branch information
madmath committed Aug 30, 2016
1 parent 0bfb3de commit 0aab0c2
Show file tree
Hide file tree
Showing 22 changed files with 1,864 additions and 191 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ script:
- pep8 --count --show-source --exclude=migrations src/
# Run `makemessages` and report an error if it should have been run by the
# developer for this pull request.
- cd src && python3 manage.py makemessages -l fr
- cd src && python3 manage.py makemessages -l fr -l en
# We allow for a 1-line difference since `makemessages` will change the
# timestamp within the file.
- git diff --numstat | awk '{if ($1>1 || $2>1) { print "***ERROR***\nLarge diff detected in", $3; print "Please run `python3 manage.py makemessages -l fr` (from src/) and commit."; exit 1 } else { exit 0 }}'
- git diff --numstat | awk '{if ($1>1 || $2>1) { print "***ERROR***\nLarge diff detected in", $3; print "Please run `python3 manage.py makemessages -l fr -l en` (from src/) and commit."; exit 1 } else { exit 0 }}'

after_success:
- coveralls
57 changes: 57 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[main]
host = https://www.transifex.com

[sous-chef.billing_djangopo]
file_filter = src/billing/locale/<lang>/LC_MESSAGES/django.po
source_file = src/billing/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.delivery_djangopo]
file_filter = src/delivery/locale/<lang>/LC_MESSAGES/django.po
source_file = src/delivery/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.meal_djangopo]
file_filter = src/meal/locale/<lang>/LC_MESSAGES/django.po
source_file = src/meal/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.member_djangopo]
file_filter = src/member/locale/<lang>/LC_MESSAGES/django.po
source_file = src/member/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.note_djangopo]
file_filter = src/note/locale/<lang>/LC_MESSAGES/django.po
source_file = src/note/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.notification_djangopo]
file_filter = src/notification/locale/<lang>/LC_MESSAGES/django.po
source_file = src/notification/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.order_djangopo]
file_filter = src/order/locale/<lang>/LC_MESSAGES/django.po
source_file = src/order/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.page_djangopo]
file_filter = src/page/locale/<lang>/LC_MESSAGES/django.po
source_file = src/page/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[sous-chef.sous-chef_djangopo]
file_filter = src/sous-chef/locale/<lang>/LC_MESSAGES/django.po
source_file = src/sous-chef/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

6 changes: 3 additions & 3 deletions docs/create_po_file.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
'page/locale/',
)
```
3. Run `python3 manage.py makemessages -l fr` to update the various django.po
files.
4. In order to create .po files and to see new translations reflected in the
3. Run `python3 manage.py makemessages -l fr -l en` to update the various
django.po files.
4. In order to compile .po files and to see new translations reflected in the
application, run `python3 manage.py compilemessages`
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ django-annoying==0.9.0
reportlab==3.3.0
django-leaflet==0.18.1
django-extra-views==0.8.0
transifex-client>=0.12.2
48 changes: 48 additions & 0 deletions src/billing/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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: 2016-08-30 20:29+0000\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"

#: billing/models.py:35
msgid "total_amount"
msgstr ""

#: billing/models.py:60
msgid "Search by name"
msgstr ""

#: billing/templates/list_billing.html:5
#: billing/templates/list_billing.html:32
#: billing/templates/view_billing.html:5
msgid "Billing"
msgstr ""

#: billing/templates/list_billing.html:75
msgid "Client"
msgstr ""

#: billing/templates/list_billing.html:76
msgid "Date"
msgstr ""

#: billing/templates/list_billing.html:77
msgid "Amount"
msgstr ""

#: billing/templates/list_billing.html:78
msgid "Actions"
msgstr ""
10 changes: 6 additions & 4 deletions src/billing/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-29 18:06+0000\n"
"POT-Creation-Date: 2016-08-30 20:29+0000\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"
"Last-Translator: savoirfairelinux <support@savoirfairelinux.com>, 2016\n"
"Language-Team: French (https://www.transifex.com/savoirfairelinux/"
"teams/63058/fr/)\n"
"Language: fr\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"

#: billing/models.py:35
msgid "total_amount"
Expand Down
184 changes: 184 additions & 0 deletions src/delivery/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
# 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: 2016-08-30 20:29+0000\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"

#: delivery/forms.py:11
msgid "Today's main dish:"
msgstr ""

#: delivery/forms.py:18
msgid "Select Ingredients:"
msgstr ""

#: delivery/models.py:9
msgid "deliveries"
msgstr ""

#: delivery/templates/ingredients.html:5
msgid "Pick Ingredients"
msgstr ""

#: delivery/templates/kitchen_count.html:5
msgid "Kitchen Count report"
msgstr ""

#: delivery/templates/kitchen_count.html:21
#: delivery/templates/kitchen_count.html:47
msgid "Component"
msgstr ""

#: delivery/templates/kitchen_count.html:22
msgid "Regular"
msgstr ""

#: delivery/templates/kitchen_count.html:23
msgid "Large"
msgstr ""

#: delivery/templates/kitchen_count.html:24
msgid "Dish today"
msgstr ""

#: delivery/templates/kitchen_count.html:25
msgid "Ingredients today"
msgstr ""

#: delivery/templates/kitchen_count.html:44
#: delivery/templates/review_orders.html:28
msgid "Client"
msgstr ""

#: delivery/templates/kitchen_count.html:45
#: delivery/templates/kitchen_count.html:46
msgid "Qty"
msgstr ""

#: delivery/templates/kitchen_count.html:45
msgid "Reg"
msgstr ""

#: delivery/templates/kitchen_count.html:46
msgid "Lge"
msgstr ""

#: delivery/templates/kitchen_count.html:47
#: delivery/templates/kitchen_count.html:48
msgid "Clashing"
msgstr ""

#: delivery/templates/kitchen_count.html:48
#: delivery/templates/kitchen_count_steps.html:12
msgid "Ingredients"
msgstr ""

#: delivery/templates/kitchen_count.html:49
msgid "Preparation"
msgstr ""

#: delivery/templates/kitchen_count.html:50
msgid "Restrictions"
msgstr ""

#: delivery/templates/kitchen_count_steps.html:6
msgid "Review Orders"
msgstr ""

#: delivery/templates/kitchen_count_steps.html:7
msgid "Review the orders for the day."
msgstr ""

#: delivery/templates/kitchen_count_steps.html:13
msgid "Pick ingredients for the day."
msgstr ""

#: delivery/templates/kitchen_count_steps.html:18
msgid "Kitchen Count"
msgstr ""

#: delivery/templates/kitchen_count_steps.html:19
msgid "Print the kitchen count."
msgstr ""

#: delivery/templates/kitchen_count_steps.html:24
msgid "Routes"
msgstr ""

#: delivery/templates/kitchen_count_steps.html:25
msgid "Organize the delivery routes."
msgstr ""

#: delivery/templates/review_orders.html:6
msgid "Orders"
msgstr ""

#: delivery/templates/review_orders.html:21
msgid "Orders have been generated on"
msgstr ""

#: delivery/templates/review_orders.html:29
msgid "Delivery Date"
msgstr ""

#: delivery/templates/review_orders.html:30
msgid "Status"
msgstr ""

#: delivery/templates/review_orders.html:31
msgid "Amount"
msgstr ""

#: delivery/templates/routes.html:6
msgid "Routes Information"
msgstr ""

#: delivery/urls.py:10
msgid "^order/$"
msgstr ""

#: delivery/urls.py:11
msgid "^meal/$"
msgstr ""

#: delivery/urls.py:12
msgid "^meal/(?P<id>\\d+)/$"
msgstr ""

#: delivery/urls.py:13
msgid "^route/$"
msgstr ""

#: delivery/urls.py:14
msgid "^kitchen_count/$"
msgstr ""

#: delivery/urls.py:15
#, python-brace-format
msgid "^kitchen_count/(?P<year>\\d{4})/(?P<month>\\d{2})/(?P<day>\\d+)/$"
msgstr ""

#: delivery/urls.py:17
msgid "^getDailyOrders/$"
msgstr ""

#: delivery/urls.py:18
msgid "^refresh_orders/$"
msgstr ""

#: delivery/urls.py:19
msgid "^saveRoute/$"
msgstr ""
11 changes: 7 additions & 4 deletions src/delivery/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
# 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: 2016-08-29 18:06+0000\n"
"POT-Creation-Date: 2016-08-30 20:29+0000\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"
"Last-Translator: savoirfairelinux <support@savoirfairelinux.com>, 2016\n"
"Language-Team: French (https://www.transifex.com/savoirfairelinux/"
"teams/63058/fr/)\n"
"Language: fr\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"

#: delivery/forms.py:11
msgid "Today's main dish:"
Expand Down
Loading

0 comments on commit 0aab0c2

Please sign in to comment.