A bit of extra localization support for Devices app.

Partially fixes #7245.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40622 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Siarzhuk Zharski 2011-02-22 20:37:54 +00:00
parent 51a2a65082
commit 211be12926
2 changed files with 23 additions and 6 deletions

View File

@ -40,6 +40,17 @@ const char* kCategoryString[] = {
B_TRANSLATE("ACPI controller") // 0x13 (added later)
};
// This list is only used to translate Device properties
static const char* kTranslateMarkString[] = {
B_TRANSLATE_MARK("unknown"),
B_TRANSLATE_MARK("Device"),
B_TRANSLATE_MARK("Computer"),
B_TRANSLATE_MARK("ACPI bus"),
B_TRANSLATE_MARK("PCI bus"),
B_TRANSLATE_MARK("ISA bus"),
B_TRANSLATE_MARK("Unknown device")
};
Device::Device(Device* physicalParent, BusType busType, Category category,
const BString& name, const BString& manufacturer,
@ -50,10 +61,10 @@ Device::Device(Device* physicalParent, BusType busType, Category category,
fCategory(category),
fPhysicalParent(physicalParent)
{
SetAttribute(B_TRANSLATE("Device name"), name);
SetAttribute(B_TRANSLATE("Manufacturer"), manufacturer);
SetAttribute(B_TRANSLATE("Driver used"), driverUsed);
SetAttribute(B_TRANSLATE("Device paths"), devPathsPublished);
SetAttribute(B_TRANSLATE("Device name"), B_TRANSLATE(name));
SetAttribute(B_TRANSLATE("Manufacturer"), B_TRANSLATE(manufacturer));
SetAttribute(B_TRANSLATE("Driver used"), B_TRANSLATE(driverUsed));
SetAttribute(B_TRANSLATE("Device paths"), B_TRANSLATE(devPathsPublished));
}
@ -127,6 +138,13 @@ Device::GetBusStrings()
}
BString
Device::GetBusTabName()
{
return B_TRANSLATE("Bus Information");
}
BString
Device::GetAllStrings()
{

View File

@ -88,8 +88,7 @@ public:
virtual BString GetBusStrings();
virtual BString GetAllStrings();
virtual BString GetBusTabName()
{ return "Bus Information"; }
virtual BString GetBusTabName();
virtual Attribute GetAttribute(const BString& name)
{ return Attribute(name.String(),