mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-22 23:49:50 +00:00
Add Belarusian language option (#15780)
This commit is contained in:
parent
9d46953fa2
commit
43105ab5c7
@ -9880,6 +9880,10 @@ MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_BASQUE,
|
||||
"Basque - Euskara"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_BELARUSIAN,
|
||||
"Belarusian - Беларуская мова"
|
||||
)
|
||||
MSG_HASH(
|
||||
MENU_ENUM_LABEL_VALUE_LANG_BENGALI,
|
||||
"Bengali - বাংলা (Restart Required)"
|
||||
|
@ -291,6 +291,7 @@ enum retro_language
|
||||
RETRO_LANGUAGE_CATALAN = 29,
|
||||
RETRO_LANGUAGE_BRITISH_ENGLISH = 30,
|
||||
RETRO_LANGUAGE_HUNGARIAN = 31,
|
||||
RETRO_LANGUAGE_BELARUSIAN = 32,
|
||||
RETRO_LANGUAGE_LAST,
|
||||
|
||||
/* Ensure sizeof(enum) == sizeof(int) */
|
||||
|
@ -1522,6 +1522,7 @@ static bool rgui_fonts_init(rgui_t *rgui)
|
||||
}
|
||||
|
||||
case RETRO_LANGUAGE_RUSSIAN:
|
||||
case RETRO_LANGUAGE_BELARUSIAN:
|
||||
{
|
||||
rgui->fonts.eng_10x10 = bitmapfont_10x10_load(RETRO_LANGUAGE_ENGLISH);
|
||||
rgui->fonts.rus_10x10 = bitmapfont_10x10_load(RETRO_LANGUAGE_RUSSIAN);
|
||||
@ -4343,6 +4344,7 @@ static void rgui_set_blit_functions(
|
||||
rgui_blit_line = rgui_blit_line_cjk_shadow;
|
||||
break;
|
||||
case RETRO_LANGUAGE_RUSSIAN:
|
||||
case RETRO_LANGUAGE_BELARUSIAN:
|
||||
rgui_blit_line = rgui_blit_line_rus_shadow;
|
||||
break;
|
||||
case RETRO_LANGUAGE_ESPERANTO:
|
||||
@ -4381,6 +4383,7 @@ static void rgui_set_blit_functions(
|
||||
rgui_blit_line = rgui_blit_line_cjk;
|
||||
break;
|
||||
case RETRO_LANGUAGE_RUSSIAN:
|
||||
case RETRO_LANGUAGE_BELARUSIAN:
|
||||
rgui_blit_line = rgui_blit_line_rus;
|
||||
break;
|
||||
case RETRO_LANGUAGE_ESPERANTO:
|
||||
|
@ -3219,6 +3219,9 @@ static void setting_get_string_representation_uint_ai_service_lang(
|
||||
case TRANSLATION_LANG_UK:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_UKRAINIAN;
|
||||
break;
|
||||
case TRANSLATION_LANG_BE:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_BELARUSIAN;
|
||||
break;
|
||||
case TRANSLATION_LANG_UR:
|
||||
enum_idx = MENU_ENUM_LABEL_VALUE_LANG_URDU;
|
||||
break;
|
||||
@ -6924,6 +6927,7 @@ static void setting_get_string_representation_uint_user_language(
|
||||
translated[RETRO_LANGUAGE_BRITISH_ENGLISH] = LANGUAGE_PROGRESS_ENGLISH_UNITED_KINGDOM_TRANSLATED;
|
||||
|
||||
LANG_DATA(HUNGARIAN)
|
||||
LANG_DATA(BELARUSIAN)
|
||||
|
||||
if (*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE) == RETRO_LANGUAGE_ENGLISH)
|
||||
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
|
||||
|
17
msg_hash.c
17
msg_hash.c
@ -128,6 +128,8 @@ const char *get_user_language_iso639_1(bool limit)
|
||||
return "en_gb";
|
||||
case RETRO_LANGUAGE_HUNGARIAN:
|
||||
return "hu";
|
||||
case RETRO_LANGUAGE_BELARUSIAN:
|
||||
return "be";
|
||||
}
|
||||
return "en";
|
||||
}
|
||||
@ -217,6 +219,18 @@ static const char *msg_hash_to_str_hu(enum msg_hash_enums msg)
|
||||
return "null";
|
||||
}
|
||||
|
||||
static const char *msg_hash_to_str_be(enum msg_hash_enums msg)
|
||||
{
|
||||
switch (msg)
|
||||
{
|
||||
#include "intl/msg_hash_be.h"
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return "null";
|
||||
}
|
||||
|
||||
static const char *msg_hash_to_str_en(enum msg_hash_enums msg)
|
||||
{
|
||||
switch (msg)
|
||||
@ -607,6 +621,9 @@ const char *msg_hash_to_str(enum msg_hash_enums msg)
|
||||
case RETRO_LANGUAGE_HUNGARIAN:
|
||||
ret = msg_hash_to_str_hu(msg);
|
||||
break;
|
||||
case RETRO_LANGUAGE_BELARUSIAN:
|
||||
ret = msg_hash_to_str_be(msg);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -3471,6 +3471,7 @@ enum msg_hash_enums
|
||||
MENU_ENUM_LABEL_VALUE_LANG_TELUGU,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_THAI,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_UKRAINIAN,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_BELARUSIAN,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_URDU,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_CATALAN_VALENCIA,
|
||||
MENU_ENUM_LABEL_VALUE_LANG_WELSH,
|
||||
|
@ -7342,6 +7342,7 @@ enum retro_language retroarch_get_language_from_iso(const char *iso639)
|
||||
{"en_GB", RETRO_LANGUAGE_BRITISH_ENGLISH},
|
||||
{"en", RETRO_LANGUAGE_ENGLISH},
|
||||
{"hu", RETRO_LANGUAGE_HUNGARIAN},
|
||||
{"be", RETRO_LANGUAGE_BELARUSIAN},
|
||||
};
|
||||
|
||||
if (string_is_empty(iso639))
|
||||
|
@ -456,6 +456,8 @@ static const char* ai_service_get_str(enum translation_lang id)
|
||||
return "tr";
|
||||
case TRANSLATION_LANG_UK:
|
||||
return "uk";
|
||||
case TRANSLATION_LANG_BE:
|
||||
return "be";
|
||||
case TRANSLATION_LANG_UR:
|
||||
return "ur";
|
||||
case TRANSLATION_LANG_VI:
|
||||
|
@ -64,6 +64,7 @@ enum translation_lang
|
||||
TRANSLATION_LANG_TH, /* Thai */
|
||||
TRANSLATION_LANG_TR, /* Turkish */
|
||||
TRANSLATION_LANG_UK, /* Ukrainian */
|
||||
TRANSLATION_LANG_BE, /* Belarusian */
|
||||
TRANSLATION_LANG_UR, /* Urdu */
|
||||
TRANSLATION_LANG_VI, /* Vietnamese */
|
||||
TRANSLATION_LANG_CY, /* Welsh */
|
||||
|
Loading…
Reference in New Issue
Block a user