Merge pull request #11666 from gouchi/finnish

intl: Add Finnish language
This commit is contained in:
Autechre 2020-12-12 21:45:06 +01:00 committed by GitHub
commit 12dc69c501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 2360 additions and 1 deletions

View File

@ -399,7 +399,8 @@ ifeq ($(HAVE_LANGEXTRA), 1)
intl/msg_hash_sk.o \
intl/msg_hash_fa.o \
intl/msg_hash_he.o \
intl/msg_hash_ast.o
intl/msg_hash_ast.o \
intl/msg_hash_fi.o
endif
ifneq ($(HAVE_GETOPT_LONG), 1)

View File

@ -1233,6 +1233,7 @@ RETROARCH
#include "../intl/msg_hash_fa.c"
#include "../intl/msg_hash_he.c"
#include "../intl/msg_hash_ast.c"
#include "../intl/msg_hash_fi.c"
#endif
#include "../intl/msg_hash_us.c"

2336
intl/msg_hash_fi.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -282,6 +282,7 @@ enum retro_language
RETRO_LANGUAGE_PERSIAN = 20,
RETRO_LANGUAGE_HEBREW = 21,
RETRO_LANGUAGE_ASTURIAN = 22,
RETRO_LANGUAGE_FINNISH = 23,
RETRO_LANGUAGE_LAST,
/* Ensure sizeof(enum) == sizeof(int) */

View File

@ -120,6 +120,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
NULL, /* RETRO_LANGUAGE_PERSIAN */
NULL, /* RETRO_LANGUAGE_HEBREW */
NULL, /* RETRO_LANGUAGE_ASTURIAN */
NULL, /* RETRO_LANGUAGE_FINNISH */
};
#endif

View File

@ -81,6 +81,8 @@ extern "C" {
/* RETRO_LANGUAGE_ASTURIAN */
/* RETRO_LANGUAGE_FINNISH */
#ifdef __cplusplus
}
#endif

View File

@ -135,6 +135,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
NULL, /* RETRO_LANGUAGE_PERSIAN */
NULL, /* RETRO_LANGUAGE_HEBREW */
NULL, /* RETRO_LANGUAGE_ASTURIAN */
NULL, /* RETRO_LANGUAGE_FINNISH */
};
#endif

View File

@ -81,6 +81,8 @@ extern "C" {
/* RETRO_LANGUAGE_ASTURIAN */
/* RETRO_LANGUAGE_FINNISH */
#ifdef __cplusplus
}
#endif

View File

@ -120,6 +120,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
NULL, /* RETRO_LANGUAGE_PERSIAN */
NULL, /* RETRO_LANGUAGE_HEBREW */
NULL, /* RETRO_LANGUAGE_ASTURIAN */
NULL, /* RETRO_LANGUAGE_FINNISH */
};
#endif

View File

@ -116,6 +116,8 @@ struct retro_core_option_definition option_defs_fr[] = {
/* RETRO_LANGUAGE_ASTURIAN */
/* RETRO_LANGUAGE_FINNISH */
#ifdef __cplusplus
}
#endif

View File

@ -6334,6 +6334,7 @@ static void setting_get_string_representation_uint_user_language(
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);
modes[RETRO_LANGUAGE_FINNISH] = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LANG_FINNISH);
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
}
#endif

View File

@ -100,6 +100,8 @@ int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
case RETRO_LANGUAGE_ASTURIAN:
ret = msg_hash_get_help_ast_enum(msg, s, len);
break;
case RETRO_LANGUAGE_FINNISH:
ret = msg_hash_get_help_fi_enum(msg, s, len);
default:
break;
}
@ -163,6 +165,8 @@ const char *get_user_language_iso639_1(bool limit)
return "he";
case RETRO_LANGUAGE_ASTURIAN:
return "ast";
case RETRO_LANGUAGE_FINNISH:
return "fi";
}
return "en";
}
@ -240,6 +244,9 @@ const char *msg_hash_to_str(enum msg_hash_enums msg)
case RETRO_LANGUAGE_ASTURIAN:
ret = msg_hash_to_str_ast(msg);
break;
case RETRO_LANGUAGE_FINNISH:
ret = msg_hash_to_str_fi(msg);
break;
default:
break;
}

View File

@ -3134,6 +3134,9 @@ int msg_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 msg_hash_get_help_ast_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_fi(enum msg_hash_enums msg);
int msg_hash_get_help_fi_enum(enum msg_hash_enums msg, char *s, size_t len);
int msg_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);