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:
@@ -40,6 +40,17 @@ const char* kCategoryString[] = {
|
|||||||
B_TRANSLATE("ACPI controller") // 0x13 (added later)
|
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,
|
Device::Device(Device* physicalParent, BusType busType, Category category,
|
||||||
const BString& name, const BString& manufacturer,
|
const BString& name, const BString& manufacturer,
|
||||||
@@ -50,10 +61,10 @@ Device::Device(Device* physicalParent, BusType busType, Category category,
|
|||||||
fCategory(category),
|
fCategory(category),
|
||||||
fPhysicalParent(physicalParent)
|
fPhysicalParent(physicalParent)
|
||||||
{
|
{
|
||||||
SetAttribute(B_TRANSLATE("Device name"), name);
|
SetAttribute(B_TRANSLATE("Device name"), B_TRANSLATE(name));
|
||||||
SetAttribute(B_TRANSLATE("Manufacturer"), manufacturer);
|
SetAttribute(B_TRANSLATE("Manufacturer"), B_TRANSLATE(manufacturer));
|
||||||
SetAttribute(B_TRANSLATE("Driver used"), driverUsed);
|
SetAttribute(B_TRANSLATE("Driver used"), B_TRANSLATE(driverUsed));
|
||||||
SetAttribute(B_TRANSLATE("Device paths"), devPathsPublished);
|
SetAttribute(B_TRANSLATE("Device paths"), B_TRANSLATE(devPathsPublished));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -127,6 +138,13 @@ Device::GetBusStrings()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BString
|
||||||
|
Device::GetBusTabName()
|
||||||
|
{
|
||||||
|
return B_TRANSLATE("Bus Information");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BString
|
BString
|
||||||
Device::GetAllStrings()
|
Device::GetAllStrings()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,8 +88,7 @@ public:
|
|||||||
virtual BString GetBusStrings();
|
virtual BString GetBusStrings();
|
||||||
virtual BString GetAllStrings();
|
virtual BString GetAllStrings();
|
||||||
|
|
||||||
virtual BString GetBusTabName()
|
virtual BString GetBusTabName();
|
||||||
{ return "Bus Information"; }
|
|
||||||
|
|
||||||
virtual Attribute GetAttribute(const BString& name)
|
virtual Attribute GetAttribute(const BString& name)
|
||||||
{ return Attribute(name.String(),
|
{ return Attribute(name.String(),
|
||||||
|
|||||||
Reference in New Issue
Block a user