more translations fixed
This commit is contained in:
parent
c886d5f28e
commit
d3eb37ebff
15 changed files with 170 additions and 155 deletions
22
setup.sh
22
setup.sh
|
@ -351,7 +351,7 @@ def login():
|
|||
@app.route('/register', methods=['GET', 'POST'])
|
||||
def register():
|
||||
if not app.config['REGISTRATION_ENABLED']:
|
||||
flash(_('Registrierungen sind deaktiviert'), 'danger')
|
||||
flash(_('No new registrations. They are deactivated!'), 'danger')
|
||||
return redirect(url_for('login'))
|
||||
|
||||
if request.method == 'POST':
|
||||
|
@ -385,16 +385,16 @@ def change_password():
|
|||
confirm_password = request.form['confirm_password']
|
||||
|
||||
if not check_password_hash(current_user.password, current_password):
|
||||
flash(_('Aktuelles Passwort ist falsch'), 'danger')
|
||||
flash(_('Current passwort is wrong'), 'danger')
|
||||
return redirect(url_for('change_password'))
|
||||
|
||||
if new_password != confirm_password:
|
||||
flash(_('Neue Passwörter stimmen nicht überein'), 'danger')
|
||||
flash(_('New Passwords are not matching'), 'danger')
|
||||
return redirect(url_for('change_password'))
|
||||
|
||||
current_user.password = generate_password_hash(new_password)
|
||||
db.session.commit()
|
||||
flash(_('Passwort erfolgreich geändert'), 'success')
|
||||
flash(_('Password changed successfully'), 'success')
|
||||
return redirect(url_for('index'))
|
||||
|
||||
return render_template('change_password.html')
|
||||
|
@ -652,15 +652,15 @@ def import_games():
|
|||
|
||||
db.session.commit()
|
||||
|
||||
flash(_('%(new)d neue Spiele importiert, %(dup)d Duplikate übersprungen', new=new_games, dup=duplicates), 'success')
|
||||
flash(_('%(new)d new games imported, %(dup)d skipped duplicates', new=new_games, dup=duplicates), 'success')
|
||||
|
||||
except Exception as e:
|
||||
db.session.rollback()
|
||||
flash(_('Importfehler: %(error)s', error=str(e)), 'danger')
|
||||
flash(_('Import error: %(error)s', error=str(e)), 'danger')
|
||||
|
||||
return redirect(url_for('index'))
|
||||
|
||||
flash(_('Bitte eine gültige CSV-Datei hochladen.'), 'danger')
|
||||
flash(_('Please upload a valid CSV file.'), 'danger')
|
||||
|
||||
return render_template('import.html')
|
||||
|
||||
|
@ -1015,7 +1015,7 @@ cat <<HTML_END > templates/base.html
|
|||
</div>
|
||||
{% if current_user.is_authenticated %}
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('change_password') }}">🔒 {{ _('Passwort') }}</a>
|
||||
<a class="nav-link" href="{{ url_for('change_password') }}">🔒 {{ _('Password') }}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">🚪 {{ _('Logout') }}</a>
|
||||
|
@ -1384,11 +1384,11 @@ cat <<HTML_END > templates/import.html
|
|||
<form method="POST" enctype="multipart/form-data">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">{{ _('CSV-Datei auswählen') }}</label>
|
||||
<label class="form-label">{{ _('Select CSV file') }}</label>
|
||||
<input type="file" name="file" class="form-control" accept=".csv" required>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success">{{ _('Importieren') }}</button>
|
||||
<a href="{{ url_for('index') }}" class="btn btn-outline-secondary">{{ _('Abbrechen') }}</a>
|
||||
<button type="submit" class="btn btn-success">{{ _('Import') }}</button>
|
||||
<a href="{{ url_for('index') }}" class="btn btn-outline-secondary">{{ _('Cancel') }}</a>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue