Authenticator/twofactorauth.in
Bilal Elmoussaoui f45d50c5a6 add i18n
2016-05-29 03:55:37 +02:00

41 lines
1.3 KiB
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Copyright © 2016 Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>
This file is part of TwoFactorAuth.
TwoFactorAuth is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
TwoFactorAuth is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with TwoFactorAuth. If not, see <http://www.gnu.org/licenses/>.
"""
import sys
sys.path.insert(1, '@pyexecdir@')
sys.path.insert(1, '@pythondir@')
from TwoFactorAuth import application
import locale
import gettext
if __name__ == "__main__":
locale.bindtextdomain('TwoFactorAuth', "@localedir@")
locale.textdomain('TwoFactorAuth')
gettext.bindtextdomain('TwoFactorAuth', "@localedir@")
gettext.textdomain('TwoFactorAuth')
app = application.Application(package="@PACKAGE@",
version="@VERSION@",
pkgdatadir="@pkgdatadir@")
exit_status = app.run(sys.argv)
sys.exit(exit_status)