Fix translations
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
Some checks failed
Gitea/kapitanbooru-uploader/pipeline/head There was a failure building this commit
This commit is contained in:
@ -1,16 +1,14 @@
|
||||
import gettext
|
||||
import locale
|
||||
import os
|
||||
from typing import Dict
|
||||
|
||||
from importlib.resources import files
|
||||
|
||||
class I18N:
|
||||
def __init__(self, locale_dir=None):
|
||||
# If no locale_dir is provided, use the locales folder relative to this file.
|
||||
if locale_dir is None:
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
locale_dir = os.path.join(current_dir, "locales")
|
||||
self.locale_dir = locale_dir
|
||||
locale_dir = files("kapitanbooru_uploader").joinpath("locales")
|
||||
self.locale_dir = str(locale_dir)
|
||||
self.languages = {"en": "English", "pl": "Polski"}
|
||||
self.current_lang = "en"
|
||||
self.translations: Dict[str, str] = {}
|
||||
|
@ -139,7 +139,7 @@ class ImageBrowser(tk.Tk):
|
||||
super().__init__()
|
||||
self.title("Kapitanbooru Uploader")
|
||||
self.geometry("900x600")
|
||||
self.version = "0.4.0"
|
||||
self.version = "0.4.1"
|
||||
|
||||
self.settings = Settings()
|
||||
self.tags_repo = TagsRepo(self.settings)
|
||||
|
@ -1,6 +1,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.0\n"
|
||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
|
@ -1,6 +1,6 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.0\n"
|
||||
"Project-Id-Version: Kapitanbooru Uploader 0.4.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-03-02 00:39+0100\n"
|
||||
"Language: pl\n"
|
||||
|
Reference in New Issue
Block a user