mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[intl] const language_to_iso639
This commit is contained in:
parent
3f63e79cef
commit
647e00f950
@ -1386,7 +1386,7 @@ new_menu(menu_item_flags_T flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
add_to_menu(struct menu_item **mi, const char *text, char *rtext,
|
add_to_menu(struct menu_item **mi, const char *text, const char *rtext,
|
||||||
main_action_T action_id, menu_func_T func, void *data,
|
main_action_T action_id, menu_func_T func, void *data,
|
||||||
menu_item_flags_T flags)
|
menu_item_flags_T flags)
|
||||||
{
|
{
|
||||||
|
@ -169,7 +169,7 @@ struct menu {
|
|||||||
struct menu_item *new_menu(menu_item_flags_T);
|
struct menu_item *new_menu(menu_item_flags_T);
|
||||||
|
|
||||||
void
|
void
|
||||||
add_to_menu(struct menu_item **mi, const char *text, char *rtext,
|
add_to_menu(struct menu_item **mi, const char *text, const char *rtext,
|
||||||
main_action_T action_id, menu_func_T func, void *data,
|
main_action_T action_id, menu_func_T func, void *data,
|
||||||
menu_item_flags_T flags);
|
menu_item_flags_T flags);
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ iso639_to_language(const char *iso639)
|
|||||||
|
|
||||||
int system_language = 0;
|
int system_language = 0;
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
language_to_iso639(int language)
|
language_to_iso639(int language)
|
||||||
{
|
{
|
||||||
/* Language is "system", we need to extract the index from
|
/* Language is "system", we need to extract the index from
|
||||||
|
@ -148,7 +148,7 @@ extern int name_to_language(const char *name);
|
|||||||
extern int iso639_to_language(const 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 const char *language_to_iso639(int language);
|
||||||
|
|
||||||
extern int get_system_language_index(void);
|
extern int get_system_language_index(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user