more translations fixed
This commit is contained in:
parent
c886d5f28e
commit
d3eb37ebff
|
@ -0,0 +1,34 @@
|
|||
# Flask-Configuration - Key are generated through setup.sh
|
||||
SECRET_KEY=""
|
||||
REDEEM_SECRET=""
|
||||
WTF_CSRF_SECRET_KEY=""
|
||||
|
||||
# locales
|
||||
BABEL_DEFAULT_LOCALE="en"
|
||||
BABEL_SUPPORTED_LOCALES="de,en"
|
||||
BABEL_TRANSLATION_DIRECTORIES="translations"
|
||||
|
||||
# Timezone
|
||||
TZ=Europe/Berlin
|
||||
|
||||
# Security
|
||||
SESSION_COOKIE_SECURE="False"
|
||||
CSRF_ENABLED="True"
|
||||
# Account registration
|
||||
REGISTRATION_ENABLED="True"
|
||||
|
||||
# checking interval if keys have to be redeemed before a specific date
|
||||
CHECK_EXPIRING_KEYS_INTERVAL_HOURS=6
|
||||
|
||||
# Pushover
|
||||
PUSHOVER_APP_TOKEN=""
|
||||
PUSHOVER_USER_KEY=""
|
||||
|
||||
# Gotify
|
||||
GOTIFY_URL=""
|
||||
GOTIFY_TOKEN=""
|
||||
|
||||
# Matrix
|
||||
MATRIX_HOMESERVER=""
|
||||
MATRIX_ACCESS_TOKEN=""
|
||||
MATRIX_ROOM_ID=""
|
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 %}
|
||||
|
|
|
@ -23,4 +23,5 @@ RUN groupadd -g $GID appuser && useradd -u $UID -g $GID -m appuser && ch
|
|||
USER appuser
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["python", "app.py"]
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||
|
|
|
@ -59,7 +59,7 @@ load_dotenv(override=True)
|
|||
# Lade Umgebungsvariablen aus .env mit override
|
||||
load_dotenv(override=True)
|
||||
|
||||
# Konfiguration
|
||||
# App-Configuration
|
||||
app.config.update(
|
||||
SECRET_KEY=os.getenv('SECRET_KEY'),
|
||||
SQLALCHEMY_DATABASE_URI=('sqlite:////app/data/games.db'),
|
||||
|
@ -74,7 +74,7 @@ app.config.update(
|
|||
|
||||
interval_hours = int(os.getenv('CHECK_EXPIRING_KEYS_INTERVAL_HOURS', 12))
|
||||
|
||||
# Initialisierung
|
||||
# Initialisation
|
||||
db = SQLAlchemy(app, metadata=metadata)
|
||||
migrate = Migrate(app, db)
|
||||
login_manager = LoginManager(app)
|
||||
|
@ -98,7 +98,7 @@ def inject_template_vars():
|
|||
theme='dark' if request.cookies.get('dark_mode') == 'true' else 'light'
|
||||
)
|
||||
|
||||
# Datenbankmodelle
|
||||
# DB Models
|
||||
class User(db.Model, UserMixin):
|
||||
__tablename__ = 'users'
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
|
@ -429,7 +429,7 @@ def export_pdf():
|
|||
game.redeem_date.strftime('%d.%m.%y') if game.redeem_date else ''
|
||||
])
|
||||
|
||||
# Tabelle formatieren
|
||||
# Table format
|
||||
table = Table(data, colWidths=col_widths, repeatRows=1)
|
||||
table.setStyle(TableStyle([
|
||||
('FONTNAME', (0,0), (-1,0), 'Helvetica-Bold'),
|
||||
|
@ -653,7 +653,7 @@ def check_expiring_keys():
|
|||
send_notification(user, game)
|
||||
|
||||
|
||||
# Optional: Cleanup-Funktion für regelmäßiges Löschen abgelaufener Tokens
|
||||
# Optional: cleaning up old tokens
|
||||
def cleanup_expired_tokens():
|
||||
now = datetime.utcnow()
|
||||
expired = RedeemToken.query.filter(RedeemToken.expires < now).all()
|
||||
|
@ -662,13 +662,13 @@ def cleanup_expired_tokens():
|
|||
db.session.commit()
|
||||
|
||||
|
||||
# Scheduler initialisieren und starten
|
||||
# Scheduler start
|
||||
scheduler = BackgroundScheduler()
|
||||
scheduler.add_job(func=check_expiring_keys, trigger="interval", hours=interval_hours)
|
||||
scheduler.add_job(func=cleanup_expired_tokens, trigger="interval", hours=1)
|
||||
scheduler.start()
|
||||
|
||||
# Shutdown des Schedulers bei Beendigung der App
|
||||
# Shutdown of the Schedulers when stopping the app
|
||||
atexit.register(lambda: scheduler.shutdown())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -14,3 +14,4 @@ matrix-client
|
|||
reportlab
|
||||
requests
|
||||
pillow
|
||||
gunicorn
|
||||
|
|
|
@ -42,7 +42,7 @@ body {
|
|||
color: #ff6b6b;
|
||||
}
|
||||
|
||||
/* Progressbar-Animationen */
|
||||
/* Progressbar-Animations */
|
||||
#expiry-bar {
|
||||
transition: width 1s linear, background-color 0.5s ease;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="col-md-6">
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body text-center">
|
||||
<img src="{{ url_for('static', filename='logo.png') }}" alt="Logo" width="311" height="240" class="mb-4" style="object-fit:contain;">
|
||||
<img src="{{ url_for('static', filename='logo.png') }}" alt="Logo" width="266" height="206" class="mb-4" style="object-fit:contain;">
|
||||
<h2 class="card-title mb-4">{{ _('Login') }}</h2>
|
||||
<form method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
|
|
|
@ -84,7 +84,7 @@ function updateCountdown() {
|
|||
updateProgressBar(percent);
|
||||
}
|
||||
|
||||
// Initialisierung
|
||||
// run countdown
|
||||
updateCountdown();
|
||||
const timer = setInterval(updateCountdown, 1000);
|
||||
</script>
|
||||
|
|
|
@ -8,10 +8,10 @@ declare -A locales=(
|
|||
["en"]="en"
|
||||
)
|
||||
|
||||
# POT-Datei erstellen
|
||||
# create POT-file
|
||||
docker-compose exec steam-manager pybabel extract -F babel.cfg -o translations/messages.pot .
|
||||
|
||||
# Für jede Sprache prüfen und ggf. initialisieren
|
||||
# Check for each language and initialize if necessary
|
||||
for lang in "${!locales[@]}"; do
|
||||
if [ ! -f "translations/${locales[$lang]}/LC_MESSAGES/messages.po" ]; then
|
||||
docker-compose exec steam-manager pybabel init \
|
||||
|
@ -21,8 +21,8 @@ for lang in "${!locales[@]}"; do
|
|||
fi
|
||||
done
|
||||
|
||||
# Übersetzungen aktualisieren und kompilieren
|
||||
# Update and compile translations
|
||||
docker-compose exec steam-manager pybabel update -i translations/messages.pot -d translations
|
||||
docker-compose exec steam-manager pybabel compile -d translations
|
||||
|
||||
echo "✅ Übersetzungen aktualisiert!"
|
||||
echo "✅ Translations updated!"
|
||||
|
|
Binary file not shown.
|
@ -7,8 +7,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2025-04-26 11:13+0000\n"
|
||||
"PO-Revision-Date: 2025-04-26 11:13+0000\n"
|
||||
"POT-Creation-Date: 2025-04-29 13:06+0000\n"
|
||||
"PO-Revision-Date: 2025-04-29 13:06+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: de\n"
|
||||
"Language-Team: de <LL@li.org>\n"
|
||||
|
@ -20,83 +20,83 @@ msgstr ""
|
|||
|
||||
#: app.py:187
|
||||
msgid "Invalid credentials"
|
||||
msgstr ""
|
||||
msgstr "Ungültige Anmeldedaten"
|
||||
|
||||
#: app.py:193
|
||||
msgid "Registrierungen sind deaktiviert"
|
||||
msgstr ""
|
||||
msgid "No new registrations. They are deactivated!"
|
||||
msgstr "Upps. Keine neuen Registrierungen, sorry!"
|
||||
|
||||
#: app.py:201
|
||||
msgid "Username already exists"
|
||||
msgstr ""
|
||||
msgstr "Benutzername existiert bereits"
|
||||
|
||||
#: app.py:227
|
||||
msgid "Aktuelles Passwort ist falsch"
|
||||
msgstr ""
|
||||
msgid "Current passwort is wrong"
|
||||
msgstr "Das aktuelle Passwort ist falsch"
|
||||
|
||||
#: app.py:231
|
||||
msgid "Neue Passwörter stimmen nicht überein"
|
||||
msgstr ""
|
||||
msgid "New Passwords are not matching"
|
||||
msgstr "Die neuen Passwörter stimmen nicht überein"
|
||||
|
||||
#: app.py:236
|
||||
msgid "Passwort erfolgreich geändert"
|
||||
msgstr ""
|
||||
msgid "Password changed successfully"
|
||||
msgstr "Passwort erfolgreich geändert"
|
||||
|
||||
#: app.py:266
|
||||
msgid "Game added successfully!"
|
||||
msgstr ""
|
||||
msgstr "Spiel erfolgreich hinzugefügt!"
|
||||
|
||||
#: app.py:271
|
||||
msgid "Steam Key already exists!"
|
||||
msgstr ""
|
||||
msgstr "Game-Key existiert bereits!"
|
||||
|
||||
#: app.py:274 app.py:318
|
||||
msgid "Error: "
|
||||
msgstr ""
|
||||
msgstr "Fehler: "
|
||||
|
||||
#: app.py:313
|
||||
msgid "Changes saved!"
|
||||
msgstr ""
|
||||
msgstr "Änderungen gespeichert!"
|
||||
|
||||
#: app.py:401
|
||||
msgid "Game List (without Keys)"
|
||||
msgstr ""
|
||||
msgstr "Spieleliste (ohne Keys)"
|
||||
|
||||
#: app.py:494
|
||||
#, python-format
|
||||
msgid "%(new)d neue Spiele importiert, %(dup)d Duplikate übersprungen"
|
||||
msgstr ""
|
||||
msgid "%(new)d new games imported, %(dup)d skipped duplicates"
|
||||
msgstr "%(new)d neue Spiele importiert, %(dup)d Duplikate übersprungen"
|
||||
|
||||
#: app.py:498
|
||||
#, python-format
|
||||
msgid "Importfehler: %(error)s"
|
||||
msgstr ""
|
||||
msgid "Import error: %(error)s"
|
||||
msgstr "Importfehler: %(error)s"
|
||||
|
||||
#: app.py:502
|
||||
msgid "Bitte eine gültige CSV-Datei hochladen."
|
||||
msgstr ""
|
||||
msgid "Please upload a valid CSV file."
|
||||
msgstr "Bitte lade eine gültige CSV-Datei hoch."
|
||||
|
||||
#: templates/add_game.html:4 templates/index.html:9
|
||||
msgid "Add New Game"
|
||||
msgstr ""
|
||||
msgstr "Neues Spiel hinzufügen"
|
||||
|
||||
#: templates/add_game.html:9 templates/edit_game.html:9 templates/index.html:19
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
msgstr "Name"
|
||||
|
||||
#: templates/add_game.html:13 templates/edit_game.html:13
|
||||
msgid "Game Key"
|
||||
msgstr ""
|
||||
msgstr "Spiel-Key"
|
||||
|
||||
#: templates/add_game.html:17 templates/edit_game.html:21
|
||||
#: templates/index.html:21
|
||||
msgid "Status"
|
||||
msgstr ""
|
||||
msgstr "Status"
|
||||
|
||||
#: templates/add_game.html:19 templates/edit_game.html:23
|
||||
#: templates/index.html:41
|
||||
msgid "Not redeemed"
|
||||
msgstr ""
|
||||
msgstr "Nicht eingelöst"
|
||||
|
||||
#: templates/add_game.html:20 templates/edit_game.html:24
|
||||
#: templates/index.html:43
|
||||
|
@ -106,182 +106,175 @@ msgstr ""
|
|||
#: templates/add_game.html:21 templates/edit_game.html:25
|
||||
#: templates/index.html:45
|
||||
msgid "Redeemed"
|
||||
msgstr ""
|
||||
msgstr "Verschenkt"
|
||||
|
||||
#: templates/add_game.html:25 templates/edit_game.html:29
|
||||
#: templates/index.html:23
|
||||
msgid "Redeem by"
|
||||
msgstr ""
|
||||
msgstr "Einzulösen vor"
|
||||
|
||||
#: templates/add_game.html:29 templates/edit_game.html:33
|
||||
msgid "Recipient"
|
||||
msgstr ""
|
||||
msgstr "Empfänger"
|
||||
|
||||
#: templates/add_game.html:33 templates/edit_game.html:37
|
||||
msgid "Shop URL"
|
||||
msgstr ""
|
||||
msgstr "Shop-URL"
|
||||
|
||||
#: templates/add_game.html:37 templates/edit_game.html:41
|
||||
msgid "Notes"
|
||||
msgstr ""
|
||||
msgstr "Notizen"
|
||||
|
||||
#: templates/add_game.html:41 templates/edit_game.html:60
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
msgstr "Speichern"
|
||||
|
||||
#: templates/add_game.html:42 templates/edit_game.html:61
|
||||
#: templates/import.html:12
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
msgstr "Abbrechen"
|
||||
|
||||
#: templates/base.html:7
|
||||
msgid "Game Key Manager"
|
||||
msgstr ""
|
||||
msgstr "Game Key Manager"
|
||||
|
||||
#: templates/base.html:23
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
msgstr "Suche"
|
||||
|
||||
#: templates/base.html:31
|
||||
msgid "Dark Mode"
|
||||
msgstr ""
|
||||
msgstr "Dark Mode"
|
||||
|
||||
#: templates/base.html:44
|
||||
msgid "Passwort"
|
||||
msgstr ""
|
||||
#: templates/base.html:44 templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr "Passwort"
|
||||
|
||||
#: templates/base.html:47
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
msgstr "Abmelden"
|
||||
|
||||
#: templates/change_password.html:4 templates/change_password.html:19
|
||||
msgid "Change Password"
|
||||
msgstr ""
|
||||
msgstr "Passwort ändern"
|
||||
|
||||
#: templates/change_password.html:8
|
||||
msgid "Current Password"
|
||||
msgstr ""
|
||||
msgstr "Aktuelles Passwort"
|
||||
|
||||
#: templates/change_password.html:12
|
||||
msgid "New Password"
|
||||
msgstr ""
|
||||
msgstr "Neues Passwort"
|
||||
|
||||
#: templates/change_password.html:16
|
||||
msgid "Confirm New Password"
|
||||
msgstr ""
|
||||
msgstr "Neues Passwort bestätigen"
|
||||
|
||||
#: templates/edit_game.html:4
|
||||
msgid "Edit Game"
|
||||
msgstr ""
|
||||
msgstr "Spiel bearbeiten"
|
||||
|
||||
#: templates/edit_game.html:17
|
||||
msgid "Steam AppID (optional)"
|
||||
msgstr ""
|
||||
msgstr "Steam AppID (optional)"
|
||||
|
||||
#: templates/edit_game.html:47
|
||||
msgid "Active Redeem Link"
|
||||
msgstr ""
|
||||
msgstr "Aktiver Einlöse-Link"
|
||||
|
||||
#: templates/edit_game.html:54
|
||||
msgid "Expires at"
|
||||
msgstr ""
|
||||
msgstr "Läuft ab"
|
||||
|
||||
#: templates/import.html:4
|
||||
msgid "Import Games"
|
||||
msgstr ""
|
||||
msgstr "Spiele importieren"
|
||||
|
||||
#: templates/import.html:8
|
||||
msgid "CSV-Datei auswählen"
|
||||
msgstr ""
|
||||
msgid "Select CSV file"
|
||||
msgstr "CSV-Datei auswählen"
|
||||
|
||||
#: templates/import.html:11
|
||||
msgid "Importieren"
|
||||
msgstr ""
|
||||
|
||||
#: templates/import.html:12
|
||||
msgid "Abbrechen"
|
||||
msgstr ""
|
||||
msgid "Import"
|
||||
msgstr "Importieren"
|
||||
|
||||
#: templates/index.html:4
|
||||
msgid "My Games"
|
||||
msgstr ""
|
||||
msgstr "Meine Spiele"
|
||||
|
||||
#: templates/index.html:6
|
||||
msgid "Export CSV"
|
||||
msgstr ""
|
||||
msgstr "CSV exportieren"
|
||||
|
||||
#: templates/index.html:8
|
||||
msgid "Import CSV"
|
||||
msgstr ""
|
||||
msgstr "CSV importieren"
|
||||
|
||||
#: templates/index.html:18
|
||||
msgid "Cover"
|
||||
msgstr ""
|
||||
msgstr "Cover"
|
||||
|
||||
#: templates/index.html:20
|
||||
msgid "Key"
|
||||
msgstr ""
|
||||
msgstr "Key"
|
||||
|
||||
#: templates/index.html:22
|
||||
msgid "Created"
|
||||
msgstr ""
|
||||
msgstr "Erstellt"
|
||||
|
||||
#: templates/index.html:24 templates/index.html:56
|
||||
msgid "Shop"
|
||||
msgstr ""
|
||||
msgstr "Shop"
|
||||
|
||||
#: templates/index.html:25
|
||||
msgid "Actions"
|
||||
msgstr ""
|
||||
msgstr "Aktionen"
|
||||
|
||||
#: templates/index.html:63
|
||||
msgid "Generate redeem link"
|
||||
msgstr ""
|
||||
msgstr "Geschenk-Link generieren"
|
||||
|
||||
#: templates/index.html:70
|
||||
msgid "Really delete?"
|
||||
msgstr ""
|
||||
msgstr "Wirklich löschen?"
|
||||
|
||||
#: templates/index.html:96
|
||||
msgid "Redeem link copied to clipboard!"
|
||||
msgstr ""
|
||||
msgstr "Geschenk-Link in die Zwischenablage kopiert!"
|
||||
|
||||
#: templates/index.html:100
|
||||
msgid "Error generating link"
|
||||
msgstr ""
|
||||
msgstr "Fehler beim Generieren des Links"
|
||||
|
||||
#: templates/index.html:106
|
||||
msgid "No games yet"
|
||||
msgstr ""
|
||||
msgstr "Der Kornspeicher ist leer, Sire!"
|
||||
|
||||
#: templates/login.html:8 templates/login.html:19
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
msgstr "Anmelden"
|
||||
|
||||
#: templates/login.html:12 templates/register.html:11
|
||||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
msgstr "Benutzername"
|
||||
|
||||
#: templates/login.html:22
|
||||
msgid "No account yet? Register"
|
||||
msgstr ""
|
||||
msgstr "Noch kein Konto? Registrieren"
|
||||
|
||||
#: templates/redeem.html:16
|
||||
msgid "Your Key:"
|
||||
msgstr ""
|
||||
msgstr "Dein Key:"
|
||||
|
||||
#: templates/redeem.html:22
|
||||
msgid "Redeem now on"
|
||||
msgstr ""
|
||||
msgstr "Jetzt einlösen auf"
|
||||
|
||||
#: templates/redeem.html:26
|
||||
msgid "This page will expire in"
|
||||
msgstr ""
|
||||
msgstr "Diese Seite läuft ab in"
|
||||
|
||||
#: templates/register.html:7 templates/register.html:18
|
||||
msgid "Register"
|
||||
msgstr ""
|
||||
msgstr "Registrieren"
|
||||
|
||||
|
|
Binary file not shown.
|
@ -7,8 +7,8 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2025-04-26 11:13+0000\n"
|
||||
"PO-Revision-Date: 2025-04-26 11:13+0000\n"
|
||||
"POT-Creation-Date: 2025-04-29 13:06+0000\n"
|
||||
"PO-Revision-Date: 2025-04-29 13:06+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language: en\n"
|
||||
"Language-Team: en <LL@li.org>\n"
|
||||
|
@ -23,7 +23,7 @@ msgid "Invalid credentials"
|
|||
msgstr ""
|
||||
|
||||
#: app.py:193
|
||||
msgid "Registrierungen sind deaktiviert"
|
||||
msgid "No new registrations. They are deactivated!"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:201
|
||||
|
@ -31,15 +31,15 @@ msgid "Username already exists"
|
|||
msgstr ""
|
||||
|
||||
#: app.py:227
|
||||
msgid "Aktuelles Passwort ist falsch"
|
||||
msgid "Current passwort is wrong"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:231
|
||||
msgid "Neue Passwörter stimmen nicht überein"
|
||||
msgid "New Passwords are not matching"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:236
|
||||
msgid "Passwort erfolgreich geändert"
|
||||
msgid "Password changed successfully"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:266
|
||||
|
@ -64,16 +64,16 @@ msgstr ""
|
|||
|
||||
#: app.py:494
|
||||
#, python-format
|
||||
msgid "%(new)d neue Spiele importiert, %(dup)d Duplikate übersprungen"
|
||||
msgid "%(new)d new games imported, %(dup)d skipped duplicates"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:498
|
||||
#, python-format
|
||||
msgid "Importfehler: %(error)s"
|
||||
msgid "Import error: %(error)s"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:502
|
||||
msgid "Bitte eine gültige CSV-Datei hochladen."
|
||||
msgid "Please upload a valid CSV file."
|
||||
msgstr ""
|
||||
|
||||
#: templates/add_game.html:4 templates/index.html:9
|
||||
|
@ -130,6 +130,7 @@ msgid "Save"
|
|||
msgstr ""
|
||||
|
||||
#: templates/add_game.html:42 templates/edit_game.html:61
|
||||
#: templates/import.html:12
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
|
@ -145,8 +146,8 @@ msgstr ""
|
|||
msgid "Dark Mode"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:44
|
||||
msgid "Passwort"
|
||||
#: templates/base.html:44 templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:47
|
||||
|
@ -190,15 +191,11 @@ msgid "Import Games"
|
|||
msgstr ""
|
||||
|
||||
#: templates/import.html:8
|
||||
msgid "CSV-Datei auswählen"
|
||||
msgid "Select CSV file"
|
||||
msgstr ""
|
||||
|
||||
#: templates/import.html:11
|
||||
msgid "Importieren"
|
||||
msgstr ""
|
||||
|
||||
#: templates/import.html:12
|
||||
msgid "Abbrechen"
|
||||
msgid "Import"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:4
|
||||
|
@ -261,10 +258,6 @@ msgstr ""
|
|||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: templates/login.html:22
|
||||
msgid "No account yet? Register"
|
||||
msgstr ""
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2025-04-26 11:13+0000\n"
|
||||
"POT-Creation-Date: 2025-04-29 13:06+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -22,7 +22,7 @@ msgid "Invalid credentials"
|
|||
msgstr ""
|
||||
|
||||
#: app.py:193
|
||||
msgid "Registrierungen sind deaktiviert"
|
||||
msgid "No new registrations. They are deactivated!"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:201
|
||||
|
@ -30,15 +30,15 @@ msgid "Username already exists"
|
|||
msgstr ""
|
||||
|
||||
#: app.py:227
|
||||
msgid "Aktuelles Passwort ist falsch"
|
||||
msgid "Current passwort is wrong"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:231
|
||||
msgid "Neue Passwörter stimmen nicht überein"
|
||||
msgid "New Passwords are not matching"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:236
|
||||
msgid "Passwort erfolgreich geändert"
|
||||
msgid "Password changed successfully"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:266
|
||||
|
@ -63,16 +63,16 @@ msgstr ""
|
|||
|
||||
#: app.py:494
|
||||
#, python-format
|
||||
msgid "%(new)d neue Spiele importiert, %(dup)d Duplikate übersprungen"
|
||||
msgid "%(new)d new games imported, %(dup)d skipped duplicates"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:498
|
||||
#, python-format
|
||||
msgid "Importfehler: %(error)s"
|
||||
msgid "Import error: %(error)s"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:502
|
||||
msgid "Bitte eine gültige CSV-Datei hochladen."
|
||||
msgid "Please upload a valid CSV file."
|
||||
msgstr ""
|
||||
|
||||
#: templates/add_game.html:4 templates/index.html:9
|
||||
|
@ -129,6 +129,7 @@ msgid "Save"
|
|||
msgstr ""
|
||||
|
||||
#: templates/add_game.html:42 templates/edit_game.html:61
|
||||
#: templates/import.html:12
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
|
@ -144,8 +145,8 @@ msgstr ""
|
|||
msgid "Dark Mode"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:44
|
||||
msgid "Passwort"
|
||||
#: templates/base.html:44 templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:47
|
||||
|
@ -189,15 +190,11 @@ msgid "Import Games"
|
|||
msgstr ""
|
||||
|
||||
#: templates/import.html:8
|
||||
msgid "CSV-Datei auswählen"
|
||||
msgid "Select CSV file"
|
||||
msgstr ""
|
||||
|
||||
#: templates/import.html:11
|
||||
msgid "Importieren"
|
||||
msgstr ""
|
||||
|
||||
#: templates/import.html:12
|
||||
msgid "Abbrechen"
|
||||
msgid "Import"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:4
|
||||
|
@ -260,10 +257,6 @@ msgstr ""
|
|||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: templates/login.html:16 templates/register.html:15
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: templates/login.html:22
|
||||
msgid "No account yet? Register"
|
||||
msgstr ""
|
||||
|
|
10
upgrade.sh
10
upgrade.sh
|
@ -1,22 +1,22 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Setze das Arbeitsverzeichnis auf das Projektverzeichnis
|
||||
# Set the working directory to the project directory
|
||||
cd "$(dirname "$0")/steam-gift-manager"
|
||||
|
||||
# Setze FLASK_APP, falls nötig
|
||||
export FLASK_APP=app.py
|
||||
|
||||
# Initialisiere migrations, falls noch nicht vorhanden
|
||||
# Initialize migrations, if not yet available
|
||||
if [ ! -d migrations ]; then
|
||||
echo "Starting Flask-Migrate..."
|
||||
docker-compose exec steam-manager flask db init
|
||||
fi
|
||||
|
||||
# Erzeuge Migration (nur wenn sich Modelle geändert haben)
|
||||
# Create migration (only if models have changed)
|
||||
docker-compose exec steam-manager flask db migrate -m "Automatic Migration"
|
||||
|
||||
# Wende Migration an
|
||||
# Apply migration
|
||||
docker-compose exec steam-manager flask db upgrade
|
||||
|
||||
echo "✅ Database-Migration abgeschlossen!"
|
||||
echo "✅ Database migration completed!"
|
||||
|
|
Loading…
Reference in New Issue