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
2190de58
Commit
2190de58
authored
Mar 04, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add upload form
parent
a77d295f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
trans/forms.py
trans/forms.py
+5
-2
No files found.
trans/forms.py
View file @
2190de58
from
django
import
forms
from
django.utils.translation
import
ugettext_lazy
,
ugettext
as
_
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils.safestring
import
mark_safe
from
django.utils.encoding
import
smart_unicode
...
...
@@ -42,5 +42,8 @@ class PluralField(forms.CharField):
class
TranslationForm
(
forms
.
Form
):
checksum
=
forms
.
CharField
(
widget
=
forms
.
HiddenInput
)
target
=
PluralField
(
required
=
False
)
fuzzy
=
forms
.
BooleanField
(
label
=
ugettext_lazy
(
'Fuzzy'
),
required
=
False
)
fuzzy
=
forms
.
BooleanField
(
label
=
_
(
'Fuzzy'
),
required
=
False
)
class
UploadForm
(
forms
.
Form
):
file
=
forms
.
FileField
()
overwrite
=
forms
.
BooleanField
(
label
=
_
(
'Overwrite existing translations'
),
required
=
False
)
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