1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

Add translated versions of menu_hash_get_help_pt_enum

This commit is contained in:
twinaphex 2016-07-24 11:59:24 +02:00
parent 8464156667
commit ea809e0710
9 changed files with 138 additions and 4 deletions

View File

@ -34,6 +34,23 @@
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1];
int menu_hash_get_help_de_enum(enum msg_hash_enums msg, char *s, size_t len)
{
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
(void)sizeof(force_iso_8859_1);
switch (msg)
{
case MSG_UNKNOWN:
default:
return -1;
}
return 0;
}
int menu_hash_get_help_de(uint32_t hash, char *s, size_t len)
{
uint32_t driver_hash = 0;

View File

@ -16,8 +16,24 @@
#include <stdint.h>
#include <string.h>
#include "../configuration.h"
#include "../msg_hash.h"
int menu_hash_get_help_eo_enum(enum msg_hash_enums msg, char *s, size_t len)
{
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
switch (msg)
{
case MSG_UNKNOWN:
default:
return -1;
}
return 0;
}
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len)
{
int ret = 0;

View File

@ -34,6 +34,34 @@
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1];
int menu_hash_get_help_es_enum(enum msg_hash_enums msg, char *s, size_t len)
{
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
(void)sizeof(force_iso_8859_1);
switch (msg)
{
case MENU_ENUM_LABEL_WELCOME_TO_RETROARCH:
snprintf(s, len,
"Bienvenido a RetroArch\n"
"\n"
"Para más información ve al menú \n"
"de Ayuda.\n"
);
break;
case MSG_UNKNOWN:
default:
if (s[0] == '\0')
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE), len);
return -1;
}
return 0;
}
int menu_hash_get_help_es(uint32_t hash, char *s, size_t len)
{
uint32_t driver_hash = 0;

View File

@ -30,6 +30,23 @@
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1];
int menu_hash_get_help_fr_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
(void)sizeof(force_iso_8859_1);
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
int menu_hash_get_help_fr(uint32_t hash, char *s, size_t len)
{
int ret = 0;

View File

@ -29,6 +29,25 @@
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("àèéìòù")==6+1 ? 1 : -1];
int menu_hash_get_help_it_enum(enum msg_hash_enums msg, char *s, size_t len)
{
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
(void)sizeof(force_iso_8859_1);
switch (msg)
{
case MSG_UNKNOWN:
default:
if (s[0] == '\0')
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE), len);
return -1;
}
return 0;
}
int menu_hash_get_help_it(uint32_t hash, char *s, size_t len)
{
uint32_t driver_hash = 0;

View File

@ -24,6 +24,21 @@
* (e.g. German "Umlauts" and Portugese diacritics).
*/
int menu_hash_get_help_pl_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int ret = 0;
switch (msg)
{
case MSG_UNKNOWN:
default:
ret = -1;
break;
}
return ret;
}
int menu_hash_get_help_pl(uint32_t hash, char *s, size_t len)
{
int ret = 0;

View File

@ -31,6 +31,25 @@
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("áÁâãçéêíÍóõú")==12+1 ? 1 : -1];
int menu_hash_get_help_pt_enum(enum msg_hash_enums msg, char *s, size_t len)
{
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
(void)sizeof(force_iso_8859_1);
switch (msg)
{
case MSG_UNKNOWN:
default:
if (s[0] == '\0')
strlcpy(s, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_INFORMATION_AVAILABLE), len);
return -1;
}
return 0;
}
int menu_hash_get_help_pt(uint32_t hash, char *s, size_t len)
{
uint32_t driver_hash = 0;

View File

@ -33,7 +33,6 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
#ifdef HAVE_LANGEXTRA
switch (settings->user_language)
{
#if 0
case RETRO_LANGUAGE_FRENCH:
ret = menu_hash_get_help_fr_enum(msg, s, len);
break;
@ -49,18 +48,15 @@ int menu_hash_get_help_enum(enum msg_hash_enums msg, char *s, size_t len)
case RETRO_LANGUAGE_PORTUGUESE:
ret = menu_hash_get_help_pt_enum(msg, s, len);
break;
#endif
case RETRO_LANGUAGE_DUTCH:
ret = menu_hash_get_help_nl_enum(msg, s, len);
break;
#if 0
case RETRO_LANGUAGE_ESPERANTO:
ret = menu_hash_get_help_eo_enum(msg, s, len);
break;
case RETRO_LANGUAGE_POLISH:
ret = menu_hash_get_help_pl_enum(msg, s, len);
break;
#endif
default:
break;
}

View File

@ -2132,6 +2132,7 @@ const char *msg_hash_to_str(enum msg_hash_enums msg);
const char *msg_hash_to_str_fr(enum msg_hash_enums msg);
int menu_hash_get_help_fr(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_fr_enum(enum msg_hash_enums msg, char *s, size_t len);
#ifdef HAVE_UTF8
const char *msg_hash_to_str_ru(enum msg_hash_enums msg);
@ -2139,21 +2140,27 @@ const char *msg_hash_to_str_ru(enum msg_hash_enums msg);
const char *msg_hash_to_str_de(enum msg_hash_enums msg);
int menu_hash_get_help_de(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_de_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_es(enum msg_hash_enums msg);
int menu_hash_get_help_es(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_es_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_eo(enum msg_hash_enums msg);
int menu_hash_get_help_eo(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_eo_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_it(enum msg_hash_enums msg);
int menu_hash_get_help_it(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_it_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_pt(enum msg_hash_enums msg);
int menu_hash_get_help_pt(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_pt_enum(enum msg_hash_enums msg, char *s, size_t len);
const char *msg_hash_to_str_pl(enum msg_hash_enums msg);
int menu_hash_get_help_pl(uint32_t hash, char *s, size_t len);
int menu_hash_get_help_pl_enum(enum msg_hash_enums msg, 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);