summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/String.cc b/lib/String.cc
index 22a9efb..53ecb83 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -10,6 +10,7 @@
#endif
#include "BString.h"
#include "Exceptions.h"
+#include "gettext.h"
char ** gruikptr;
@@ -22,13 +23,13 @@ char String::t[BUFSIZ + 1];
String::String(const String & s) : str(Base::strdup(s.str)), siz(s.siz) {
#ifdef DEBUG
- fprintf(stderr, "Duplicating string `%s', from %p to %p, from this %p to this %p\n", str, s.str, str, s, this);
+ fprintf(stderr, _("Duplicating string `%s', from %p to %p, from this %p to this %p\n"), str, s.str, str, s, this);
#endif
}
String::String(char c) : siz(1) {
#ifdef DEBUG
- fprintf(stderr, "Creating a string with `%c' at %p, this = %p\n", c, str, this);
+ fprintf(stderr, _("Creating a string with `%c' at %p, this = %p\n"), c, str, this);
#endif
#ifndef HAVE_ASPRINTF
char * t = (char *) malloc(2);
@@ -44,13 +45,13 @@ String::String(const char * s) : str(Base::strdup(s)), siz(::strlen(str)) {
gruikptr = &str;
}
#ifdef DEBUG
- fprintf(stderr, "Creating a string with `%s' at %p from %p, this = %p\n", str, str, s, this);
+ fprintf(stderr, _("Creating a string with `%s' at %p from %p, this = %p\n"), str, str, s, this);
#endif
}
String::String(int hs, char * s) : str(Base::strdup(s ? s : "")), siz(hs) {
#ifdef DEBUG
- fprintf(stderr, "Fast-Creating a string with `%s' at %p from %p, this = %p\n", str, str, s, this);
+ fprintf(stderr, _("Fast-Creating a string with `%s' at %p from %p, this = %p\n"), str, str, s, this);
#endif
}
@@ -111,7 +112,7 @@ String::String(double d) {
String::~String() {
#ifdef DEBUG
- fprintf(stderr, "Destroying string @ %p, freeing %p.\n", this, str);
+ fprintf(stderr, _("Destroying string @ %p, freeing %p.\n"), this, str);
#endif
free(str);
}