Trivial additions for localization of strings

Signed-off-by: Rob Gill <[email protected]>
Change-Id: I078f2de99c6461a937f4c645b65d5caf06d54dcb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2925
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Rob Gill
2020-06-19 20:57:21 +00:00
committed by Kacper Kasper
parent 437e3c1c06
commit f435226298
4 changed files with 11 additions and 8 deletions
+7 -4
View File
@@ -10,6 +10,7 @@
#include <Alert.h>
#include <Bitmap.h>
#include <Catalog.h>
#include <Debug.h>
#include <Dragger.h>
#include <Entry.h>
@@ -19,6 +20,8 @@
#include <time.h>
#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "Clock"
TOffscreenView::TOffscreenView(BRect frame, const char *name, short mRadius,
short hRadius, short offset, long face, bool show)
@@ -345,10 +348,10 @@ TOnscreenView::MessageReceived(BMessage *msg)
switch(msg->what) {
case B_ABOUT_REQUESTED:
{
BAlert *alert = new BAlert("About Clock",
"Clock (The Replicant version)\n\n(C)2002, 2003 OpenBeOS,\n"
"2004 - 2007, Haiku, Inc.\n\nOriginally coded by the folks "
"at Be.\n Copyright Be Inc., 1991 - 1998", "OK");
BAlert *alert = new BAlert(B_TRANSLATE("About Clock"), B_TRANSLATE(
"Clock (The Replicant version)\n\nCopyright 2002-2020 "
"Haiku, Inc.\n\nOriginally coded by the folks "
"at Be.\n Copyright 1991-1998, Be Inc."), B_TRANSLATE("OK"));
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go();
} break;
+1 -1
View File
@@ -373,7 +373,7 @@ SavePanel::_ExportSettings()
// // Build a window around this translator's configuration view
// status_t err = roster->MakeConfigurationView(item->id, NULL, &view, &rect);
// if (err < B_OK || view == NULL) {
// BAlert *alert = new BAlert(NULL, strerror(err), "OK");
// BAlert *alert = new BAlert(NULL, strerror(err), B_TRANSLATE("OK"));
// alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
// alert->Go();
// } else {
+2 -2
View File
@@ -166,11 +166,11 @@ void
OverlayView::OverlayAboutRequested()
{
BAlert *alert = new BAlert("about",
"OverlayImage\n"
B_TRANSLATE("OverlayImage\n"
"Copyright 1999-2010\n\n\t"
"originally by Seth Flaxman\n\t"
"modified by Hartmuth Reh\n\t"
"further modified by Humdinger\n",
"further modified by Humdinger\n"),
"OK");
BTextView *view = alert->TextView();
BFont font;
+1 -1
View File
@@ -706,7 +706,7 @@ ScreenshotWindow::_ShowSettings(bool activate)
translator, NULL, &view, &rect);
if (status != B_OK || view == NULL) {
// TODO: proper translation, better error dialog
BAlert* alert = new BAlert(NULL, strerror(status), "OK");
BAlert* alert = new BAlert(NULL, strerror(status), B_TRANSLATE("OK"));
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go();
} else if (fSettingsWindow != NULL) {