dirent.h sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h \
ctype.h gd.h gdfontl.h gdfontt.h gdfonts.h gdfontmb.h gdfontg.h iconv.h \
errno.h sys/resource.h sys/wait.h stdarg.h inttypes.h limits.h locale.h \
- execinfo.h ldap.h math.h)
+ execinfo.h ldap.h math.h libintl.h)
AC_CHECK_LIB(gd, gdImagePng,LIBS="-lgd ${LIBS}"; HAVE_GD="yes", HAVE_GD="")
AC_CHECK_LIB(ldap, ldap_init,LIBS="-lldap ${LIBS}"; HAVE_LDAP="yes", HAVE_LDAP="")
AC_CHECK_FUNCS(symlink)
AC_CHECK_FUNCS(lstat)
+dnl check for macros
+AC_CHECK_DECL(LC_MESSAGES,[AC_DEFINE(HAVE_LC_MESSAGES,1,[Have LC_MESSAGES])],[],[[#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif]])
+
dnl check for the rlim_t size
AC_CHECK_SIZEOF(rlim_t,1,[#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
struct userinfostruct *uinfo;
struct userfilestruct *first_user_file, *ufile, *ufile1, *prev_ufile;
+#ifdef HAVE_LOCALE_H
+ setlocale(LC_TIME,"");
+#endif
+
+#if defined(ENABLE_NLS) && defined(HAVE_LOCALE_H) && defined(HAVE_LC_MESSAGES)
+ setlocale (LC_MESSAGES, "");
+ bindtextdomain (PACKAGE_NAME, LOCALEDIR);
+ textdomain (PACKAGE_NAME);
+#endif //ENABLE_NLS
+
BgImage[0]='\0';
LogoImage[0]='\0';
LogoText[0]='\0';
bzero(ExcludeString, sizeof(ExcludeString));
first_user_file=NULL;
-#ifdef HAVE_LOCALE_H
- setlocale(LC_TIME,"");
-#endif
-
-#if defined(ENABLE_NLS) && defined(HAVE_LOCALE_H) && defined(HAVE_LC_MESSAGES)
- setlocale (LC_MESSAGES, "");
- bindtextdomain (PACKAGE_NAME, LOCALEDIR);
- textdomain (PACKAGE_NAME);
-#endif //ENABLE_NLS
-
NAccessLog=0;
for(x=0; x<MAXLOGS; x++)
AccessLog[x][0]='\0';
exit(2);
}
- if(debug) debuga("Init");
+ if(debug) debuga(_("Init"));
if(ConfigFile[0] == '\0') sprintf(ConfigFile,"%s/sarg.conf",SYSCONFDIR);
if(access(ConfigFile, R_OK) != 0) {
- debuga("Cannot open config file: %s - %s",ConfigFile,strerror(errno));
+ debuga(_("Cannot open config file: %s - %s"),ConfigFile,strerror(errno));
exit(1);
}
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Изтриване на стария файл с отчета"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Не мога да намеря log файла"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "normal"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "No es pot obrir l'arxiu de log"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Odstraňuji starý soubor s přehledem"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nemohu otevřít žurnál"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Removing old report file"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Kann Zugriffsprotokoll nicht oeffnen"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Αφαίρεση παλιού αρχείου αναφορών"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Δεν μπορώ να διαβάσω το αρχείο log"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Borrando archivos viejos del reporte"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "No se puede abrir archivo de log"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: 2010-03-05 11:36+0100\n"
"Last-Translator: Frédéric Marchal <fmarchal@perso.be>\n"
"Language-Team: French <traduc@traduc.org>\n"
#: realtime.c:210 realtime.c:214 realtime.c:218 realtime.c:222 splitlog.c:54
#, c-format
msgid "Maybe you have a broken record or garbage in your %s file"
-msgstr "Vous avez probablement un enregistrement erroné ou inattendu dans votre fichier %s"
+msgstr ""
+"Vous avez probablement un enregistrement erroné ou inattendu dans votre "
+"fichier %s"
#: dansguardian_log.c:139 dansguardian_report.c:101 html.c:283 log.c:909
#: log.c:968 realtime.c:227 topsites.c:228
msgid "Removing old report file"
msgstr "Supprime le fichier des anciennes statistiques"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr "Démarrage"
+
+#: log.c:477
+#, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Impossible d'ouvrir le fichier de configuration : %s - %s"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
#: log.c:1541
#, fuzzy
msgid "Log with mixed records format (squid and common log)"
-msgstr "Le journal contient des enregistrements de plusieurs formats (squid et common log)"
+msgstr ""
+"Le journal contient des enregistrements de plusieurs formats (squid et "
+"common log)"
#: log.c:1544
#, fuzzy
msgid ""
"January,February,March,April,May,June,July,August,September,October,November,"
"December"
-msgstr "Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,"
+msgstr ""
+"Janvier,Février,Mars,Avril,Mai,Juin,Juillet,Août,Septembre,Octobre,Novembre,"
"Decembre"
#: util.c:478
#: util.c:1145
#, c-format
-msgid "The date range passed as argument is not formated as dd/mm/yyyy-dd/mm/yyyy"
+msgid ""
+"The date range passed as argument is not formated as dd/mm/yyyy-dd/mm/yyyy"
msgstr ""
#: util.c:1195
#, c-format
msgid "Not enough memory to read one more line from the input log file"
msgstr ""
-
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Removing old report file"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nem tudom megnyitni a log file-t"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Membuang file laporan lama"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Tak bisa buka file log"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Removing old report file"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Non riesco a aprire il log file"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "reverse"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "ログファイルをオープンできません"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Dzēšu vecos atskaišu failus"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nevar atvērt log failu"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Verwijderen oude rapport bestand"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Kan het log bestand niet openen"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Usuniecie pliku starego raportu"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nie moїna otworzyж pliku logowania"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Removendo relatorio antigo"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Erro no open do arquivo log"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Se sterge vechiul raport"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nu poate fi deschis fisierul de accese"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Удаляю старый файл отчета"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Не могу открыть файл журнала"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Odstraňujem starý súbor s prehľadom"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nemôžem otvoríť žurnál"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Sklonjen stari izvestaj"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Nemoguce otvoriti log datoteku"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Eski rapor dosya(lar) siliniyor"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Kutuk dosyasi acilamadi"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"
msgstr ""
"Project-Id-Version: sarg 2.3\n"
"Report-Msgid-Bugs-To: fmarchal@users.sourceforge.net\n"
-"POT-Creation-Date: 2010-03-05 08:32+0100\n"
+"POT-Creation-Date: 2010-03-05 16:33+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "Removing old report file"
msgstr "Знищую старий файл звіту"
+#: log.c:473
+#, c-format
+msgid "Init"
+msgstr ""
+
+#: log.c:477
+#, fuzzy, c-format
+msgid "Cannot open config file: %s - %s"
+msgstr "Не можу відкрити файл журналу"
+
#: log.c:595 log.c:639
#, fuzzy
msgid "Parameters"