l10n org
This commit is contained in:
parent
e32e4d2ed2
commit
2313fb2dc6
7
app.py
7
app.py
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue