Skip to content

Commit

Permalink
[HardwareDB]
Browse files Browse the repository at this point in the history
* add translation
  • Loading branch information
jbleyel committed Jan 14, 2025
1 parent 1e91950 commit e8ce36e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/python/Components/Harddisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def getUserfriendlyDeviceName(self, dev, phys):
hwdescription = ""
for physdevprefix, pdescription in list(getDeviceDB().items()):
if phys.startswith(physdevprefix):
hwdescription = pdescription
hwdescription = _(pdescription)

label = fileReadLine(f"/dev/label/{dev}", default="", source=MODULE_NAME)
if label:
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Plugins/SystemPlugins/Hotplug/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def processAddDevice(self):
description = ""
for physdevprefix, pdescription in list(getDeviceDB().items()):
if DEVPATH.startswith(physdevprefix):
description = f"\n{pdescription}"
description = f"\n{_(pdescription)}"

text = f"{_("A new storage device has been connected:")}\n{ID_MODEL} - ({scaleNumber(ID_PART_ENTRY_SIZE * 512, format="%.1f")})\n{description}"

Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/DeviceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def getDeviceTypeModel():
deviceLocation = ""
for physdevprefix, pdescription in list(getDeviceDB().items()):
if physdev.startswith(physdevprefix):
deviceLocation = pdescription
deviceLocation = _(pdescription)

deviceMounts = []
mounts = [x for x in mounts if EXPANDER_MOUNT not in x[1]]
Expand Down

0 comments on commit e8ce36e

Please sign in to comment.