Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36682 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia
2010-05-06 23:07:38 +00:00
parent ea8a1f5804
commit 241ad40bd3
7 changed files with 87 additions and 71 deletions
@@ -39,7 +39,8 @@ BluetoothDeviceView::BluetoothDeviceView(BRect frame, BluetoothDevice* bDevice,
bdaddrUtils::ToString(bdaddrUtils::NullAddress())); bdaddrUtils::ToString(bdaddrUtils::NullAddress()));
fBdaddr->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_MIDDLE)); fBdaddr->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_MIDDLE));
fClassService = new BStringView("ServiceClass", TR("Service classes: ")); fClassService = new BStringView("ServiceClass",
B_TRANSLATE("Service classes: "));
fClassService->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, fClassService->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
B_ALIGN_MIDDLE)); B_ALIGN_MIDDLE));
@@ -116,7 +117,7 @@ BluetoothDeviceView::SetBluetoothDevice(BluetoothDevice* bDevice)
fName->SetText(bDevice->GetFriendlyName().String()); fName->SetText(bDevice->GetFriendlyName().String());
fBdaddr->SetText(bdaddrUtils::ToString(bDevice->GetBluetoothAddress())); fBdaddr->SetText(bdaddrUtils::ToString(bDevice->GetBluetoothAddress()));
BString string(TR("Service classes: ")); BString string(B_TRANSLATE("Service classes: "));
bDevice->GetDeviceClass().GetServiceClass(string); bDevice->GetDeviceClass().GetServiceClass(string);
fClassService->SetText(string.String()); fClassService->SetText(string.String());
+3 -2
View File
@@ -90,7 +90,7 @@ void
BluetoothApplication::AboutRequested() BluetoothApplication::AboutRequested()
{ {
(new BAlert("about", TR("Haiku Bluetooth system, (ARCE)\n\n" (new BAlert("about", B_TRANSLATE("Haiku Bluetooth system, (ARCE)\n\n"
"Created by Oliver Ruiz Dorantes\n\n" "Created by Oliver Ruiz Dorantes\n\n"
"With support of:\n" "With support of:\n"
" - Mika Lindqvist\n" " - Mika Lindqvist\n"
@@ -119,7 +119,8 @@ BluetoothApplication::AboutRequested()
"Testing:\n" "Testing:\n"
" - Petter H. Juliussen\n" " - Petter H. Juliussen\n"
"Who gave me all the knowledge:\n" "Who gave me all the knowledge:\n"
" - the yellowTAB team"), TR("OK")))->Go(); " - the yellowTAB team"),
B_TRANSLATE("OK")))->Go();
} }
@@ -38,15 +38,16 @@ static const int32 kMsgSetDeviceClassSmartPhone = 'sDCp';
static const int32 kMsgSetAverageWeight = 'afEa'; static const int32 kMsgSetAverageWeight = 'afEa';
static const int32 kMsgLocalSwitched = 'lDsW'; static const int32 kMsgLocalSwitched = 'lDsW';
static const char* kAllLabel = TR_MARK("From all devices"); static const char* kAllLabel = B_TRANSLATE_MARK("From all devices");
static const char* kTrustedLabel = TR_MARK("Only from trusted devices"); static const char* kTrustedLabel =
static const char* kAlwaysLabel = TR_MARK("Always ask"); B_TRANSLATE_MARK("Only from trusted devices");
static const char* kAlwaysLabel = B_TRANSLATE_MARK("Always ask");
static const char* kDesktopLabel = TR_MARK("Desktop"); static const char* kDesktopLabel = B_TRANSLATE_MARK("Desktop");
static const char* kServerLabel = TR_MARK("Server"); static const char* kServerLabel = B_TRANSLATE_MARK("Server");
static const char* kLaptopLabel = TR_MARK("Laptop"); static const char* kLaptopLabel = B_TRANSLATE_MARK("Laptop");
static const char* kHandheldLabel = TR_MARK("Handheld"); static const char* kHandheldLabel = B_TRANSLATE_MARK("Handheld");
static const char* kPhoneLabel = TR_MARK("Smart phone"); static const char* kPhoneLabel = B_TRANSLATE_MARK("Smart phone");
// #pragma mark - // #pragma mark -
@@ -57,25 +58,27 @@ BluetoothSettingsView::BluetoothSettingsView(const char* name)
{ {
_BuildConnectionPolicy(); _BuildConnectionPolicy();
fPolicyMenuField = new BMenuField("antialiasing", fPolicyMenuField = new BMenuField("antialiasing",
TR("Incoming connections policy:"), fPolicyMenu, NULL); B_TRANSLATE("Incoming connections policy:"), fPolicyMenu, NULL);
fInquiryTimeControl = new BSlider("time", fInquiryTimeControl = new BSlider("time",
TR("Default inquiry time:"), new BMessage(kMsgSetAverageWeight), 0, 255, B_TRANSLATE("Default inquiry time:"), new BMessage(kMsgSetAverageWeight),
B_HORIZONTAL); 0, 255, B_HORIZONTAL);
fInquiryTimeControl->SetLimitLabels(TR("15 secs"), TR("61 secs")); fInquiryTimeControl->SetLimitLabels(B_TRANSLATE("15 secs"),
B_TRANSLATE("61 secs"));
fInquiryTimeControl->SetHashMarks(B_HASH_MARKS_BOTTOM); fInquiryTimeControl->SetHashMarks(B_HASH_MARKS_BOTTOM);
fInquiryTimeControl->SetHashMarkCount(255 / 15); fInquiryTimeControl->SetHashMarkCount(255 / 15);
fInquiryTimeControl->SetEnabled(true); fInquiryTimeControl->SetEnabled(true);
// hinting menu // hinting menu
_BuildClassMenu(); _BuildClassMenu();
fClassMenuField = new BMenuField("class", TR("Identify host as:"), fClassMenuField = new BMenuField("class", B_TRANSLATE("Identify host as:"),
fClassMenu, NULL); fClassMenu, NULL);
// localdevices menu // localdevices menu
_BuildLocalDevicesMenu(); _BuildLocalDevicesMenu();
fLocalDevicesMenuField = new BMenuField("devices", fLocalDevicesMenuField = new BMenuField("devices",
TR("Local devices found on system:"), fLocalDevicesMenu, NULL); B_TRANSLATE("Local devices found on system:"),
fLocalDevicesMenu, NULL);
fExtDeviceView = new ExtendedLocalDeviceView(BRect(0, 0, 5, 5), NULL); fExtDeviceView = new ExtendedLocalDeviceView(BRect(0, 0, 5, 5), NULL);
@@ -195,23 +198,23 @@ BluetoothSettingsView::MessageReceived(BMessage* message)
void void
BluetoothSettingsView::_BuildConnectionPolicy() BluetoothSettingsView::_BuildConnectionPolicy()
{ {
fPolicyMenu = new BPopUpMenu(TR("Policy...")); fPolicyMenu = new BPopUpMenu(B_TRANSLATE("Policy..."));
BMessage* message = new BMessage(kMsgSetAntialiasing); BMessage* message = new BMessage(kMsgSetAntialiasing);
message->AddBool("antialiasing", false); message->AddBool("antialiasing", false);
BMenuItem* item = new BMenuItem(TR(kAllLabel), message); BMenuItem* item = new BMenuItem(B_TRANSLATE(kAllLabel), message);
fPolicyMenu->AddItem(item); fPolicyMenu->AddItem(item);
message = new BMessage(kMsgSetAntialiasing); message = new BMessage(kMsgSetAntialiasing);
message->AddBool("antialiasing", true); message->AddBool("antialiasing", true);
item = new BMenuItem(TR(kTrustedLabel), message); item = new BMenuItem(B_TRANSLATE(kTrustedLabel), message);
fPolicyMenu->AddItem(item); fPolicyMenu->AddItem(item);
BMenuItem* item2 = new BMenuItem(TR(kAlwaysLabel), NULL); BMenuItem* item2 = new BMenuItem(B_TRANSLATE(kAlwaysLabel), NULL);
fPolicyMenu->AddItem(item2); fPolicyMenu->AddItem(item2);
@@ -222,27 +225,27 @@ void
BluetoothSettingsView::_BuildClassMenu() BluetoothSettingsView::_BuildClassMenu()
{ {
fClassMenu = new BPopUpMenu(TR("Identify us as...")); fClassMenu = new BPopUpMenu(B_TRANSLATE("Identify us as..."));
BMessage* message; BMessage* message;
message = new BMessage(kMsgSetDeviceClassDesktop); message = new BMessage(kMsgSetDeviceClassDesktop);
BMenuItem* item = new BMenuItem(TR(kDesktopLabel), message); BMenuItem* item = new BMenuItem(B_TRANSLATE(kDesktopLabel), message);
fClassMenu->AddItem(item); fClassMenu->AddItem(item);
message = new BMessage(kMsgSetDeviceClassServer); message = new BMessage(kMsgSetDeviceClassServer);
item = new BMenuItem(TR(kServerLabel), message); item = new BMenuItem(B_TRANSLATE(kServerLabel), message);
fClassMenu->AddItem(item); fClassMenu->AddItem(item);
message = new BMessage(kMsgSetDeviceClassLaptop); message = new BMessage(kMsgSetDeviceClassLaptop);
item = new BMenuItem(TR(kLaptopLabel), message); item = new BMenuItem(B_TRANSLATE(kLaptopLabel), message);
fClassMenu->AddItem(item); fClassMenu->AddItem(item);
message = new BMessage(kMsgSetDeviceClassHandheld); message = new BMessage(kMsgSetDeviceClassHandheld);
item = new BMenuItem(TR(kHandheldLabel), message); item = new BMenuItem(B_TRANSLATE(kHandheldLabel), message);
fClassMenu->AddItem(item); fClassMenu->AddItem(item);
message = new BMessage(kMsgSetDeviceClassSmartPhone); message = new BMessage(kMsgSetDeviceClassSmartPhone);
item = new BMenuItem(TR(kPhoneLabel), message); item = new BMenuItem(B_TRANSLATE(kPhoneLabel), message);
fClassMenu->AddItem(item); fClassMenu->AddItem(item);
} }
@@ -254,7 +257,7 @@ BluetoothSettingsView::_BuildLocalDevicesMenu()
LocalDevice* lDevice; LocalDevice* lDevice;
if (!fLocalDevicesMenu) if (!fLocalDevicesMenu)
fLocalDevicesMenu = new BPopUpMenu(TR("Pick LocalDevice...")); fLocalDevicesMenu = new BPopUpMenu(B_TRANSLATE("Pick LocalDevice..."));
for (uint32 index = 0; index < LocalDevice::GetLocalDeviceCount(); index++) { for (uint32 index = 0; index < LocalDevice::GetLocalDeviceCount(); index++) {
+22 -17
View File
@@ -33,50 +33,55 @@ LocalDevice* ActiveLocalDevice = NULL;
BluetoothWindow::BluetoothWindow(BRect frame) BluetoothWindow::BluetoothWindow(BRect frame)
: BWindow(frame, TR("Bluetooth"), B_TITLED_WINDOW, : BWindow(frame, B_TRANSLATE("Bluetooth"), B_TITLED_WINDOW,
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS) B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS)
{ {
SetLayout(new BGroupLayout(B_HORIZONTAL)); SetLayout(new BGroupLayout(B_HORIZONTAL));
fDefaultsButton = new BButton("defaults", TR("Defaults"), fDefaultsButton = new BButton("defaults", B_TRANSLATE("Defaults"),
new BMessage(kMsgSetDefaults), B_WILL_DRAW); new BMessage(kMsgSetDefaults), B_WILL_DRAW);
fRevertButton = new BButton("revert", TR("Revert"), fRevertButton = new BButton("revert", B_TRANSLATE("Revert"),
new BMessage(kMsgRevert), B_WILL_DRAW); new BMessage(kMsgRevert), B_WILL_DRAW);
// Add the menu bar // Add the menu bar
fMenubar = new BMenuBar(Bounds(), "menu_bar"); fMenubar = new BMenuBar(Bounds(), "menu_bar");
// Add File menu to menu bar // Add File menu to menu bar
BMenu* menu = new BMenu(TR("Server")); BMenu* menu = new BMenu(B_TRANSLATE("Server"));
menu->AddItem(new BMenuItem(TR("Start bluetooth services" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
B_TRANSLATE("Start bluetooth services" B_UTF8_ELLIPSIS),
new BMessage(kMsgStartServices), 0)); new BMessage(kMsgStartServices), 0));
menu->AddItem(new BMenuItem(TR("Stop bluetooth services" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
B_TRANSLATE("Stop bluetooth services" B_UTF8_ELLIPSIS),
new BMessage(kMsgStopServices), 0)); new BMessage(kMsgStopServices), 0));
menu->AddSeparatorItem(); menu->AddSeparatorItem();
menu->AddItem(new BMenuItem(TR("Show bluetooth console" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
B_TRANSLATE("Show bluetooth console" B_UTF8_ELLIPSIS),
new BMessage(kMsgStartServices), 0)); new BMessage(kMsgStartServices), 0));
menu->AddItem(new BMenuItem(TR("Refresh LocalDevices" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
B_TRANSLATE("Refresh LocalDevices" B_UTF8_ELLIPSIS),
new BMessage(kMsgRefresh), 0)); new BMessage(kMsgRefresh), 0));
fMenubar->AddItem(menu); fMenubar->AddItem(menu);
menu = new BMenu(TR("View")); menu = new BMenu(B_TRANSLATE("View"));
menu->AddItem(new BMenuItem(TR("Connections & channels" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
NULL, 0)); B_TRANSLATE("Connections & channels" B_UTF8_ELLIPSIS), NULL, 0));
menu->AddItem(new BMenuItem(TR("Remote devices list" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(
NULL, 0)); B_TRANSLATE("Remote devices list" B_UTF8_ELLIPSIS), NULL, 0));
fMenubar->AddItem(menu); fMenubar->AddItem(menu);
menu = new BMenu(TR("Help")); menu = new BMenu(B_TRANSLATE("Help"));
menu->AddItem(new BMenuItem(TR("About Bluetooth" B_UTF8_ELLIPSIS), menu->AddItem(new BMenuItem(B_TRANSLATE("About Bluetooth" B_UTF8_ELLIPSIS),
new BMessage(B_ABOUT_REQUESTED), 0)); new BMessage(B_ABOUT_REQUESTED), 0));
fMenubar->AddItem(menu); fMenubar->AddItem(menu);
BTabView* tabView = new BTabView("tabview", B_WIDTH_FROM_LABEL); BTabView* tabView = new BTabView("tabview", B_WIDTH_FROM_LABEL);
fSettingsView = new BluetoothSettingsView(TR("Settings")); fSettingsView = new BluetoothSettingsView(B_TRANSLATE("Settings"));
// fConnChan = new ConnChanView("Connections & Channels", B_WILL_DRAW); // fConnChan = new ConnChanView("Connections & Channels", B_WILL_DRAW);
fRemoteDevices = new RemoteDevicesView(TR("Remote devices"), B_WILL_DRAW); fRemoteDevices = new RemoteDevicesView(
B_TRANSLATE("Remote devices"), B_WILL_DRAW);
tabView->AddTab(fRemoteDevices); tabView->AddTab(fRemoteDevices);
// tabView->AddTab(fConnChan); // tabView->AddTab(fConnChan);
@@ -33,12 +33,12 @@ ExtendedLocalDeviceView::ExtendedLocalDeviceView(BRect frame,
fDeviceView = new BluetoothDeviceView(BRect(0, 0, 5, 5), bDevice); fDeviceView = new BluetoothDeviceView(BRect(0, 0, 5, 5), bDevice);
fDiscoverable = new BCheckBox(iDontCare, "Discoverable", TR("Discoverable"), fDiscoverable = new BCheckBox(iDontCare, "Discoverable",
new BMessage(SET_DISCOVERABLE)); B_TRANSLATE("Discoverable"), new BMessage(SET_DISCOVERABLE));
fVisible = new BCheckBox(iDontCare, "Visible", TR("Show name"), fVisible = new BCheckBox(iDontCare, "Visible",
new BMessage(SET_VISIBLE)); B_TRANSLATE("Show name"), new BMessage(SET_VISIBLE));
fAuthentication = new BCheckBox(iDontCare, "Authenticate", TR("Authenticate"), fAuthentication = new BCheckBox(iDontCare, "Authenticate",
new BMessage(SET_AUTHENTICATION)); B_TRANSLATE("Authenticate"), new BMessage(SET_AUTHENTICATION));
fDiscoverable->SetEnabled(false); fDiscoverable->SetEnabled(false);
fVisible->SetEnabled(false); fVisible->SetEnabled(false);
+19 -13
View File
@@ -102,7 +102,8 @@ InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
{ {
SetLayout(new BGroupLayout(B_HORIZONTAL)); SetLayout(new BGroupLayout(B_HORIZONTAL));
fScanProgress = new BStatusBar("status", TR("Scanning progress"), ""); fScanProgress = new BStatusBar("status",
B_TRANSLATE("Scanning progress"), "");
activeColor = fScanProgress->BarColor(); activeColor = fScanProgress->BarColor();
if (fLocalDevice == NULL) if (fLocalDevice == NULL)
@@ -114,10 +115,10 @@ InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
fMessage->MakeEditable(false); fMessage->MakeEditable(false);
fMessage->MakeSelectable(false); fMessage->MakeSelectable(false);
fInquiryButton = new BButton("Inquiry", TR("Inquiry"), fInquiryButton = new BButton("Inquiry", B_TRANSLATE("Inquiry"),
new BMessage(kMsgInquiry), B_WILL_DRAW); new BMessage(kMsgInquiry), B_WILL_DRAW);
fAddButton = new BButton("add", TR("Add device to list"), fAddButton = new BButton("add", B_TRANSLATE("Add device to list"),
new BMessage(kMsgAddToRemoteList), B_WILL_DRAW); new BMessage(kMsgAddToRemoteList), B_WILL_DRAW);
fAddButton->SetEnabled(false); fAddButton->SetEnabled(false);
@@ -128,7 +129,8 @@ InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
fScrollView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); fScrollView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
if (fLocalDevice != NULL) { if (fLocalDevice != NULL) {
fMessage->SetText(TR("Check that the Bluetooth capabilities of your" fMessage->SetText(B_TRANSLATE(
"Check that the Bluetooth capabilities of your"
" remote device are activated. Press 'Inquiry' to start scanning." " remote device are activated. Press 'Inquiry' to start scanning."
" The needed time for the retrieval of the names is unknown, " " The needed time for the retrieval of the names is unknown, "
"although should not take more than 3 seconds per device. " "although should not take more than 3 seconds per device. "
@@ -143,8 +145,8 @@ InquiryPanel::InquiryPanel(BRect frame, LocalDevice* lDevice)
} else { } else {
fMessage->SetText(TR("There isn't any Bluetooth LocalDevice registered" fMessage->SetText(B_TRANSLATE("There isn't any Bluetooth LocalDevice "
" on the system.")); "registered on the system."));
fInquiryButton->SetEnabled(false); fInquiryButton->SetEnabled(false);
} }
@@ -220,7 +222,7 @@ InquiryPanel::MessageReceived(BMessage* message)
fRemoteList->MakeEmpty(); fRemoteList->MakeEmpty();
fScanProgress->Reset(); fScanProgress->Reset();
fScanProgress->SetTo(1); fScanProgress->SetTo(1);
fScanProgress->SetTrailingText(TR("Starting scan...")); fScanProgress->SetTrailingText(B_TRANSLATE("Starting scan..."));
fScanProgress->SetBarColor(activeColor); fScanProgress->SetBarColor(activeColor);
fAddButton->SetEnabled(false); fAddButton->SetEnabled(false);
@@ -240,7 +242,7 @@ InquiryPanel::MessageReceived(BMessage* message)
fRetrieving = true; fRetrieving = true;
labelPlaced = false; labelPlaced = false;
fScanProgress->SetTo(100); fScanProgress->SetTo(100);
fScanProgress->SetTrailingText(TR("Retrieving names...")); fScanProgress->SetTrailingText(B_TRANSLATE("Retrieving names..."));
BMessageRunner::StartSending(fMessenger, fRetrieveMessage, 1000000, 1); BMessageRunner::StartSending(fMessenger, fRetrieveMessage, 1000000, 1);
break; break;
@@ -248,12 +250,13 @@ InquiryPanel::MessageReceived(BMessage* message)
case kMsgSecond: case kMsgSecond:
if (fScanning && scanningTime < timer) { if (fScanning && scanningTime < timer) {
// TODO time formatting could use Locale Kit // TODO time formatting could use Locale Kit
BString elapsedTime = TR("Remaining "); BString elapsedTime = B_TRANSLATE("Remaining ");
// TODO should not be needed if SetMaxValue works... // TODO should not be needed if SetMaxValue works...
fScanProgress->SetTo(scanningTime * 100 / timer); fScanProgress->SetTo(scanningTime * 100 / timer);
elapsedTime << (int)(timer - scanningTime) << TR(" seconds"); elapsedTime << (int)(timer - scanningTime) <<
B_TRANSLATE(" seconds");
fScanProgress->SetTrailingText(elapsedTime.String()); fScanProgress->SetTrailingText(elapsedTime.String());
scanningTime = scanningTime + 1; scanningTime = scanningTime + 1;
@@ -269,7 +272,8 @@ InquiryPanel::MessageReceived(BMessage* message)
if (!labelPlaced) { if (!labelPlaced) {
labelPlaced = true; labelPlaced = true;
BString progressText = TR("Retrieving name of "); BString progressText =
B_TRANSLATE("Retrieving name of ");
progressText << bdaddrUtils::ToString(fDiscoveryAgent progressText << bdaddrUtils::ToString(fDiscoveryAgent
->RetrieveDevices(0).ItemAt(retrievalIndex) ->RetrieveDevices(0).ItemAt(retrievalIndex)
->GetBluetoothAddress()); ->GetBluetoothAddress());
@@ -294,8 +298,10 @@ InquiryPanel::MessageReceived(BMessage* message)
fRetrieving = false; fRetrieving = false;
retrievalIndex = 0; retrievalIndex = 0;
fScanProgress->SetBarColor(ui_color(B_PANEL_BACKGROUND_COLOR)); fScanProgress->SetBarColor(
fScanProgress->SetTrailingText(TR("Scanning completed.")); ui_color(B_PANEL_BACKGROUND_COLOR));
fScanProgress->SetTrailingText(
B_TRANSLATE("Scanning completed."));
fInquiryButton->SetEnabled(true); fInquiryButton->SetEnabled(true);
UpdateListStatus(); UpdateListStatus();
} }
@@ -42,23 +42,23 @@ RemoteDevicesView::RemoteDevicesView(const char* name, uint32 flags)
{ {
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
addButton = new BButton("add", TR("Add" B_UTF8_ELLIPSIS), addButton = new BButton("add", B_TRANSLATE("Add" B_UTF8_ELLIPSIS),
new BMessage(kMsgAddDevices)); new BMessage(kMsgAddDevices));
removeButton = new BButton("remove", TR("Remove"), removeButton = new BButton("remove", B_TRANSLATE("Remove"),
new BMessage(kMsgRemoveDevice)); new BMessage(kMsgRemoveDevice));
pairButton = new BButton("pair", TR("Pair" B_UTF8_ELLIPSIS), pairButton = new BButton("pair", B_TRANSLATE("Pair" B_UTF8_ELLIPSIS),
new BMessage(kMsgPairDevice)); new BMessage(kMsgPairDevice));
disconnectButton = new BButton("disconnect", TR("Disconnect"), disconnectButton = new BButton("disconnect", B_TRANSLATE("Disconnect"),
new BMessage(kMsgDisconnectDevice)); new BMessage(kMsgDisconnectDevice));
blockButton = new BButton("block", TR("As blocked"), blockButton = new BButton("block", B_TRANSLATE("As blocked"),
new BMessage(kMsgBlockDevice)); new BMessage(kMsgBlockDevice));
availButton = new BButton("check", TR("Refresh" B_UTF8_ELLIPSIS), availButton = new BButton("check", B_TRANSLATE("Refresh" B_UTF8_ELLIPSIS),
new BMessage(kMsgRefreshDevices)); new BMessage(kMsgRefreshDevices));
// Set up device list // Set up device list