Fixes non-localized strings of the Devices application.

Closes ticket #7245.

Signed-off-by: Humdinger <[email protected]>
This commit is contained in:
Jorma Karvonen
2012-02-08 18:21:32 +01:00
committed by Humdinger
parent 8b371b91e4
commit ae8811a418
2 changed files with 32 additions and 8 deletions
+28
View File
@@ -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)
{
+4 -8
View File
@@ -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