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
8f4a5be3
Commit
8f4a5be3
authored
Sep 30, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always return list
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
ee76bcf4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
weblate/trans/forms.py
weblate/trans/forms.py
+1
-4
No files found.
weblate/trans/forms.py
View file @
8f4a5be3
...
...
@@ -199,8 +199,7 @@ class PluralTextarea(forms.Textarea):
def
value_from_datadict
(
self
,
data
,
files
,
name
):
'''
Returns processed plurals - either list of plural strings or single
string if no plurals are in use.
Returns processed plurals as a list.
'''
ret
=
[]
for
idx
in
range
(
0
,
10
):
...
...
@@ -209,8 +208,6 @@ class PluralTextarea(forms.Textarea):
break
ret
.
append
(
data
.
get
(
fieldname
,
''
))
ret
=
[
smart_unicode
(
r
.
replace
(
'
\
r
'
,
''
))
for
r
in
ret
]
if
len
(
ret
)
==
1
:
return
ret
[
0
]
return
ret
...
...
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