pika-installer-gtk4/data/scripts/locale-name.py
Ward from fusion-voyager-3 a722ef7c04 RR: Fix language row
2024-02-20 00:22:42 +03:00

13 lines
298 B
Python
Executable File

#! /usr/bin/python3
import gi
gi.require_version('GnomeDesktop', '4.0')
from gi.repository import GnomeDesktop
import sys
locale_name = GnomeDesktop.get_language_from_locale(sys.argv[1], None)
if locale_name is not None:
print(locale_name, end="")
else:
print("Unknown Language", end="")