Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release/2.024.17
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm committed Jun 4, 2024
2 parents b89d3a8 + 33d4054 commit 2dd751f
Show file tree
Hide file tree
Showing 31 changed files with 444 additions and 390 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.10']
python-version: ['3.8', '3.10', '3.12']
services:
postgres:
image: postgis/postgis:14-3.2
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@ instructions on how to install KoboToolbox.
To generate a locale from scratch (ex. Spanish)

``` sh
$ django-admin.py makemessages -l es -e py,html,email,txt ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py makemessages -d djangojs -l es && cd - ; done
$ django-admin makemessages -l es -e py,html,email,txt ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin makemessages -d djangojs -l es && cd - ; done
```

To update PO files

``` sh
$ django-admin.py makemessages -a ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py makemessages -d djangojs -a && cd - ; done
$ django-admin makemessages -a ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin makemessages -d djangojs -a && cd - ; done
```

To compile MO files and update live translations

``` sh
$ django-admin.py compilemessages ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin.py compilemessages && cd - ; done
$ django-admin compilemessages ;
$ for app in {main,viewer} ; do cd kobocat/apps/${app} && django-admin compilemessages && cd - ; done
```
## Testing in KoboCAT

Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setup(request):
toggle_capturing(capture_manager, stop=False)
pytest.exit('User interrupted tests', pytest.ExitCode.INTERRUPTED)

if 'instances' in settings.MONGO_DB.collection_names():
if 'instances' in settings.MONGO_DB.list_collection_names():
response = stderr_prompt(
'\n\n'
'WARNING: the MongoDB collection {}.instances already exists!\n'
Expand Down
2 changes: 1 addition & 1 deletion dependencies/pip/dev_requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements.in

ipdb
ipython
ipython==8.12.3 # Max supported version by Python 3.8
shell_command
sqlparse
pytest
Expand Down
Loading

0 comments on commit 2dd751f

Please sign in to comment.