Update TR* to B_TRANSLATE. relates to #5408. To note, prior to this changset,

this was not building. See #5928 for more information.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36731 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia 2010-05-07 19:37:47 +00:00
parent b588e644ee
commit 0ff73fbfd1
3 changed files with 18 additions and 13 deletions

View File

@ -82,7 +82,7 @@ UninstallView::UninstallView()
:
BGroupView(B_VERTICAL)
{
fNoPackageSelectedString = TR("No package selected.");
fNoPackageSelectedString = B_TRANSLATE("No package selected.");
_InitView();
}
@ -246,13 +246,15 @@ UninstallView::MessageReceived(BMessage* msg)
fDescription->SetText(fNoPackageSelectedString);
notify = new BAlert("removal_success",
TR("The package you selected has been successfully removed "
"from your system."), TR("OK"));
B_TRANSLATE("The package you selected has been "
"successfully removed from your system."),
B_TRANSLATE("OK"));
} else {
notify = new BAlert("removal_failed",
TR("The selected package was not removed from your system. "
B_TRANSLATE(
"The selected package was not removed from your system. "
"The given installed package information file might have "
"been corrupted."), TR("OK"), NULL,
"been corrupted."), B_TRANSLATE("OK"), NULL,
NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
}
@ -276,7 +278,7 @@ UninstallView::_InitView()
0, false, true, B_NO_BORDER);
BStringView* descriptionLabel = new BStringView("desc_label",
TR("Package description"));
B_TRANSLATE("Package description"));
descriptionLabel->SetFont(be_bold_font);
fDescription = new BTextView("description", B_WILL_DRAW);
@ -285,7 +287,8 @@ UninstallView::_InitView()
fDescription->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
fDescription->SetText(fNoPackageSelectedString);
fButton = new BButton("removal", TR("Remove"), new BMessage(P_MSG_REMOVE));
fButton = new BButton("removal", B_TRANSLATE("Remove"),
new BMessage(P_MSG_REMOVE));
fButton->SetEnabled(false);
const float spacing = be_control_look->DefaultItemSpacing();

View File

@ -20,7 +20,7 @@
UninstallWindow::UninstallWindow()
:
BWindow(BRect(100, 100, 600, 300), TR("Installed packages"),
BWindow(BRect(100, 100, 600, 300), B_TRANSLATE("Installed packages"),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_QUIT_ON_WINDOW_CLOSE
| B_AUTO_UPDATE_SIZE_LIMITS)
{

View File

@ -58,14 +58,16 @@ UninstallApplication::~UninstallApplication()
void
UninstallApplication::AboutRequested()
{
BString aboutString = TR("InstalledPackages");
BString aboutString = B_TRANSLATE("InstalledPackages");
int appNameLength = aboutString.Length();
aboutString << "\n";
aboutString << TR("BeOS legacy .pkg package removing application "
aboutString << B_TRANSLATE(
"BeOS legacy .pkg package removing application "
"for Haiku.\n\n"
"Copyright 2007,\nŁukasz 'Sil2100' Zemczak\n\n"
"Copyright (c) 2007 Haiku, Inc.\n");
BAlert* about = new BAlert("about", aboutString.String(), TR("Close"));
BAlert* about = new BAlert("about", aboutString.String(),
B_TRANSLATE("Close"));
BTextView* view = about->TextView();
BFont font;