mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Merge pull request #11666 from gouchi/finnish
intl: Add Finnish language
This commit is contained in:
commit
12dc69c501
@ -399,7 +399,8 @@ ifeq ($(HAVE_LANGEXTRA), 1)
|
|||||||
intl/msg_hash_sk.o \
|
intl/msg_hash_sk.o \
|
||||||
intl/msg_hash_fa.o \
|
intl/msg_hash_fa.o \
|
||||||
intl/msg_hash_he.o \
|
intl/msg_hash_he.o \
|
||||||
intl/msg_hash_ast.o
|
intl/msg_hash_ast.o \
|
||||||
|
intl/msg_hash_fi.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(HAVE_GETOPT_LONG), 1)
|
ifneq ($(HAVE_GETOPT_LONG), 1)
|
||||||
|
@ -1233,6 +1233,7 @@ RETROARCH
|
|||||||
#include "../intl/msg_hash_fa.c"
|
#include "../intl/msg_hash_fa.c"
|
||||||
#include "../intl/msg_hash_he.c"
|
#include "../intl/msg_hash_he.c"
|
||||||
#include "../intl/msg_hash_ast.c"
|
#include "../intl/msg_hash_ast.c"
|
||||||
|
#include "../intl/msg_hash_fi.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../intl/msg_hash_us.c"
|
#include "../intl/msg_hash_us.c"
|
||||||
|
2336
intl/msg_hash_fi.c
Normal file
2336
intl/msg_hash_fi.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -282,6 +282,7 @@ enum retro_language
|
|||||||
RETRO_LANGUAGE_PERSIAN = 20,
|
RETRO_LANGUAGE_PERSIAN = 20,
|
||||||
RETRO_LANGUAGE_HEBREW = 21,
|
RETRO_LANGUAGE_HEBREW = 21,
|
||||||
RETRO_LANGUAGE_ASTURIAN = 22,
|
RETRO_LANGUAGE_ASTURIAN = 22,
|
||||||
|
RETRO_LANGUAGE_FINNISH = 23,
|
||||||
RETRO_LANGUAGE_LAST,
|
RETRO_LANGUAGE_LAST,
|
||||||
|
|
||||||
/* Ensure sizeof(enum) == sizeof(int) */
|
/* Ensure sizeof(enum) == sizeof(int) */
|
||||||
|
@ -120,6 +120,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
|||||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
NULL, /* RETRO_LANGUAGE_FINNISH */
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
@ -81,6 +81,8 @@ extern "C" {
|
|||||||
|
|
||||||
/* RETRO_LANGUAGE_ASTURIAN */
|
/* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
|
||||||
|
/* RETRO_LANGUAGE_FINNISH */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -135,6 +135,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
|||||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
NULL, /* RETRO_LANGUAGE_FINNISH */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -81,6 +81,8 @@ extern "C" {
|
|||||||
|
|
||||||
/* RETRO_LANGUAGE_ASTURIAN */
|
/* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
|
||||||
|
/* RETRO_LANGUAGE_FINNISH */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -120,6 +120,7 @@ struct retro_core_option_definition *option_defs_intl[RETRO_LANGUAGE_LAST] = {
|
|||||||
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
NULL, /* RETRO_LANGUAGE_PERSIAN */
|
||||||
NULL, /* RETRO_LANGUAGE_HEBREW */
|
NULL, /* RETRO_LANGUAGE_HEBREW */
|
||||||
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
NULL, /* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
NULL, /* RETRO_LANGUAGE_FINNISH */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -116,6 +116,8 @@ struct retro_core_option_definition option_defs_fr[] = {
|
|||||||
|
|
||||||
/* RETRO_LANGUAGE_ASTURIAN */
|
/* RETRO_LANGUAGE_ASTURIAN */
|
||||||
|
|
||||||
|
/* RETRO_LANGUAGE_FINNISH */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -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_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_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_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);
|
strlcpy(s, modes[*msg_hash_get_uint(MSG_HASH_USER_LANGUAGE)], len);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -100,6 +100,8 @@ int msg_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
|
|||||||
case RETRO_LANGUAGE_ASTURIAN:
|
case RETRO_LANGUAGE_ASTURIAN:
|
||||||
ret = msg_hash_get_help_ast_enum(msg, s, len);
|
ret = msg_hash_get_help_ast_enum(msg, s, len);
|
||||||
break;
|
break;
|
||||||
|
case RETRO_LANGUAGE_FINNISH:
|
||||||
|
ret = msg_hash_get_help_fi_enum(msg, s, len);
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -163,6 +165,8 @@ const char *get_user_language_iso639_1(bool limit)
|
|||||||
return "he";
|
return "he";
|
||||||
case RETRO_LANGUAGE_ASTURIAN:
|
case RETRO_LANGUAGE_ASTURIAN:
|
||||||
return "ast";
|
return "ast";
|
||||||
|
case RETRO_LANGUAGE_FINNISH:
|
||||||
|
return "fi";
|
||||||
}
|
}
|
||||||
return "en";
|
return "en";
|
||||||
}
|
}
|
||||||
@ -240,6 +244,9 @@ const char *msg_hash_to_str(enum msg_hash_enums msg)
|
|||||||
case RETRO_LANGUAGE_ASTURIAN:
|
case RETRO_LANGUAGE_ASTURIAN:
|
||||||
ret = msg_hash_to_str_ast(msg);
|
ret = msg_hash_to_str_ast(msg);
|
||||||
break;
|
break;
|
||||||
|
case RETRO_LANGUAGE_FINNISH:
|
||||||
|
ret = msg_hash_to_str_fi(msg);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
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);
|
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);
|
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);
|
enum msg_file_type msg_hash_to_file_type(uint32_t hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user