Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test improvements #755

Merged
merged 9 commits into from
May 25, 2024
Prev Previous commit
Next Next commit
Adding debug to locale
raivisdejus committed May 25, 2024
commit 14a8757e337f4252a1cf06db2083f1e3d1c51156
5 changes: 5 additions & 0 deletions buzz/locale.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import logging

logging
import gettext

from PyQt6.QtCore import QLocale
@@ -8,6 +11,8 @@
locale_dir = get_path("locale")
gettext.bindtextdomain("buzz", locale_dir)

logging.debug(f"============= UI LANGUAGES {QLocale().uiLanguages()}")

translate = gettext.translation(
APP_NAME.lower(), locale_dir, languages=QLocale().uiLanguages(), fallback=True
)
Original file line number Diff line number Diff line change
@@ -57,4 +57,4 @@ def test_create_localized(self, qtbot: QtBot, shortcuts, mocker):
assert tab_widget.tabText(0) == "Vispārīgi"
assert tab_widget.tabText(1) == "Modeļi"
assert tab_widget.tabText(2) == "Īsinājumi"
assert tab_widget.tabText(3) == "Mapes vērošana"
assert tab_widget.tabText(3) == "Mapes vērošana"