Commit 6f575cf2 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 85f96e8c f1e606b5
......@@ -102,11 +102,32 @@ base file for monolingual translations.
You can also specify file format to use (see :ref:`formats`) by the
``--file-format`` parameter. The default is autodetection.
For example:
To give you some examples, let's try importing two projects.
As first we import The Debian Handbook translations, where each language has
separate folder with translations of each chapter:
.. code-block:: sh
./manage.py import_project \
debian-handbook \
git://anonscm.debian.org/debian-handbook/debian-handbook.git \
squeeze/master \
'*/**.po'
Another example can be Tanaguru tool, where we need to specify file format,
base file template and has all resources and translations located in single
folder:
.. code-block:: sh
./manage.py import_project debian-handbook git://anonscm.debian.org/debian-handbook/debian-handbook.git squeeze/master '*/**.po'
./manage.py import_project \
--file-format=properties \
--base-file-template=web-app/tgol-web-app/src/main/resources/i18n/%s-I18N.properties \
tanaguru \
https://github.com/Tanaguru/Tanaguru \
master \
web-app/tgol-web-app/src/main/resources/i18n/**-I18N_*.properties
importuserdata <file.json>
--------------------------
......
......@@ -100,7 +100,7 @@ class TranslationManager(models.Manager):
# Catch no translations (division by zero)
if total == 0 or total is None:
return (0, 0, 0)
return (100, 0, 0)
# Fetch values
result = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment