Applied yet another localization patch made by Jorma Karvonen.
Fixes #7151. Thanks. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40545 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
92e68ec1f8
commit
7729a8c8f7
|
@ -13,7 +13,13 @@ Server syslog_daemon :
|
||||||
# ToDo: this can be removed for the Haiku build
|
# ToDo: this can be removed for the Haiku build
|
||||||
strlcpy.c
|
strlcpy.c
|
||||||
:
|
:
|
||||||
be $(TARGET_LIBSUPC++)
|
be $(TARGET_LIBSUPC++) $(HAIKU_LOCALE_LIBS)
|
||||||
|
;
|
||||||
|
|
||||||
|
DoCatalogs syslog_daemon :
|
||||||
|
x-vnd.Haiku-SystemLogger
|
||||||
|
:
|
||||||
|
SyslogDaemon.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
SEARCH on [ FGristFiles
|
SEARCH on [ FGristFiles
|
||||||
|
|
|
@ -9,14 +9,17 @@
|
||||||
#include "syslog_output.h"
|
#include "syslog_output.h"
|
||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <TextView.h>
|
#include <Catalog.h>
|
||||||
#include <Font.h>
|
|
||||||
#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
|
#include <Font.h>
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
|
#include <TextView.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#undef B_TRANSLATE_CONTEXT
|
||||||
|
#define B_TRANSLATE_CONTEXT "SyslogDaemon"
|
||||||
|
|
||||||
const char *kSignature = "application/x-vnd.Haiku-SystemLogger";
|
const char *kSignature = "application/x-vnd.Haiku-SystemLogger";
|
||||||
|
|
||||||
|
@ -51,14 +54,15 @@ SyslogDaemon::AboutRequested()
|
||||||
find_directory(B_COMMON_LOG_DIRECTORY, &path);
|
find_directory(B_COMMON_LOG_DIRECTORY, &path);
|
||||||
path.Append("syslog");
|
path.Append("syslog");
|
||||||
|
|
||||||
char message[512];
|
BString name(B_TRANSLATE("Syslog Daemon"));
|
||||||
sprintf(message,
|
BString message;
|
||||||
"Syslog Daemon\n\n"
|
snprintf(message.LockBuffer(512), 512,
|
||||||
"This daemon is responsible for collecting "
|
B_TRANSLATE("%s\n\nThis daemon is responsible for collecting "
|
||||||
"all system messages and write them to the "
|
"all system messages and write them to the system-wide log "
|
||||||
"system-wide log at \"%s\".\n\n", path.Path());
|
"at \"%s\".\n\n"), name.String(), path.Path());
|
||||||
|
message.UnlockBuffer();
|
||||||
|
|
||||||
BAlert *alert = new BAlert("Syslog daemon", message, "OK");
|
BAlert *alert = new BAlert(name.String(), message.String(), B_TRANSLATE("OK"));
|
||||||
BTextView *view = alert->TextView();
|
BTextView *view = alert->TextView();
|
||||||
BFont font;
|
BFont font;
|
||||||
|
|
||||||
|
@ -67,7 +71,7 @@ SyslogDaemon::AboutRequested()
|
||||||
view->GetFont(&font);
|
view->GetFont(&font);
|
||||||
font.SetSize(21);
|
font.SetSize(21);
|
||||||
font.SetFace(B_BOLD_FACE);
|
font.SetFace(B_BOLD_FACE);
|
||||||
view->SetFontAndColor(0, 13, &font);
|
view->SetFontAndColor(0, name.Length(), &font);
|
||||||
|
|
||||||
alert->Go(NULL);
|
alert->Go(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue