summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2003-05-16 13:08:11 +0000
committerpixel <pixel>2003-05-16 13:08:11 +0000
commit0a6d446c95e157d53df18572cc04c302c0d53214 (patch)
treee5662e87be82d21af3d2b7c6459d1c46a87f638e
parentefb47cdc3092e72148a1b592383f9ffed12b2b16 (diff)
Still GETTEXT thing
-rw-r--r--include/Main.h1
-rw-r--r--include/gettext.h2
-rw-r--r--lib/String.cc7
-rw-r--r--po/fr.po20
4 files changed, 17 insertions, 13 deletions
diff --git a/include/Main.h b/include/Main.h
index 0e3885a..014fc6b 100644
--- a/include/Main.h
+++ b/include/Main.h
@@ -1,6 +1,7 @@
#ifndef __MAIN_H__
#define __MAIN_H__
+#include "gettext.h"
#include "Exceptions.h"
extern char ** environ;
diff --git a/include/gettext.h b/include/gettext.h
index 248bf2e..689f8de 100644
--- a/include/gettext.h
+++ b/include/gettext.h
@@ -54,6 +54,8 @@
# define textdomain(Domainname) ((const char *) (Domainname))
# define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname))
# define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
+# define setlocale(category, locale)
+# define LC_ALL 0
#endif
diff --git a/lib/String.cc b/lib/String.cc
index ba84b4c..265883f 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -1,7 +1,8 @@
-#include <iostream>
+#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
+#include <iostream>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -27,6 +28,10 @@ String::String(const String & s) : str(Base::strdup(s.str)), siz(s.siz) {
#endif
}
+#ifndef asprintf
+extern "C" int asprintf(char **, const char *, ...);
+#endif
+
String::String(char c) : siz(1) {
#ifdef DEBUG
fprintf(stderr, _("Creating a string with `%c' at %p, this = %p\n"), c, str, this);
diff --git a/po/fr.po b/po/fr.po
index 2e83679..51b5061 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Baltisot 1.0.0\n"
-"POT-Creation-Date: 2003-03-19 13:40+0100\n"
+"POT-Creation-Date: 2003-05-16 14:28+0200\n"
"PO-Revision-Date: 2001-10-29 08:26GMT\n"
"Last-Translator: Nicolas Noble <nicolas@nobis-crew.org>\n"
"Language-Team: French <fr@li.org>\n"
@@ -72,21 +72,11 @@ msgstr "Sortie avec le code "
msgid "Generating an Exit exception: '"
msgstr "Génération d'une Exception Exit: '"
-#: lib/Exceptions.cc:106
-#, c-format
-msgid "Allocating %i bytes of memory, got it at %p\n"
-msgstr "Allocation de %i octets de mémoire, recu à %p\n"
-
#: lib/Exceptions.cc:117
#, c-format
msgid "Reallocating pointer at %p for %i bytes, now at %p\n"
msgstr "Réallocation du pointeur à %p de %i octets, maintenant à %p\n"
-#: lib/Exceptions.cc:138
-#, c-format
-msgid "Freeing pointer at %p\n"
-msgstr "Libération du pointeur à %p\n"
-
#: lib/Exceptions.cc:149
msgid "Error creating pipe: "
msgstr "Erreur en créant un tube: "
@@ -408,7 +398,7 @@ msgstr " en écriture: "
msgid "ReadJob from "
msgstr "ReadJob depuis "
-#: lib/Regex.cc:15
+#: lib/Regex.cc:15 lib/Regex.cc:26
msgid "Error in regcomp:"
msgstr "Erreur dans regcomp:"
@@ -492,3 +482,9 @@ msgstr "Erreur avec poll, handle "
#: lib/TaskMan.cc:340
msgid " invalid."
msgstr " invalide."
+
+#~ msgid "Allocating %i bytes of memory, got it at %p\n"
+#~ msgstr "Allocation de %i octets de mémoire, recu à %p\n"
+
+#~ msgid "Freeing pointer at %p\n"
+#~ msgstr "Libération du pointeur à %p\n"