diff --git a/data/resources/ui/row/device_summary_row.blp b/data/resources/ui/row/device_summary_row.blp index 80f3950..206056e 100644 --- a/data/resources/ui/row/device_summary_row.blp +++ b/data/resources/ui/row/device_summary_row.blp @@ -4,8 +4,6 @@ using Adw 1; template $DeviceSummaryRow : Adw.ExpanderRow { activatable: false; selectable: false; - /* Translators: Description of selected disk. */ - title: _("Disk"); subtitle: bind template.device as <$DeviceInfo>.name; show-enable-switch: false; styles ["property"] diff --git a/po/POTFILES b/po/POTFILES index f203efa..2b323d9 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -27,4 +27,5 @@ src/provider/disk_provider.py src/ui/buttons.py src/ui/confirm_quit_dialog.py src/ui/page_wrapper.py +src/ui/row/device_rows.py src/ui/summary.py diff --git a/src/ui/row/device_rows.py b/src/ui/row/device_rows.py index bb4624f..e113386 100644 --- a/src/ui/row/device_rows.py +++ b/src/ui/row/device_rows.py @@ -50,7 +50,8 @@ class DeviceSummaryRow(Adw.ExpanderRow): self._device = device super().__init__(**kwargs) - translate_widgets(self) + # Translators: Description of selected disk. + self.set_title(_("Disk")) # Hacky workaround to make AdwExpanderRow have property style # box -> list_box -> action row