97 while ((next = strstr(line,
"\\n")) != NULL) {
118 if ((fp = fopen(filename,
"r")) == NULL) {
124 while (fgets(line,
MAX_BUF, fp)) {
125 if (strstr(line,
"#") != line) {
126 line[strlen(line)-1] =
'\0';
127 token = strtok(line,
"|");
129 token = strtok(NULL,
"|");
130 buffer = malloc(
sizeof(
char)*(strlen(token)+1));
131 strcpy(buffer, token);
const char * language_names[]
const char * language_codes[]
static void convert_newline(char *line)
int snprintf(char *dest, int max, const char *format,...)
int get_language(object *op)
void LOG(LogLevel logLevel, const char *format,...)
const char * i18n_strings[NUM_LANGUAGES][NUM_I18N_STRINGS]
char * strerror_local(int errnum, char *buf, size_t size)
const char * i18n_translate(int language, int id)