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
d27e0eee
Commit
d27e0eee
authored
May 21, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
6d306d3b
c2b25104
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
trans/formats.py
trans/formats.py
+0
-2
trans/tests/views.py
trans/tests/views.py
+33
-0
No files found.
trans/formats.py
View file @
d27e0eee
...
...
@@ -266,7 +266,6 @@ class FileFormat(object):
format_id
=
''
loader
=
None
monolingual
=
None
mark_fuzzy
=
None
@
classmethod
def
fixup
(
cls
,
store
):
...
...
@@ -579,7 +578,6 @@ class AndroidFormat(FileFormat):
format_id
=
'aresource'
loader
=
(
'aresource'
,
'AndroidResourceFile'
)
monolingual
=
True
mark_fuzzy
=
True
register_fileformat
(
AndroidFormat
)
...
...
trans/tests/views.py
View file @
d27e0eee
...
...
@@ -503,6 +503,39 @@ class EditTest(ViewTestCase):
)
self
.
assertRedirects
(
response
,
self
.
translation_url
)
def
test_fuzzy
(
self
):
'''
Test for fuzzy flag handling.
'''
unit
=
self
.
get_unit
()
self
.
assertFalse
(
unit
.
fuzzy
)
response
=
self
.
edit_unit
(
'Hello, world!
\
n
'
,
'Nazdar svete!
\
n
'
,
fuzzy
=
'yes'
)
unit
=
self
.
get_unit
()
self
.
assertTrue
(
unit
.
fuzzy
)
self
.
assertEqual
(
unit
.
target
,
'Nazdar svete!
\
n
'
)
self
.
assertFalse
(
unit
.
has_failing_check
)
response
=
self
.
edit_unit
(
'Hello, world!
\
n
'
,
'Nazdar svete!
\
n
'
,
)
unit
=
self
.
get_unit
()
self
.
assertFalse
(
unit
.
fuzzy
)
self
.
assertEqual
(
unit
.
target
,
'Nazdar svete!
\
n
'
)
self
.
assertFalse
(
unit
.
has_failing_check
)
response
=
self
.
edit_unit
(
'Hello, world!
\
n
'
,
'Nazdar svete!
\
n
'
,
fuzzy
=
'yes'
)
unit
=
self
.
get_unit
()
self
.
assertTrue
(
unit
.
fuzzy
)
self
.
assertEqual
(
unit
.
target
,
'Nazdar svete!
\
n
'
)
self
.
assertFalse
(
unit
.
has_failing_check
)
class
EditResourceTest
(
EditTest
):
def
create_subproject
(
self
):
...
...
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