Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6f575cf2
Commit
6f575cf2
authored
Oct 30, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
85f96e8c
f1e606b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
docs/admin/management.rst
docs/admin/management.rst
+23
-2
weblate/trans/models/translation.py
weblate/trans/models/translation.py
+1
-1
No files found.
docs/admin/management.rst
View file @
6f575cf2
...
...
@@ -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>
--------------------------
...
...
weblate/trans/models/translation.py
View file @
6f575cf2
...
...
@@ -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
(
10
0
,
0
,
0
)
# Fetch values
result
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment