mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
81 lines
2.1 KiB
Diff
81 lines
2.1 KiB
Diff
use gettext instead of locale
|
|
|
|
---
|
|
bin/mugshot | 4 ++--
|
|
mugshot/CameraMugshotDialog.py | 2 +-
|
|
mugshot/MugshotWindow.py | 2 +-
|
|
mugshot/__init__.py | 2 +-
|
|
mugshot_lib/SudoDialog.py | 2 +-
|
|
5 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/bin/mugshot b/bin/mugshot
|
|
index a7d674f..ec8ebeb 100755
|
|
--- a/bin/mugshot
|
|
+++ b/bin/mugshot
|
|
@@ -16,8 +16,8 @@
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-import locale
|
|
-locale.textdomain('mugshot')
|
|
+import gettext
|
|
+gettext.textdomain('mugshot')
|
|
|
|
import sys
|
|
import os
|
|
diff --git a/mugshot/CameraMugshotDialog.py b/mugshot/CameraMugshotDialog.py
|
|
index 5c86db2..534bb0f 100644
|
|
--- a/mugshot/CameraMugshotDialog.py
|
|
+++ b/mugshot/CameraMugshotDialog.py
|
|
@@ -22,7 +22,7 @@
|
|
import os
|
|
import logging
|
|
|
|
-from locale import gettext as _
|
|
+from gettext import gettext as _
|
|
|
|
import gi
|
|
gi.require_version('Gst', '1.0')
|
|
diff --git a/mugshot/MugshotWindow.py b/mugshot/MugshotWindow.py
|
|
index 7e4bd61..98b52fa 100644
|
|
--- a/mugshot/MugshotWindow.py
|
|
+++ b/mugshot/MugshotWindow.py
|
|
@@ -16,7 +16,7 @@
|
|
# You should have received a copy of the GNU General Public License along
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-from locale import gettext as _
|
|
+from gettext import gettext as _
|
|
|
|
import logging
|
|
import os
|
|
diff --git a/mugshot/__init__.py b/mugshot/__init__.py
|
|
index d2060fb..96942c1 100644
|
|
--- a/mugshot/__init__.py
|
|
+++ b/mugshot/__init__.py
|
|
@@ -19,7 +19,7 @@
|
|
import argparse
|
|
import signal
|
|
|
|
-from locale import gettext as _
|
|
+from gettext import gettext as _
|
|
|
|
from gi.repository import Gtk # pylint: disable=E0611
|
|
|
|
diff --git a/mugshot_lib/SudoDialog.py b/mugshot_lib/SudoDialog.py
|
|
index d5656ab..7ab39fd 100644
|
|
--- a/mugshot_lib/SudoDialog.py
|
|
+++ b/mugshot_lib/SudoDialog.py
|
|
@@ -17,7 +17,7 @@
|
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
import os
|
|
-from locale import gettext as _
|
|
+from gettext import gettext as _
|
|
|
|
from gi.repository import Gtk, GdkPixbuf
|
|
|
|
--
|
|
2.33.0
|
|
|