aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-16 19:14:20 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-16 19:14:20 +0200
commit1bb5d297d7235cc8ff18fa41d91b59a35d81c11e (patch)
tree310ee96f835cef448c2dab0b5abbcd0d45209616 /pyaggr3g470r/views.py
parentUpdated test of the nickname. (diff)
downloadnewspipe-1bb5d297d7235cc8ff18fa41d91b59a35d81c11e.tar.gz
newspipe-1bb5d297d7235cc8ff18fa41d91b59a35d81c11e.tar.bz2
newspipe-1bb5d297d7235cc8ff18fa41d91b59a35d81c11e.zip
Updated translations.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index abc7a68a..a9c588a2 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -792,16 +792,16 @@ def disable_user(user_id=None):
try:
emails.new_account_activation(user)
user.activation_key = ""
+ flash(gettext('Account of the user') + ' ' + user.nickname + ' ' + gettext('successfully activated.'), 'success')
except Exception as e:
flash(gettext('Problem while sending activation email') + ': ' + str(e), 'danger')
- flash('Account of the user "' + user.nickname + '" successfully activated.', 'success')
else:
import random, base64, hashlib
user.activation_key = base64.b64encode(hashlib.sha512( str(random.getrandbits(256)) ).digest(),
random.choice(['rA','aZ','gQ','hH','hG','aR','DD'])).rstrip('==')
- flash('Account of the user "' + user.nickname + '" successfully disabled.', 'success')
+ flash(gettext('Account of the user') + ' ' + user.nickname + ' ' + gettext('successfully disabled.'), 'success')
db.session.commit()
else:
- flash('This user does not exist.', 'danger')
+ flash(gettext('This user does not exist.'), 'danger')
return redirect(redirect_url())
bgstack15