diff --git a/.gitignore b/.gitignore index f997918520..e08d13c0a6 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,9 @@ server/web/static/dist/ logs/ *.log +# Ignore some translation stuff +.tx/tasking-manager.master/ + #python venv/ *pyc diff --git a/.tx/config b/.tx/config index 409281d5ce..ac70970fed 100644 --- a/.tx/config +++ b/.tx/config @@ -1,7 +1,7 @@ [main] host = https://www.transifex.com -[tasking-manager-3.master] +[tasking-manager.master] source_file = client/locale/en.json source_lang = en trans.ar = client/locale/ar.json @@ -10,11 +10,11 @@ trans.cs = client/locale/cs.json trans.da = client/locale/da.json trans.de = client/locale/de.json trans.es = client/locale/es.json -trans.fi = client/locale/fi.json trans.fa_IR = client/locale/fa_IR.json +trans.fi = client/locale/fi.json trans.fr = client/locale/fr.json -trans.hu = client/locale/hu.json trans.gl = client/locale/gl.json +trans.hu = client/locale/hu.json trans.id = client/locale/id.json trans.it = client/locale/it.json trans.ja = client/locale/ja.json @@ -34,3 +34,4 @@ trans.uk = client/locale/uk.json trans.vi = client/locale/vi.json trans.zh_TW = client/locale/zh_TW.json type = KEYVALUEJSON + diff --git a/Makefile b/Makefile index e3d8f248df..0d918d54ad 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ ifndef DOCKER_COMPOSE_VERSION endif build: - docker-compose build app + docker-compose build --no-cache app up: docker-compose up -d @@ -21,6 +21,12 @@ down: list: docker-compose ps +refresh-translatables: + docker-compose exec app sh -c "python manage.py refresh_translatables" + +refresh-translations: + docker-compose exec app sh -c "tx pull -af" + tests:test-client test-server test-client: diff --git a/client/app/admin/edit-project/edit-project.html b/client/app/admin/edit-project/edit-project.html index e9833b702e..8d4e199e51 100644 --- a/client/app/admin/edit-project/edit-project.html +++ b/client/app/admin/edit-project/edit-project.html @@ -276,7 +276,7 @@

{{ 'In this area' | translate }}

{x}, {y} and {z} parameters can only be be used on tasks generated in the Tasking Manager and not on imported tasks. For example: « This task involves loading extra data. Click [here](http://localhost:8111/import?new_layer=true&url=http://www.domain.com/data/{x}/{y}/{z}/routes_2009.osm) to load the data into JOSM ».' | translate }}

- {{ 'Put here anything that can be useful to users while taking a task. If you have added extra properties within the GeoJSON of the task, they can be referenced by surrounding them in curly braces. For eg. if you have a property called "import_url" in your GeoJSON, you can reference it like:' | translate }} + {{ 'Put here anything that can be useful to users while taking a task. If you have added extra properties within the GeoJSON of the task, they can be referenced by surrounding them in curly braces. For eg. if you have a property called `import_url` in your GeoJSON, you can reference it like:' | translate }} This task involves loading extra data. Click [here](http://localhost:8111/import?new_layer=true&url={import_url}) to load the data into JOSM