po: update pot

This commit is contained in:
0xMRTT 2023-05-01 01:51:17 +02:00
parent 65166a967e
commit 26b45cdd0d
Signed by: 0xmrtt
GPG key ID: 19C1449A774028BD
5 changed files with 28 additions and 12 deletions

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-01 01:45+0200\n"
"POT-Creation-Date: 2023-05-01 01:51+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -79,7 +79,7 @@ msgstr ""
msgid "Main Menu"
msgstr ""
#: data/ui/window.blp:36
#: data/ui/window.blp:36 src/provider/base.py:43
msgid "No network connection"
msgstr ""
@ -126,3 +126,19 @@ msgstr ""
#: data/ui/window.blp:225
msgid "About Bavarder"
msgstr ""
#: src/main.py:156
msgid "Special thanks to"
msgstr ""
#: src/provider/base.py:36
msgid "No API key provided, you can provide one in settings"
msgstr ""
#: src/provider/base.py:38
msgid "Open settings"
msgstr ""
#: src/provider/catgpt.py:7 src/provider/catgpt.py:54
msgid "Cat GPT"
msgstr ""

View file

@ -7,3 +7,5 @@ data/ui/window.blp
src/main.py
src/preferences.py
src/window.py
src/provider/base.py
src/provider/catgpt.py

View file

@ -63,7 +63,6 @@ class BavarderApplication(Adw.Application):
self.enabled_providers = set(self.settings.get_strv("enabled-providers"))
self.latest_provider = self.settings.get_string("latest-provider")
self.latest_provider = "huggingchat"
# GStreamer playbin object and related setup
Gst.init(None)
@ -154,18 +153,15 @@ class BavarderApplication(Adw.Application):
)
about.add_acknowledgement_section(
"Special thanks to",
_("Special thanks to"),
[
"Telegraph https://apps.gnome.org/app/io.github.fkinoshita.Telegraph",
"BAIChat https://chatbot.theb.ai/",
],
)
about.present()
def on_preferences_action(self, widget, *args, **kwargs):
"""Callback for the app.preferences action."""
print("app.preferences action activated")
preferences = Preferences(
application=self, transient_for=self.props.active_window
)

View file

@ -1,3 +1,5 @@
from gettext import gettext as _
class BavarderProvider:
name = None
slug = None
@ -31,14 +33,14 @@ class BavarderProvider:
self.win.banner.props.title = title
else:
self.win.banner.props.title = (
"No API key provided, you can provide one in settings"
_("No API key provided, you can provide one in settings")
)
self.win.banner.props.button_label = "Open settings"
self.win.banner.props.button_label = _("Open settings")
self.win.banner.connect("button-clicked", self.app.on_preferences_action)
self.win.banner.set_revealed(True)
def no_connection(self):
self.win.banner.props.title = "No network connection"
self.win.banner.props.title = _("No network connection")
self.win.banner.props.button_label = ""
self.win.banner.set_revealed(True)

View file

@ -4,7 +4,7 @@ from random import choice, randint
class CatGPTProvider(BavarderProvider):
name = "CatGPT"
name = _("Cat GPT")
slug = "catgpt"
def __init__(self, win, app, *args, **kwargs):
@ -51,7 +51,7 @@ class CatGPTProvider(BavarderProvider):
def about(self):
about = Adw.AboutWindow(
transient_for=self.props.active_window,
application_name="Cat GPT",
application_name=_("Cat GPT"),
developer_name="0xMRTT",
developers=["0xMRTT https://github.com/0xMRTT"],
license_type=Gtk.License.GPL_3_0,