translate auth strings
This commit is contained in:
parent
5a88062c04
commit
a597fb439a
1 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ def register():
|
|||
else:
|
||||
newip = request.remote_addr
|
||||
send_email(current_app.config['MAIL_USERNAME'], user.email + ' registered!', 'auth/email/adm_regnotify', user=user, ipaddr=newip )
|
||||
flash('Благодарим за регистрацията! Моля проверете вашият email за потвърждение')
|
||||
flash('Thank you for the registration! We have send you an activation email')
|
||||
return redirect(url_for('auth.login'))
|
||||
return render_template('auth/register.html', page=page, form=form)
|
||||
|
||||
|
@ -167,9 +167,9 @@ def confirm(token):
|
|||
if current_user.confirmed:
|
||||
return redirect(url_for('main.index'))
|
||||
if current_user.confirm(token):
|
||||
flash('Вашият акаунт е потвърден. Благодаря!')
|
||||
flash('Your account is confirmed!')
|
||||
else:
|
||||
flash('Времето за потвърждение на вашият код изтече.')
|
||||
flash('Confirmation time expired!')
|
||||
return redirect(url_for('main.index'))
|
||||
|
||||
@auth.route('/confirm')
|
||||
|
|
Loading…
Reference in a new issue