summaryrefslogtreecommitdiffstats
path: root/loader2/lang.h
blob: 808c8cc0e960b446c92e6db44e46adda716da982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _LANG_H_
#define _LANG_H_

#include "loader.h"

#define _(x) translateString (x)
#define N_(foo) (foo)

struct langInfo {
    char * lang, * key, * font, * map, * lc_all, * keyboard;
} ;


int chooseLanguage(char ** lang, int flags);
char * translateString(char * str);
void setLanguage (char * key, int flags);
int getLangInfo(struct langInfo **langs, int flags);

void setKickstartLanguage(struct loaderData_s * loaderData, int argc, 
                          char ** argv, int * flagsPtr);

#endif /* _LANG_H_ */