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:
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Bitmap.h>
|
#include <Bitmap.h>
|
||||||
|
#include <Catalog.h>
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
#include <Dragger.h>
|
#include <Dragger.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
@@ -19,6 +20,8 @@
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
#undef B_TRANSLATION_CONTEXT
|
||||||
|
#define B_TRANSLATION_CONTEXT "Clock"
|
||||||
|
|
||||||
TOffscreenView::TOffscreenView(BRect frame, const char *name, short mRadius,
|
TOffscreenView::TOffscreenView(BRect frame, const char *name, short mRadius,
|
||||||
short hRadius, short offset, long face, bool show)
|
short hRadius, short offset, long face, bool show)
|
||||||
@@ -345,10 +348,10 @@ TOnscreenView::MessageReceived(BMessage *msg)
|
|||||||
switch(msg->what) {
|
switch(msg->what) {
|
||||||
case B_ABOUT_REQUESTED:
|
case B_ABOUT_REQUESTED:
|
||||||
{
|
{
|
||||||
BAlert *alert = new BAlert("About Clock",
|
BAlert *alert = new BAlert(B_TRANSLATE("About Clock"), B_TRANSLATE(
|
||||||
"Clock (The Replicant version)\n\n(C)2002, 2003 OpenBeOS,\n"
|
"Clock (The Replicant version)\n\nCopyright 2002-2020 "
|
||||||
"2004 - 2007, Haiku, Inc.\n\nOriginally coded by the folks "
|
"Haiku, Inc.\n\nOriginally coded by the folks "
|
||||||
"at Be.\n Copyright Be Inc., 1991 - 1998", "OK");
|
"at Be.\n Copyright 1991-1998, Be Inc."), B_TRANSLATE("OK"));
|
||||||
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||||
alert->Go();
|
alert->Go();
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ SavePanel::_ExportSettings()
|
|||||||
// // Build a window around this translator's configuration view
|
// // Build a window around this translator's configuration view
|
||||||
// status_t err = roster->MakeConfigurationView(item->id, NULL, &view, &rect);
|
// status_t err = roster->MakeConfigurationView(item->id, NULL, &view, &rect);
|
||||||
// if (err < B_OK || view == NULL) {
|
// 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->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||||
// alert->Go();
|
// alert->Go();
|
||||||
// } else {
|
// } else {
|
||||||
|
|||||||
@@ -166,11 +166,11 @@ void
|
|||||||
OverlayView::OverlayAboutRequested()
|
OverlayView::OverlayAboutRequested()
|
||||||
{
|
{
|
||||||
BAlert *alert = new BAlert("about",
|
BAlert *alert = new BAlert("about",
|
||||||
"OverlayImage\n"
|
B_TRANSLATE("OverlayImage\n"
|
||||||
"Copyright 1999-2010\n\n\t"
|
"Copyright 1999-2010\n\n\t"
|
||||||
"originally by Seth Flaxman\n\t"
|
"originally by Seth Flaxman\n\t"
|
||||||
"modified by Hartmuth Reh\n\t"
|
"modified by Hartmuth Reh\n\t"
|
||||||
"further modified by Humdinger\n",
|
"further modified by Humdinger\n"),
|
||||||
"OK");
|
"OK");
|
||||||
BTextView *view = alert->TextView();
|
BTextView *view = alert->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
|||||||
@@ -706,7 +706,7 @@ ScreenshotWindow::_ShowSettings(bool activate)
|
|||||||
translator, NULL, &view, &rect);
|
translator, NULL, &view, &rect);
|
||||||
if (status != B_OK || view == NULL) {
|
if (status != B_OK || view == NULL) {
|
||||||
// TODO: proper translation, better error dialog
|
// 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->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||||
alert->Go();
|
alert->Go();
|
||||||
} else if (fSettingsWindow != NULL) {
|
} else if (fSettingsWindow != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user