From ae8811a418a16643590192de063e7ae81bab74c0 Mon Sep 17 00:00:00 2001 From: Jorma Karvonen Date: Wed, 8 Feb 2012 18:21:32 +0100 Subject: [PATCH] Fixes non-localized strings of the Devices application. Closes ticket #7245. Signed-off-by: Humdinger --- src/apps/devices/Device.cpp | 28 ++++++++++++++++++++++++++++ src/apps/devices/Device.h | 12 ++++-------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/apps/devices/Device.cpp b/src/apps/devices/Device.cpp index 5a5ef9279f..fc1bab570f 100644 --- a/src/apps/devices/Device.cpp +++ b/src/apps/devices/Device.cpp @@ -73,6 +73,34 @@ Device::~Device() } +BString +Device::GetName() +{ + return fAttributeMap[B_TRANSLATE("Device name")]; +} + + +BString +Device::GetManufacturer() +{ + return fAttributeMap[B_TRANSLATE("Manufacturer")]; +} + + +BString +Device::GetDriverUsed() +{ + return fAttributeMap[B_TRANSLATE("Driver used")]; +} + + +BString +Device::GetDevPathsPublished() +{ + return fAttributeMap[B_TRANSLATE("Device paths")]; +} + + void Device::SetAttribute(const BString& name, const BString& value) { diff --git a/src/apps/devices/Device.h b/src/apps/devices/Device.h index 5b1dc0ef68..caf36db3d3 100644 --- a/src/apps/devices/Device.h +++ b/src/apps/devices/Device.h @@ -81,14 +81,10 @@ public: const BString& devPathsPublished = "unknown"); virtual ~Device(); - virtual BString GetName() - { return fAttributeMap["Device name"]; } - virtual BString GetManufacturer() - { return fAttributeMap["Manufacturer"]; } - virtual BString GetDriverUsed() - { return fAttributeMap["Driver used"]; } - virtual BString GetDevPathsPublished() - { return fAttributeMap["Device paths"]; } + virtual BString GetName(); + virtual BString GetManufacturer(); + virtual BString GetDriverUsed(); + virtual BString GetDevPathsPublished(); virtual Category GetCategory() const { return fCategory; } virtual Device* GetPhysicalParent() const