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
0177e25f
Commit
0177e25f
authored
Apr 04, 2016
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a4f9a0f7
42435090
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
2 deletions
+30
-2
weblate/locale/ca/LC_MESSAGES/django.po
weblate/locale/ca/LC_MESSAGES/django.po
+2
-2
weblate/trans/migrations/0061_auto_20160404_1841.py
weblate/trans/migrations/0061_auto_20160404_1841.py
+19
-0
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+7
-0
weblate/trans/models/translation.py
weblate/trans/models/translation.py
+1
-0
weblate/trans/tests/test_permissions.py
weblate/trans/tests/test_permissions.py
+1
-0
No files found.
weblate/locale/ca/LC_MESSAGES/django.po
View file @
0177e25f
...
@@ -62,7 +62,7 @@ msgstr "Podeu afegir altres adreces electròniques a la pestanya Autenticació."
...
@@ -62,7 +62,7 @@ msgstr "Podeu afegir altres adreces electròniques a la pestanya Autenticació."
#: weblate/accounts/forms.py:282 weblate/accounts/forms.py:360
#: weblate/accounts/forms.py:282 weblate/accounts/forms.py:360
#: weblate/html/project.html:165
#: weblate/html/project.html:165
msgid "Full name"
msgid "Full name"
msgstr "El vostre nom comple
r
t"
msgstr "El vostre nom complet"
#: weblate/accounts/forms.py:291
#: weblate/accounts/forms.py:291
msgid "Subject"
msgid "Subject"
...
@@ -605,7 +605,7 @@ msgstr "Registre"
...
@@ -605,7 +605,7 @@ msgstr "Registre"
#: weblate/html/accounts/email-sent.html:11
#: weblate/html/accounts/email-sent.html:11
msgid "Registration almost complete"
msgid "Registration almost complete"
msgstr "Registre quasi comple
r
t"
msgstr "Registre quasi complet"
#: weblate/html/accounts/email-sent.html:14
#: weblate/html/accounts/email-sent.html:14
msgid ""
msgid ""
...
...
weblate/trans/migrations/0061_auto_20160404_1841.py
0 → 100644
View file @
0177e25f
# -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-04 18:41
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'trans'
,
'0060_auto_20160310_0950'
),
]
operations
=
[
migrations
.
AlterUniqueTogether
(
name
=
'translation'
,
unique_together
=
set
([(
'subproject'
,
'language'
)]),
),
]
weblate/trans/models/subproject.py
View file @
0177e25f
...
@@ -1463,6 +1463,13 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -1463,6 +1463,13 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
)
)
fullname
=
os
.
path
.
join
(
self
.
get_path
(),
filename
)
fullname
=
os
.
path
.
join
(
self
.
get_path
(),
filename
)
# Ignore request if file exists (possibly race condition as
# the processing of new language can take some time and user
# can submit again)
if
os
.
path
.
exists
(
fullname
):
translation
.
check_sync
(
request
=
request
)
return
self
.
file_format_cls
.
add_language
(
self
.
file_format_cls
.
add_language
(
fullname
,
fullname
,
language
,
language
,
...
...
weblate/trans/models/translation.py
View file @
0177e25f
...
@@ -162,6 +162,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
...
@@ -162,6 +162,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
(
'use_mt'
,
"Can use machine translation"
),
(
'use_mt'
,
"Can use machine translation"
),
)
)
app_label
=
'trans'
app_label
=
'trans'
unique_together
=
(
'subproject'
,
'language'
)
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
"""Constructor to initialize some cache properties."""
"""Constructor to initialize some cache properties."""
...
...
weblate/trans/tests/test_permissions.py
View file @
0177e25f
...
@@ -97,6 +97,7 @@ class GroupACLTest(ModelTestCase):
...
@@ -97,6 +97,7 @@ class GroupACLTest(ModelTestCase):
self
.
privileged
=
User
.
objects
.
create
(
username
=
"privileged"
)
self
.
privileged
=
User
.
objects
.
create
(
username
=
"privileged"
)
self
.
group
=
Group
.
objects
.
create
(
name
=
"testgroup"
)
self
.
group
=
Group
.
objects
.
create
(
name
=
"testgroup"
)
self
.
project
=
self
.
subproject
.
project
self
.
project
=
self
.
subproject
.
project
self
.
subproject
.
translation_set
.
all
().
delete
()
self
.
language
=
Language
.
objects
.
get_default
()
self
.
language
=
Language
.
objects
.
get_default
()
self
.
trans
=
Translation
.
objects
.
create
(
self
.
trans
=
Translation
.
objects
.
create
(
subproject
=
self
.
subproject
,
language
=
self
.
language
,
subproject
=
self
.
subproject
,
language
=
self
.
language
,
...
...
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