diff --git a/intl/msg_hash_nl.c b/intl/msg_hash_nl.c index c10380670c..cada31523c 100644 --- a/intl/msg_hash_nl.c +++ b/intl/msg_hash_nl.c @@ -12,13 +12,35 @@ * You should have received a copy of the GNU General Public License along with RetroArch. * If not, see . */ +#include #include #include #include +#include #include "../msg_hash.h" +int menu_hash_get_help_nl_enum(enum msg_hash_enums msg, char *s, size_t len) +{ + int ret = 0; + + switch (msg) + { + case MENU_ENUM_LABEL_WELCOME_TO_RETROARCH: + snprintf(s, len, + "Welkom bij RetroArch\n" + ); + break; + default: + strlcpy(s, "Geen informatie beschikbaar.", len); + ret = -1; + break; + } + + return ret; +} + int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len) { int ret = 0; diff --git a/intl/msg_hash_us.c b/intl/msg_hash_us.c index c4f2694e01..3bd4f9d9f0 100644 --- a/intl/msg_hash_us.c +++ b/intl/msg_hash_us.c @@ -123,11 +123,6 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len) "This might take a while...\n" ); break; - case MENU_LABEL_WELCOME_TO_RETROARCH: - snprintf(s, len, - "Welcome to RetroArch\n" - ); - break; case MENU_LABEL_INPUT_DRIVER: if (settings) driver_hash = msg_hash_calculate(settings->input.driver); diff --git a/msg_hash.c b/msg_hash.c index 1975967a6f..7a3825237d 100644 --- a/msg_hash.c +++ b/msg_hash.c @@ -35,28 +35,30 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len) { #if 0 case RETRO_LANGUAGE_FRENCH: - ret = menu_hash_get_help_fr_enum(hash, s, len); + ret = menu_hash_get_help_fr_enum(msg, s, len); break; case RETRO_LANGUAGE_GERMAN: - ret = menu_hash_get_help_de_enum(hash, s, len); + ret = menu_hash_get_help_de_enum(msg, s, len); break; case RETRO_LANGUAGE_SPANISH: - ret = menu_hash_get_help_es_enum(hash, s, len); + ret = menu_hash_get_help_es_enum(msg, s, len); break; case RETRO_LANGUAGE_ITALIAN: - ret = menu_hash_get_help_it_enum(hash, s, len); + ret = menu_hash_get_help_it_enum(msg, s, len); break; case RETRO_LANGUAGE_PORTUGUESE: - ret = menu_hash_get_help_pt_enum(hash, s, len); + ret = menu_hash_get_help_pt_enum(msg, s, len); break; +#endif case RETRO_LANGUAGE_DUTCH: - ret = menu_hash_get_help_nl_enum(hash, s, len); + ret = menu_hash_get_help_nl_enum(msg, s, len); break; +#if 0 case RETRO_LANGUAGE_ESPERANTO: - ret = menu_hash_get_help_eo_enum(hash, s, len); + ret = menu_hash_get_help_eo_enum(msg, s, len); break; case RETRO_LANGUAGE_POLISH: - ret = menu_hash_get_help_pl_enum(hash, s, len); + ret = menu_hash_get_help_pl_enum(msg, s, len); break; #endif default: diff --git a/msg_hash.h b/msg_hash.h index 74d82b341d..677b7c3ed0 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -2157,6 +2157,7 @@ int menu_hash_get_help_pl(uint32_t hash, char *s, size_t len); const char *msg_hash_to_str_nl(enum msg_hash_enums msg); int menu_hash_get_help_nl(uint32_t hash, char *s, size_t len); +int menu_hash_get_help_nl_enum(enum msg_hash_enums msg, char *s, size_t len); const char *msg_hash_to_str_us(enum msg_hash_enums msg); int menu_hash_get_help_us(uint32_t hash, char *s, size_t len);