Skip to content

Commit

Permalink
add translations for the contacts app
Browse files Browse the repository at this point in the history
  • Loading branch information
ZendaInnocent committed Nov 4, 2023
1 parent d01c449 commit 3414a78
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 105 deletions.
35 changes: 25 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

- Create a new branch for your feature or bug fix

```bash
git checkout -b <branch-name>
```
```bash
git checkout -b <branch-name>
```

- Make your changes and commit them

```bash
git add .
git commit -m "your message"
```
```bash
git add .
git commit -m "your message"
```

- Push to the branch

```bash
git push origin <branch-name>
```
```bash
git push origin <branch-name>
```

- Create a pull request from your branch to the main repository.

Expand All @@ -36,3 +36,18 @@ If the package is for development, then add it to the project using:
```bash
pipenv install <package-name> --dev
```

## Translations

```
# Create or update message file for all locales
python manage.py makemessages -a
# Create or update message file for a locale
python manage.py makemessages -l <lang-code>
# use the lang code for the locale you want, eg. sw
python manage.py makemessages -l sw
```

Access translation using http://localhost:8000/rosetta
119 changes: 80 additions & 39 deletions locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-26 11:45+0300\n"
"POT-Creation-Date: 2023-11-04 12:35+0300\n"
"PO-Revision-Date: 2023-08-20 16:25+0300\n"
"Last-Translator: <>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -19,14 +19,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Translated-Using: django-rosetta 0.9.9\n"

#: .\config\settings.py:142
#: .\config\settings.py:146
msgid "English"
msgstr ""

#: .\config\settings.py:143
#: .\config\settings.py:147
msgid "Swahili"
msgstr ""

#: .\pim\contacts\models.py:17
msgid "name"
msgstr ""

#: .\pim\contacts\models.py:18
msgid "title"
msgstr ""

#: .\pim\contacts\models.py:20
msgid "avatar"
msgstr ""

#: .\pim\contacts\models.py:26
msgid "is favorite"
msgstr ""

#: .\pim\contacts\models.py:27
msgid "email"
msgstr ""

#: .\pim\contacts\models.py:28
msgid "phone number"
msgstr ""

#: .\pim\contacts\models.py:30
msgid "organization"
msgstr ""

#: .\pim\contacts\templates\contacts\contact_form.html:5
#, python-format
msgid ""
"\n"
" %(title)s Contact\n"
" "
msgstr ""

#: .\pim\contacts\templates\contacts\contact_form.html:19
#: .\pim\notes\templates\notes\note_form.html:15
#: .\pim\todos\templates\todos\todo_form.html:14
msgid "Save"
msgstr ""

#: .\pim\contacts\templates\contacts\contact_list.html:11
msgid ""
"\n"
" No Contacts yet.\n"
" "
msgstr ""

#: .\pim\contacts\templates\contacts\index.html:5 .\templates\base.html:41
msgid "Contacts"
msgstr ""

#: .\pim\contacts\templates\contacts\index.html:10
msgid "Search"
msgstr ""

#: .\pim\contacts\templates\contacts\index.html:14
#: .\pim\notes\templates\notes\index.html:23
msgid "Add"
msgstr ""

#: .\pim\main\templates\main\home.html:6
msgid "Pricing"
msgstr ""
Expand All @@ -39,7 +101,7 @@ msgstr ""
msgid "No plans yet"
msgstr ""

#: .\pim\notes\templates\notes\index.html:5 .\templates\base.html:41
#: .\pim\notes\templates\notes\index.html:5 .\templates\base.html:48
msgid "Notes"
msgstr ""

Expand All @@ -51,11 +113,6 @@ msgstr ""
msgid "No notes yet."
msgstr ""

#: .\pim\notes\templates\notes\index.html:23
#: .\pim\todos\templates\todos\partials\form.html:19
msgid "Add"
msgstr ""

#: .\pim\notes\templates\notes\note_confirm_delete.html:7
msgid " Do you want to delete?"
msgstr ""
Expand All @@ -76,46 +133,26 @@ msgstr ""
msgid "Delete"
msgstr ""

#: .\pim\notes\templates\notes\note_form.html:15
msgid "Save"
msgstr ""

#: .\pim\todos\models.py:19
#: .\pim\todos\models.py:16
msgid "text"
msgstr ""

#: .\pim\todos\models.py:20
msgid "is_completed"
#: .\pim\todos\models.py:17
msgid "is completed"
msgstr ""

#: .\pim\todos\models.py:21
#: .\pim\todos\models.py:22
msgid "created_at"
msgstr ""

#: .\pim\todos\models.py:22
#: .\pim\todos\models.py:25
msgid "updated_at"
msgstr ""

#: .\pim\todos\models.py:43
msgid "order"
msgstr ""

#: .\pim\todos\templates\todos\index.html:6 .\templates\base.html:34
#: .\pim\todos\templates\todos\todo_list.html:7 .\templates\base.html:34
msgid "Todos"
msgstr ""

#: .\pim\todos\templates\todos\partials\form.html:9
msgid "What needs to be done"
msgstr ""

#: .\pim\todos\templates\todos\partials\form.html:15
msgid "Update"
msgstr ""

#: .\pim\todos\templates\todos\partials\form.html:23
msgid "Loading"
msgstr ""

#: .\templates\account\account_inactive.html:5
#: .\templates\account\account_inactive.html:8
msgid "Account Inactive"
Expand Down Expand Up @@ -281,7 +318,7 @@ msgid ""
msgstr ""

#: .\templates\account\logout.html:5 .\templates\account\logout.html:18
#: .\templates\base.html:50
#: .\templates\base.html:65
msgid "Log Out"
msgstr ""

Expand Down Expand Up @@ -455,14 +492,18 @@ msgstr ""
msgid "Elegant PIM"
msgstr ""

#: .\templates\base.html:58
#: .\templates\base.html:55
msgid "Appointments"
msgstr ""

#: .\templates\base.html:73
msgid "Log In"
msgstr ""

#: .\templates\base.html:65
#: .\templates\base.html:80
msgid "Sign Up"
msgstr ""

#: .\templates\base.html:103
#: .\templates\base.html:125
msgid "Made with Love by"
msgstr ""
Loading

0 comments on commit 3414a78

Please sign in to comment.