mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[libintl] const in iso code
This commit is contained in:
parent
9916273dd7
commit
26c3e5feb7
@ -71,7 +71,7 @@ struct language languages[] = {
|
|||||||
* other side, it's ISO639 for gettext as well etc. So what? --pasky */
|
* other side, it's ISO639 for gettext as well etc. So what? --pasky */
|
||||||
|
|
||||||
int
|
int
|
||||||
iso639_to_language(char *iso639)
|
iso639_to_language(const char *iso639)
|
||||||
{
|
{
|
||||||
char *l = stracpy(iso639);
|
char *l = stracpy(iso639);
|
||||||
char *p;
|
char *p;
|
||||||
|
@ -138,14 +138,14 @@ extern char *EL_LANGUAGE;
|
|||||||
|
|
||||||
struct language {
|
struct language {
|
||||||
char *name;
|
char *name;
|
||||||
char *iso639;
|
const char *iso639;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct language languages[];
|
extern struct language languages[];
|
||||||
|
|
||||||
/* These two calls return 1 (english) if the code/name wasn't found. */
|
/* These two calls return 1 (english) if the code/name wasn't found. */
|
||||||
extern int name_to_language(const char *name);
|
extern int name_to_language(const char *name);
|
||||||
extern int iso639_to_language(char *iso639);
|
extern int iso639_to_language(const char *iso639);
|
||||||
|
|
||||||
extern char *language_to_name(int language);
|
extern char *language_to_name(int language);
|
||||||
extern char *language_to_iso639(int language);
|
extern char *language_to_iso639(int language);
|
||||||
|
Loading…
Reference in New Issue
Block a user