Commit b6e32023 authored by Nico Alt's avatar Nico Alt

Backport gettext.pgettext and drop Python 3.8 requirement

Fixes #68.
parent a9c883b4
Pipeline #4842 passed with stage
in 3 minutes and 30 seconds
# Copyright (c) 2020 Nico Alt
# SPDX-License-Identifier: AGPL-3.0-only
# License-Filename: LICENSE.md
import gettext
# pylint: disable=unused-argument
def pgettext(context, message):
"""
Backport of `gettext.pgettext` which is only available in Python 3.8+
"""
return gettext.gettext(message)
......@@ -4,11 +4,10 @@
import os
from gettext import pgettext as _t
from gi.repository import Gtk
from briar_gtk.define import APP, RESOURCES_DIR
from briar_gtk.utils import pgettext as _t
class AboutDialogWidget():
......
......@@ -6,10 +6,11 @@
# https://gitlab.gnome.org/GNOME/fractal/-/tags/4.2.2
from datetime import datetime
from gettext import pgettext as _t
from gi.repository import Gtk
from briar_gtk.utils import pgettext as _t
class PrivateMessageWidget(Gtk.ListBoxRow):
......
......@@ -8,7 +8,7 @@ Build-Depends:
gettext,
libhandy-1-dev,
meson,
python3-all (>= 3.8),
python3-all,
python3-gi
Standards-Version: 4.5.0
Rules-Requires-Root: no
......@@ -22,7 +22,7 @@ Architecture: all
Depends:
${misc:Depends},
gir1.2-handy-1 (>= 0.90.0),
python3 (>= 3.8),
python3,
python3-briar-wrapper(>= 0.0.4),
python3-gi
Description: Secure messaging, anywhere
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment