This commit is contained in:
ABelliqueux 2022-11-03 18:12:30 +01:00
parent e32e4d2ed2
commit 2313fb2dc6
1 changed files with 3 additions and 4 deletions

7
app.py
View File

@ -6,14 +6,13 @@ import http.client, ssl
import xml.etree.ElementTree as ET
from flask import Flask, render_template, request, make_response, jsonify
from waitress import serve
import gettext
app = Flask(__name__)
# ~ _ = gettext.gettext
# l10n
import gettext
LOCALE = os.getenv('LANG', 'en')
_ = gettext.translation('template', localedir='locales', languages=[LOCALE]).gettext
queue_msgs = [ _("No items"),