device-summary-row: Fix translation

This commit is contained in:
Peter Eisenmann
2025-02-07 18:16:23 +00:00
parent 3c961f0c1a
commit 49e87008c5
3 changed files with 3 additions and 3 deletions

View File

@@ -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"]

View File

@@ -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

View File

@@ -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