1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-13 04:16:45 +02:00

Revert commit 312d0c3 (localization/gettext)

There were serious problems with branch merging that need to be resolved first
This commit is contained in:
Jfreegman
2015-07-04 01:19:16 -04:00
parent 444d8e7a74
commit 035420e5c7
37 changed files with 441 additions and 5552 deletions

View File

@ -24,12 +24,6 @@
#include <stdio.h>
#include <string.h>
#ifdef NO_GETTEXT
#define gettext(A) (A)
#else
#include <libintl.h>
#endif
#include "misc_tools.h"
#include "file_transfers.h"
#include "friendlist.h"
@ -65,7 +59,7 @@ int avatar_send(Tox *m, uint32_t friendnum)
return 0;
if (err != TOX_ERR_FILE_SEND_OK) {
fprintf(stderr, gettext("tox_file_send failed for friendnumber %d (error %d)\n"), friendnum, err);
fprintf(stderr, "tox_file_send failed for friendnumber %d (error %d)\n", friendnum, err);
return -1;
}
@ -209,7 +203,7 @@ void on_avatar_chunk_request(Tox *m, struct FileTransfer *ft, uint64_t position,
tox_file_send_chunk(m, ft->friendnum, ft->filenum, position, send_data, send_length, &err);
if (err != TOX_ERR_FILE_SEND_CHUNK_OK)
fprintf(stderr, gettext("tox_file_send_chunk failed in avatar callback (error %d)\n"), err);
fprintf(stderr, "tox_file_send_chunk failed in avatar callback (error %d)\n", err);
ft->position += send_length;
}