Skip to content

Commit b0041a2

Browse files
committed
fix: update call to translator to be inline with upstream (#19)
1 parent 2810e47 commit b0041a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tagstudio/qt/modals/settings_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def apply_filepath_setting(self):
9797
else:
9898
display_path = library_directory.name
9999
self.driver.main_window.setWindowTitle(
100-
Translations["app.title"].format(
101-
base_title=self.driver.base_title, library_dir=display_path
100+
Translations.format(
101+
"app.title", base_title=self.driver.base_title, library_dir=display_path
102102
)
103103
)

src/tagstudio/qt/ts_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ def open_library(self, path: Path) -> None:
18321832
self.settings.value(SettingItems.SHOW_FILEPATH, defaultValue="show full path", type=str)
18331833
)
18341834
library_dir_display = path if filepath_option == "show full path" else path.name
1835-
message = Translations["splash.opening_library"].format(library_path=library_dir_display)
1835+
message = Translations.format("splash.opening_library",library_path=library_dir_display)
18361836
self.main_window.landing_widget.set_status_label(message)
18371837
self.main_window.statusbar.showMessage(message, 3)
18381838
self.main_window.repaint()

0 commit comments

Comments
 (0)