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:
parent
b588e644ee
commit
0ff73fbfd1
|
@ -82,7 +82,7 @@ UninstallView::UninstallView()
|
||||||
:
|
:
|
||||||
BGroupView(B_VERTICAL)
|
BGroupView(B_VERTICAL)
|
||||||
{
|
{
|
||||||
fNoPackageSelectedString = TR("No package selected.");
|
fNoPackageSelectedString = B_TRANSLATE("No package selected.");
|
||||||
_InitView();
|
_InitView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ UninstallView::MessageReceived(BMessage* msg)
|
||||||
if (fWatcherRunning) {
|
if (fWatcherRunning) {
|
||||||
_AddFile(filename.String(), ref);
|
_AddFile(filename.String(), ref);
|
||||||
} else {
|
} else {
|
||||||
// This most likely means we were waiting for
|
// This most likely means we were waiting for
|
||||||
// the packages/ dir to appear
|
// the packages/ dir to appear
|
||||||
if (filename == "packages") {
|
if (filename == "packages") {
|
||||||
if (watch_node(&ref, B_WATCH_DIRECTORY, this) == B_OK)
|
if (watch_node(&ref, B_WATCH_DIRECTORY, this) == B_OK)
|
||||||
|
@ -246,13 +246,15 @@ UninstallView::MessageReceived(BMessage* msg)
|
||||||
fDescription->SetText(fNoPackageSelectedString);
|
fDescription->SetText(fNoPackageSelectedString);
|
||||||
|
|
||||||
notify = new BAlert("removal_success",
|
notify = new BAlert("removal_success",
|
||||||
TR("The package you selected has been successfully removed "
|
B_TRANSLATE("The package you selected has been "
|
||||||
"from your system."), TR("OK"));
|
"successfully removed from your system."),
|
||||||
|
B_TRANSLATE("OK"));
|
||||||
} else {
|
} else {
|
||||||
notify = new BAlert("removal_failed",
|
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 "
|
"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);
|
NULL, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,7 +278,7 @@ UninstallView::_InitView()
|
||||||
0, false, true, B_NO_BORDER);
|
0, false, true, B_NO_BORDER);
|
||||||
|
|
||||||
BStringView* descriptionLabel = new BStringView("desc_label",
|
BStringView* descriptionLabel = new BStringView("desc_label",
|
||||||
TR("Package description"));
|
B_TRANSLATE("Package description"));
|
||||||
descriptionLabel->SetFont(be_bold_font);
|
descriptionLabel->SetFont(be_bold_font);
|
||||||
|
|
||||||
fDescription = new BTextView("description", B_WILL_DRAW);
|
fDescription = new BTextView("description", B_WILL_DRAW);
|
||||||
|
@ -285,7 +287,8 @@ UninstallView::_InitView()
|
||||||
fDescription->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
fDescription->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
fDescription->SetText(fNoPackageSelectedString);
|
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);
|
fButton->SetEnabled(false);
|
||||||
|
|
||||||
const float spacing = be_control_look->DefaultItemSpacing();
|
const float spacing = be_control_look->DefaultItemSpacing();
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
UninstallWindow::UninstallWindow()
|
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_TITLED_WINDOW, B_NOT_ZOOMABLE | B_QUIT_ON_WINDOW_CLOSE
|
||||||
| B_AUTO_UPDATE_SIZE_LIMITS)
|
| B_AUTO_UPDATE_SIZE_LIMITS)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@ class UninstallApplication : public BApplication {
|
||||||
public:
|
public:
|
||||||
UninstallApplication();
|
UninstallApplication();
|
||||||
~UninstallApplication();
|
~UninstallApplication();
|
||||||
|
|
||||||
void AboutRequested();
|
void AboutRequested();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -58,14 +58,16 @@ UninstallApplication::~UninstallApplication()
|
||||||
void
|
void
|
||||||
UninstallApplication::AboutRequested()
|
UninstallApplication::AboutRequested()
|
||||||
{
|
{
|
||||||
BString aboutString = TR("InstalledPackages");
|
BString aboutString = B_TRANSLATE("InstalledPackages");
|
||||||
int appNameLength = aboutString.Length();
|
int appNameLength = aboutString.Length();
|
||||||
aboutString << "\n";
|
aboutString << "\n";
|
||||||
aboutString << TR("BeOS legacy .pkg package removing application "
|
aboutString << B_TRANSLATE(
|
||||||
|
"BeOS legacy .pkg package removing application "
|
||||||
"for Haiku.\n\n"
|
"for Haiku.\n\n"
|
||||||
"Copyright 2007,\nŁukasz 'Sil2100' Zemczak\n\n"
|
"Copyright 2007,\nŁukasz 'Sil2100' Zemczak\n\n"
|
||||||
"Copyright (c) 2007 Haiku, Inc.\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();
|
BTextView* view = about->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
|
Loading…
Reference in New Issue