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
038d5c6d
Commit
038d5c6d
authored
May 15, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use success message when appropriate
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
f4ca4247
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
28 deletions
+31
-28
weblate/accounts/views.py
weblate/accounts/views.py
+4
-4
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+1
-1
weblate/trans/views/basic.py
weblate/trans/views/basic.py
+1
-1
weblate/trans/views/dictionary.py
weblate/trans/views/dictionary.py
+1
-1
weblate/trans/views/edit.py
weblate/trans/views/edit.py
+2
-2
weblate/trans/views/files.py
weblate/trans/views/files.py
+1
-1
weblate/trans/views/git.py
weblate/trans/views/git.py
+12
-12
weblate/trans/views/lock.py
weblate/trans/views/lock.py
+9
-6
No files found.
weblate/accounts/views.py
View file @
038d5c6d
...
...
@@ -113,7 +113,7 @@ def mail_admins_contact(request, subject, message, context, sender):
mail
.
send
(
fail_silently
=
False
)
messages
.
info
(
messages
.
success
(
request
,
_
(
'Message has been sent to administrator.'
)
)
...
...
@@ -164,7 +164,7 @@ def user_profile(request):
response
.
set_cookie
(
settings
.
LANGUAGE_COOKIE_NAME
,
lang_code
)
translation
.
activate
(
lang_code
)
messages
.
info
(
request
,
_
(
'Your profile has been updated.'
))
messages
.
success
(
request
,
_
(
'Your profile has been updated.'
))
return
response
else
:
...
...
@@ -219,7 +219,7 @@ def user_remove(request):
logout
(
request
)
messages
.
info
(
messages
.
success
(
request
,
_
(
'Your account has been removed.'
)
)
...
...
@@ -480,7 +480,7 @@ def password(request):
form
.
cleaned_data
[
'password1'
]
)
request
.
user
.
save
()
messages
.
info
(
messages
.
success
(
request
,
_
(
'Your password has been changed.'
)
)
...
...
weblate/trans/admin_views.py
View file @
038d5c6d
...
...
@@ -269,7 +269,7 @@ def ssh(request):
],
stderr
=
subprocess
.
STDOUT
,
)
messages
.
info
(
request
,
_
(
'Created new SSH key.'
))
messages
.
success
(
request
,
_
(
'Created new SSH key.'
))
except
(
subprocess
.
CalledProcessError
,
OSError
)
as
exc
:
messages
.
error
(
request
,
...
...
weblate/trans/views/basic.py
View file @
038d5c6d
...
...
@@ -449,7 +449,7 @@ def new_language(request, project, subproject):
)
elif
obj
.
project
.
new_lang
==
'contact'
:
notify_new_language
(
obj
,
language
,
request
.
user
)
messages
.
info
(
messages
.
success
(
request
,
_
(
"A request for a new translation has been "
...
...
weblate/trans/views/dictionary.py
View file @
038d5c6d
...
...
@@ -160,7 +160,7 @@ def upload_dictionary(request, project, lang):
_
(
'No words to import found in file.'
)
)
else
:
messages
.
info
(
messages
.
success
(
request
,
_
(
'Imported %d words from file.'
)
%
count
)
...
...
weblate/trans/views/edit.py
View file @
038d5c6d
...
...
@@ -664,7 +664,7 @@ def auto_translation(request, project, subproject, lang):
# Save unit to backend
unit
.
save_backend
(
request
,
False
,
False
)
messages
.
info
(
request
,
_
(
'Automatic translation completed.'
))
messages
.
success
(
request
,
_
(
'Automatic translation completed.'
))
else
:
messages
.
error
(
request
,
_
(
'Failed to process form!'
))
...
...
@@ -692,7 +692,7 @@ def comment(request, pk):
lang
,
form
.
cleaned_data
[
'comment'
]
)
messages
.
info
(
request
,
_
(
'Posted new comment'
))
messages
.
success
(
request
,
_
(
'Posted new comment'
))
else
:
messages
.
error
(
request
,
_
(
'Failed to add comment!'
))
...
...
weblate/trans/views/files.py
View file @
038d5c6d
...
...
@@ -117,7 +117,7 @@ def upload_translation(request, project, subproject, lang):
method
=
form
.
cleaned_data
[
'method'
]
)
if
ret
:
messages
.
info
(
messages
.
success
(
request
,
ungettext
(
'File content successfully merged into translation, '
...
...
weblate/trans/views/git.py
View file @
038d5c6d
...
...
@@ -33,7 +33,7 @@ def commit_project(request, project):
obj
=
get_project
(
request
,
project
)
obj
.
commit_pending
(
request
)
messages
.
info
(
request
,
_
(
'All pending translations were committed.'
))
messages
.
success
(
request
,
_
(
'All pending translations were committed.'
))
return
redirect
(
obj
)
...
...
@@ -44,7 +44,7 @@ def commit_subproject(request, project, subproject):
obj
=
get_subproject
(
request
,
project
,
subproject
)
obj
.
commit_pending
(
request
)
messages
.
info
(
request
,
_
(
'All pending translations were committed.'
))
messages
.
success
(
request
,
_
(
'All pending translations were committed.'
))
return
redirect
(
obj
)
...
...
@@ -55,7 +55,7 @@ def commit_translation(request, project, subproject, lang):
obj
=
get_translation
(
request
,
project
,
subproject
,
lang
)
obj
.
commit_pending
(
request
)
messages
.
info
(
request
,
_
(
'All pending translations were committed.'
))
messages
.
success
(
request
,
_
(
'All pending translations were committed.'
))
return
redirect
(
obj
)
...
...
@@ -66,7 +66,7 @@ def update_project(request, project):
obj
=
get_project
(
request
,
project
)
if
obj
.
do_update
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were updated.'
))
messages
.
success
(
request
,
_
(
'All repositories were updated.'
))
return
redirect
(
obj
)
...
...
@@ -77,7 +77,7 @@ def update_subproject(request, project, subproject):
obj
=
get_subproject
(
request
,
project
,
subproject
)
if
obj
.
do_update
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were updated.'
))
messages
.
success
(
request
,
_
(
'All repositories were updated.'
))
return
redirect
(
obj
)
...
...
@@ -88,7 +88,7 @@ def update_translation(request, project, subproject, lang):
obj
=
get_translation
(
request
,
project
,
subproject
,
lang
)
if
obj
.
do_update
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were updated.'
))
messages
.
success
(
request
,
_
(
'All repositories were updated.'
))
return
redirect
(
obj
)
...
...
@@ -99,7 +99,7 @@ def push_project(request, project):
obj
=
get_project
(
request
,
project
)
if
obj
.
do_push
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were pushed.'
))
messages
.
success
(
request
,
_
(
'All repositories were pushed.'
))
return
redirect
(
obj
)
...
...
@@ -110,7 +110,7 @@ def push_subproject(request, project, subproject):
obj
=
get_subproject
(
request
,
project
,
subproject
)
if
obj
.
do_push
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were pushed.'
))
messages
.
success
(
request
,
_
(
'All repositories were pushed.'
))
return
redirect
(
obj
)
...
...
@@ -121,7 +121,7 @@ def push_translation(request, project, subproject, lang):
obj
=
get_translation
(
request
,
project
,
subproject
,
lang
)
if
obj
.
do_push
(
request
):
messages
.
info
(
request
,
_
(
'All repositories were pushed.'
))
messages
.
success
(
request
,
_
(
'All repositories were pushed.'
))
return
redirect
(
obj
)
...
...
@@ -132,7 +132,7 @@ def reset_project(request, project):
obj
=
get_project
(
request
,
project
)
if
obj
.
do_reset
(
request
):
messages
.
info
(
request
,
_
(
'All repositories have been reset.'
))
messages
.
success
(
request
,
_
(
'All repositories have been reset.'
))
return
redirect
(
obj
)
...
...
@@ -143,7 +143,7 @@ def reset_subproject(request, project, subproject):
obj
=
get_subproject
(
request
,
project
,
subproject
)
if
obj
.
do_reset
(
request
):
messages
.
info
(
request
,
_
(
'All repositories have been reset.'
))
messages
.
success
(
request
,
_
(
'All repositories have been reset.'
))
return
redirect
(
obj
)
...
...
@@ -154,6 +154,6 @@ def reset_translation(request, project, subproject, lang):
obj
=
get_translation
(
request
,
project
,
subproject
,
lang
)
if
obj
.
do_reset
(
request
):
messages
.
info
(
request
,
_
(
'All repositories have been reset.'
))
messages
.
success
(
request
,
_
(
'All repositories have been reset.'
))
return
redirect
(
obj
)
weblate/trans/views/lock.py
View file @
038d5c6d
...
...
@@ -36,7 +36,7 @@ def lock_translation(request, project, subproject, lang):
if
not
obj
.
is_user_locked
(
request
):
obj
.
create_lock
(
request
.
user
,
True
)
messages
.
info
(
request
,
_
(
'Translation is now locked for you.'
))
messages
.
success
(
request
,
_
(
'Translation is now locked for you.'
))
return
redirect
(
obj
)
...
...
@@ -58,7 +58,7 @@ def unlock_translation(request, project, subproject, lang):
if
not
obj
.
is_user_locked
(
request
):
obj
.
create_lock
(
None
)
messages
.
info
(
messages
.
success
(
request
,
_
(
'Translation is now open for translation updates.'
)
)
...
...
@@ -76,7 +76,7 @@ def lock_subproject(request, project, subproject):
obj
.
locked
=
True
obj
.
save
()
messages
.
info
(
messages
.
success
(
request
,
_
(
'Subproject is now locked for translation updates!'
)
)
...
...
@@ -92,7 +92,7 @@ def unlock_subproject(request, project, subproject):
obj
.
locked
=
False
obj
.
save
()
messages
.
info
(
messages
.
success
(
request
,
_
(
'Subproject is now open for translation updates.'
)
)
...
...
@@ -111,7 +111,7 @@ def lock_project(request, project):
subproject
.
locked
=
True
subproject
.
save
()
messages
.
info
(
messages
.
success
(
request
,
_
(
'All subprojects are now locked for translation updates!'
)
)
...
...
@@ -128,6 +128,9 @@ def unlock_project(request, project):
subproject
.
locked
=
False
subproject
.
save
()
messages
.
info
(
request
,
_
(
'Project is now open for translation updates.'
))
messages
.
success
(
request
,
_
(
'Project is now open for translation updates.'
)
)
return
redirect
(
obj
)
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