mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 02:00:41 +00:00
Add Persian, Hebrew and Asturian language options
This commit is contained in:
parent
a3cce404b6
commit
0701b99039
@ -327,7 +327,10 @@ ifeq ($(HAVE_LANGEXTRA), 1)
|
||||
intl/msg_hash_ar.o \
|
||||
intl/msg_hash_el.o \
|
||||
intl/msg_hash_tr.o \
|
||||
intl/msg_hash_sk.o
|
||||
intl/msg_hash_sk.o \
|
||||
intl/msg_hash_fa.o \
|
||||
intl/msg_hash_he.o \
|
||||
intl/msg_hash_ast.o
|
||||
endif
|
||||
|
||||
ifneq ($(HAVE_GETOPT_LONG), 1)
|
||||
|
@ -1147,6 +1147,9 @@ RETROARCH
|
||||
#include "../intl/msg_hash_el.c"
|
||||
#include "../intl/msg_hash_tr.c"
|
||||
#include "../intl/msg_hash_sk.c"
|
||||
#include "../intl/msg_hash_fa.c"
|
||||
#include "../intl/msg_hash_he.c"
|
||||
#include "../intl/msg_hash_ast.c"
|
||||
#endif
|
||||
|
||||
#include "../intl/msg_hash_us.c"
|
||||
|
@ -6157,6 +6157,10 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_ARABIC,
|
||||
"Arabic - عربى (Restart)"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_ASTURIAN,
|
||||
"Asturian - Asturianu"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_AZERBAIJANI,
|
||||
"Azerbaijani"
|
||||
|
@ -279,6 +279,9 @@ enum retro_language
|
||||
RETRO_LANGUAGE_GREEK = 17,
|
||||
RETRO_LANGUAGE_TURKISH = 18,
|
||||
RETRO_LANGUAGE_SLOVAK = 19,
|
||||
RETRO_LANGUAGE_PERSIAN = 20,
|
||||
RETRO_LANGUAGE_HEBREW = 21,
|
||||
RETRO_LANGUAGE_ASTURIAN = 22,
|
||||
RETRO_LANGUAGE_LAST,
|
||||
|
||||
/* Ensure sizeof(enum) == sizeof(int) */
|
||||
|
@ -117,6 +117,10 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
||||
NULL, /* RETRO_LANGUAGE_GREEK */
|
||||
NULL, /* RETRO_LANGUAGE_TURKISH */
|
||||
NULL, /* RETRO_LANGUAGE_SLOVAK */
|
||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -75,6 +75,12 @@ extern "C" {
|
||||
|
||||
/* RETRO_LANGUAGE_SLOVAK */
|
||||
|
||||
/* RETRO_LANGUAGE_PERSIAN */
|
||||
|
||||
/* RETRO_LANGUAGE_HEBREW */
|
||||
|
||||
/* RETRO_LANGUAGE_ASTURIAN */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -132,6 +132,9 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
||||
NULL, /* RETRO_LANGUAGE_GREEK */
|
||||
NULL, /* RETRO_LANGUAGE_TURKISH */
|
||||
NULL, /* RETRO_LANGUAGE_SLOVAK */
|
||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -75,6 +75,12 @@ extern "C" {
|
||||
|
||||
/* RETRO_LANGUAGE_SLOVAK */
|
||||
|
||||
/* RETRO_LANGUAGE_PERSIAN */
|
||||
|
||||
/* RETRO_LANGUAGE_HEBREW */
|
||||
|
||||
/* RETRO_LANGUAGE_ASTURIAN */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -117,6 +117,9 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
||||
NULL, /* RETRO_LANGUAGE_GREEK */
|
||||
NULL, /* RETRO_LANGUAGE_TURKISH */
|
||||
NULL, /* RETRO_LANGUAGE_SLOVAK */
|
||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -110,6 +110,12 @@ struct retro_core_option_definition option_defs_fr[] = {
|
||||
|
||||
/* RETRO_LANGUAGE_SLOVAK */
|
||||
|
||||
/* RETRO_LANGUAGE_PERSIAN */
|
||||
|
||||
/* RETRO_LANGUAGE_HEBREW */
|
||||
|
||||
/* RETRO_LANGUAGE_ASTURIAN */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -2978,6 +2978,9 @@ static void setting_get_string_representation_uint_ai_service_lang(
|
||||
case TRANSLATION_LANG_CA:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_CATALAN;
|
||||
break;
|
||||
case TRANSLATION_LANG_AST:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_ASTURIAN;
|
||||
break;
|
||||
case TRANSLATION_LANG_BG:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_BULGARIAN;
|
||||
break;
|
||||
@ -3017,7 +3020,7 @@ static void setting_get_string_representation_uint_ai_service_lang(
|
||||
case TRANSLATION_LANG_HT:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_HAITIAN_CREOLE;
|
||||
break;
|
||||
case TRANSLATION_LANG_IW:
|
||||
case TRANSLATION_LANG_HE:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_HEBREW;
|
||||
break;
|
||||
case TRANSLATION_LANG_HI:
|
||||
@ -5958,6 +5961,9 @@ static void setting_get_string_representation_uint_user_language(
|
||||
modes[RETRO_LANGUAGE_GREEK] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_GREEK);
|
||||
modes[RETRO_LANGUAGE_TURKISH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_TURKISH);
|
||||
modes[RETRO_LANGUAGE_SLOVAK] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_SLOVAK);
|
||||
modes[RETRO_LANGUAGE_PERSIAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_PERSIAN);
|
||||
modes[RETRO_LANGUAGE_HEBREW] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_HEBREW);
|
||||
modes[RETRO_LANGUAGE_ASTURIAN] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_ASTURIAN);
|
||||
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
|
||||
}
|
||||
#endif
|
||||
|
24
msg_hash.c
24
msg_hash.c
@ -92,6 +92,15 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
|
||||
case RETRO_LANGUAGE_SLOVAK:
|
||||
ret = menu_hash_get_help_sk_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_PERSIAN:
|
||||
ret = menu_hash_get_help_fa_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_HEBREW:
|
||||
ret = menu_hash_get_help_he_enum(msg, s, len);
|
||||
break;
|
||||
case RETRO_LANGUAGE_ASTURIAN:
|
||||
ret = menu_hash_get_help_ast_enum(msg, s, len);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -174,6 +183,12 @@ const char *get_user_language_iso639_1(bool limit)
|
||||
break;
|
||||
case RETRO_LANGUAGE_RUSSIAN:
|
||||
voice = "ru";
|
||||
case RETRO_LANGUAGE_PERSIAN:
|
||||
voice = "fa";
|
||||
case RETRO_LANGUAGE_HEBREW:
|
||||
voice = "he";
|
||||
case RETRO_LANGUAGE_ASTURIAN:
|
||||
voice = "ast";
|
||||
break;
|
||||
|
||||
}
|
||||
@ -244,6 +259,15 @@ const char *msg_hash_to_str(enum msg_hash_enums msg)
|
||||
case RETRO_LANGUAGE_SLOVAK:
|
||||
ret = msg_hash_to_str_sk(msg);
|
||||
break;
|
||||
case RETRO_LANGUAGE_PERSIAN:
|
||||
ret = msg_hash_to_str_fa(msg);
|
||||
break;
|
||||
case RETRO_LANGUAGE_HEBREW:
|
||||
ret = msg_hash_to_str_he(msg);
|
||||
break;
|
||||
case RETRO_LANGUAGE_ASTURIAN:
|
||||
ret = msg_hash_to_str_ast(msg);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
10
msg_hash.h
10
msg_hash.h
@ -2278,6 +2278,7 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_VALUE_LANG_GREEK,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_TURKISH,
|
||||
|
||||
MENU_ENUM_LABEL_VALUE_LANG_ASTURIAN,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_CZECH,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_DANISH,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_SWEDISH,
|
||||
@ -2856,6 +2857,15 @@ int menu_hash_get_help_tr_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
const char *msg_hash_to_str_sk(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_sk_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
const char *msg_hash_to_str_fa(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_fa_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
const char *msg_hash_to_str_he(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_he_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
const char *msg_hash_to_str_ast(enum msg_hash_enums msg);
|
||||
int menu_hash_get_help_ast_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len);
|
||||
|
||||
enum msg_file_type msg_hash_to_file_type(uint32_t hash);
|
||||
|
418
retroarch.c
418
retroarch.c
File diff suppressed because it is too large
Load Diff
@ -26,6 +26,7 @@ enum translation_lang
|
||||
TRANSLATION_LANG_AR, /* Arabic */
|
||||
TRANSLATION_LANG_SQ, /* Albanian */
|
||||
TRANSLATION_LANG_AF, /* Afrikaans */
|
||||
TRANSLATION_LANG_AST, /* Asturian */
|
||||
TRANSLATION_LANG_EO, /* Esperanto */
|
||||
TRANSLATION_LANG_ET, /* Estonian */
|
||||
TRANSLATION_LANG_TL, /* Filipino */
|
||||
@ -35,7 +36,7 @@ enum translation_lang
|
||||
TRANSLATION_LANG_EL, /* Greek */
|
||||
TRANSLATION_LANG_GU, /* Gujarati */
|
||||
TRANSLATION_LANG_HT, /* Haitian Creole */
|
||||
TRANSLATION_LANG_IW, /* Hebrew */
|
||||
TRANSLATION_LANG_HE, /* Hebrew */
|
||||
TRANSLATION_LANG_HI, /* Hindi */
|
||||
TRANSLATION_LANG_HU, /* Hungarian */
|
||||
TRANSLATION_LANG_IS, /* Icelandic */
|
||||
|
Loading…
Reference in New Issue
Block a user