1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-02-13 17:57:35 +03:00

gpupdate localized

This commit is contained in:
Игорь Чудов 2020-08-03 21:28:30 +04:00
parent ffbef2d18f
commit 0bc7144da9
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -18,7 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import argparse import argparse
import locale
import gettext
import subprocess import subprocess
import os import os
import sys import sys
@ -130,6 +131,9 @@ def runner_factory(args, target):
def main(): def main():
args = parse_cli_arguments() args = parse_cli_arguments()
locale.bindtextdomain('gpoa', '/usr/lib/python3/site-packages/gpoa/locale')
gettext.bindtextdomain('gpoa', '/usr/lib/python3/site-packages/gpoa/locale')
gettext.textdomain('gpoa')
set_loglevel(0) set_loglevel(0)
gpo_appliers = runner_factory(args, process_target(args.target)) gpo_appliers = runner_factory(args, process_target(args.target))