Ticket #7151: syslog_daemon-localization.patch
File syslog_daemon-localization.patch, 1.8 KB (added by , 13 years ago) |
---|
-
src/servers/syslog_daemon/SyslogDaemon.cpp
9 9 #include "syslog_output.h" 10 10 11 11 #include <Alert.h> 12 #include <TextView.h> 12 #include <Catalog.h> 13 #include <FindDirectory.h> 13 14 #include <Font.h> 14 #include <FindDirectory.h>15 15 #include <Path.h> 16 #include <TextView.h> 16 17 17 18 #include <stdio.h> 18 19 #include <string.h> 19 20 21 #undef B_TRANSLATE_CONTEXT 22 #define B_TRANSLATE_CONTEXT "SyslogDaemon" 20 23 24 21 25 const char *kSignature = "application/x-vnd.Haiku-SystemLogger"; 26 static const BString kAboutStr(B_TRANSLATE_MARK("Syslog Daemon\n\n" 27 "This daemon is responsible for collecting " 28 "all system messages and write them to the " 29 "system-wide log at \"%s\".\n\n")); 30 static const BString kOKStr(B_TRANSLATE_MARK("OK")); 22 31 23 32 24 33 SyslogDaemon::SyslogDaemon() … … 53 62 54 63 char message[512]; 55 64 sprintf(message, 56 "Syslog Daemon\n\n" 57 "This daemon is responsible for collecting " 58 "all system messages and write them to the " 59 "system-wide log at \"%s\".\n\n", path.Path()); 65 kAboutStr.String(), path.Path()); 60 66 61 BAlert *alert = new BAlert("Syslog daemon", message, "OK"); 67 BAlert *alert = new BAlert("Syslog daemon", message, 68 kAboutStr.String()); 62 69 BTextView *view = alert->TextView(); 63 70 BFont font; 64 71 -
src/servers/syslog_daemon/Jamfile
16 16 be $(TARGET_LIBSUPC++) 17 17 ; 18 18 19 DoCatalogs syslog_daemon : 20 x-vnd.Haiku-SystemLogger 21 : 22 SyslogDaemon.cpp 23 ; 24 19 25 SEARCH on [ FGristFiles 20 26 strlcpy.c 21 27 ] = [ FDirName $(HAIKU_TOP) src system libroot posix string ] ;