diff --git a/src/apps/installedpackages/UninstallView.cpp b/src/apps/installedpackages/UninstallView.cpp index 782fc1c494..5da9d9db3b 100644 --- a/src/apps/installedpackages/UninstallView.cpp +++ b/src/apps/installedpackages/UninstallView.cpp @@ -82,7 +82,7 @@ UninstallView::UninstallView() : BGroupView(B_VERTICAL) { - fNoPackageSelectedString = TR("No package selected."); + fNoPackageSelectedString = B_TRANSLATE("No package selected."); _InitView(); } @@ -159,7 +159,7 @@ UninstallView::MessageReceived(BMessage* msg) if (fWatcherRunning) { _AddFile(filename.String(), ref); } else { - // This most likely means we were waiting for + // This most likely means we were waiting for // the packages/ dir to appear if (filename == "packages") { if (watch_node(&ref, B_WATCH_DIRECTORY, this) == B_OK) @@ -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(); diff --git a/src/apps/installedpackages/UninstallWindow.cpp b/src/apps/installedpackages/UninstallWindow.cpp index 221cc01358..2a281ef2fc 100644 --- a/src/apps/installedpackages/UninstallWindow.cpp +++ b/src/apps/installedpackages/UninstallWindow.cpp @@ -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) { diff --git a/src/apps/installedpackages/main.cpp b/src/apps/installedpackages/main.cpp index 77131d7734..0a4ee8edaf 100644 --- a/src/apps/installedpackages/main.cpp +++ b/src/apps/installedpackages/main.cpp @@ -29,7 +29,7 @@ class UninstallApplication : public BApplication { public: UninstallApplication(); ~UninstallApplication(); - + void AboutRequested(); private: @@ -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;