Skip to content

Commit 1cc2721

Browse files
fix: update call to translator to be inline with upstream (#19)
1 parent 3d8fbc6 commit 1cc2721

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tagstudio/src/qt/modals/settings_panel.py

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

tagstudio/src/qt/ts_qt.py

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

0 commit comments

Comments
 (0)