Still unlocalized strings in Process Controller, Devices and Touchpad preferences

are localized. Pointed out by Diver. Thanks.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40672 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Siarzhuk Zharski
2011-02-24 19:03:47 +00:00
parent 8cf55acfff
commit 1e61f4b782
4 changed files with 19 additions and 15 deletions
+10 -5
View File
@@ -285,28 +285,32 @@ DevicesView::AddDeviceAndChildren(device_node_cookie *node, Device* parent)
// Devices Root // Devices Root
if (attributes[i].fName == B_DEVICE_PRETTY_NAME if (attributes[i].fName == B_DEVICE_PRETTY_NAME
&& attributes[i].fValue == "Devices Root") { && attributes[i].fValue == "Devices Root") {
newDevice = new Device(parent, BUS_NONE, CAT_COMPUTER, "Computer"); newDevice = new Device(parent, BUS_NONE,
CAT_COMPUTER, B_TRANSLATE("Computer"));
break; break;
} }
// ACPI Controller // ACPI Controller
if (attributes[i].fName == B_DEVICE_PRETTY_NAME if (attributes[i].fName == B_DEVICE_PRETTY_NAME
&& attributes[i].fValue == "ACPI") { && attributes[i].fValue == "ACPI") {
newDevice = new Device(parent, BUS_ACPI, CAT_BUS, "ACPI bus"); newDevice = new Device(parent, BUS_ACPI,
CAT_BUS, B_TRANSLATE("ACPI bus"));
break; break;
} }
// PCI bus // PCI bus
if (attributes[i].fName == B_DEVICE_PRETTY_NAME if (attributes[i].fName == B_DEVICE_PRETTY_NAME
&& attributes[i].fValue == "PCI") { && attributes[i].fValue == "PCI") {
newDevice = new Device(parent, BUS_PCI, CAT_BUS, "PCI bus"); newDevice = new Device(parent, BUS_PCI,
CAT_BUS, B_TRANSLATE("PCI bus"));
break; break;
} }
// ISA bus // ISA bus
if (attributes[i].fName == B_DEVICE_BUS if (attributes[i].fName == B_DEVICE_BUS
&& attributes[i].fValue == "isa") { && attributes[i].fValue == "isa") {
newDevice = new Device(parent, BUS_ISA, CAT_BUS, "ISA bus"); newDevice = new Device(parent, BUS_ISA,
CAT_BUS, B_TRANSLATE("ISA bus"));
break; break;
} }
@@ -326,7 +330,8 @@ DevicesView::AddDeviceAndChildren(device_node_cookie *node, Device* parent)
} }
if (newDevice == NULL) { if (newDevice == NULL) {
newDevice = new Device(parent, BUS_NONE, CAT_NONE, "Unknown device"); newDevice = new Device(parent, BUS_NONE,
CAT_NONE, B_TRANSLATE("Unknown device"));
} }
// Add its attributes to the device, initialize it and add to the list. // Add its attributes to the device, initialize it and add to the list.
-1
View File
@@ -15,7 +15,6 @@
#undef B_TRANSLATE_CONTEXT #undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "PropertyList" #define B_TRANSLATE_CONTEXT "PropertyList"
//#include <stdio.h>
PropertyRow::PropertyRow(const char* name, const char* value) PropertyRow::PropertyRow(const char* name, const char* value)
: BRow(), : BRow(),
@@ -33,7 +33,7 @@
KernelMemoryBarMenuItem::KernelMemoryBarMenuItem(system_info& systemInfo) KernelMemoryBarMenuItem::KernelMemoryBarMenuItem(system_info& systemInfo)
: BMenuItem("System resources & caches" B_UTF8_ELLIPSIS, NULL) : BMenuItem(B_TRANSLATE("System resources & caches" B_UTF8_ELLIPSIS), NULL)
{ {
fLastSum = -1; fLastSum = -1;
fGrenze1 = -1; fGrenze1 = -1;
@@ -34,6 +34,9 @@
const uint32 SCROLL_X_DRAG = 'sxdr'; const uint32 SCROLL_X_DRAG = 'sxdr';
const uint32 SCROLL_Y_DRAG = 'sydr'; const uint32 SCROLL_Y_DRAG = 'sydr';
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "TouchpadPrefView"
TouchpadView::TouchpadView(BRect frame) TouchpadView::TouchpadView(BRect frame)
: :
@@ -98,11 +101,11 @@ TouchpadView::MouseUp(BPoint point)
int32 result = 0; int32 result = 0;
if (GetRightScrollRatio() > kSoftScrollLimit if (GetRightScrollRatio() > kSoftScrollLimit
|| GetBottomScrollRatio() > kSoftScrollLimit) { || GetBottomScrollRatio() > kSoftScrollLimit) {
BAlert* alert = new BAlert("ReallyChangeScrollArea", BAlert* alert = new BAlert(B_TRANSLATE("Please confirm"),
"The new scroll area is very large and may impede " B_TRANSLATE("The new scroll area is very large and may impede "
"normal mouse operation. Do you really want to change" "normal mouse operation. Do you really want to change it?"),
" it?", "OK", "Cancel", NULL, B_WIDTH_AS_USUAL, B_TRANSLATE("OK"), B_TRANSLATE("Cancel"),
B_WARNING_ALERT); NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
result = alert->Go(); result = alert->Go();
} }
if (result == 0) { if (result == 0) {
@@ -261,9 +264,6 @@ TouchpadView::DrawSliders()
// #pragma mark - TouchpadPrefView // #pragma mark - TouchpadPrefView
#undef B_TRANSLATE_CONTEXT
#define B_TRANSLATE_CONTEXT "TouchpadPrefView"
TouchpadPrefView::TouchpadPrefView() TouchpadPrefView::TouchpadPrefView()
: :