1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-08 05:56:35 +01:00

Revert "Merge branch 'Ansa89-add_translation'"

This reverts commit 312d0c3f42, reversing
changes made to 409e4ddd96.
This commit is contained in:
Jfreegman
2015-07-08 21:08:55 -04:00
parent 84a0276668
commit 40b220c821
37 changed files with 441 additions and 5550 deletions

View File

@@ -25,12 +25,6 @@
#include <time.h>
#include <sys/stat.h>
#ifdef NO_GETTEXT
#define gettext(A) (A)
#else
#include <libintl.h>
#endif
#include "configdir.h"
#include "toxic.h"
#include "windows.h"
@@ -186,17 +180,17 @@ void load_chat_history(ToxWindow *self, struct chatlog *log)
char *hstbuf = malloc(sz);
if (hstbuf == NULL)
exit_toxic_err(gettext("failed in load_chat_history"), FATALERR_MEMORY);
exit_toxic_err("failed in load_chat_history", FATALERR_MEMORY);
if (fseek(log->file, 0L, SEEK_SET) == -1) {
free(hstbuf);
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, gettext(" * Failed to read log file"));
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, " * Failed to read log file");
return;
}
if (fread(hstbuf, sz, 1, log->file) != 1) {
free(hstbuf);
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, gettext(" * Failed to read log file"));
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, " * Failed to read log file");
return;
}