X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flibretro-common%2Fsamples%2Fcore_options%2Fexample_translation%2Flibretro_core_options_intl.h;fp=deps%2Flibretro-common%2Fsamples%2Fcore_options%2Fexample_translation%2Flibretro_core_options_intl.h;h=521c8f4798958c9b5a3cea6e4d29bd5d3899dcd6;hb=3719602cbe883fb394a71353e20a10a4a306e814;hp=0000000000000000000000000000000000000000;hpb=8659d7fd2cdb11f63724ead0997f47f4c694f8c2;p=pcsx_rearmed.git diff --git a/deps/libretro-common/samples/core_options/example_translation/libretro_core_options_intl.h b/deps/libretro-common/samples/core_options/example_translation/libretro_core_options_intl.h new file mode 100644 index 00000000..521c8f47 --- /dev/null +++ b/deps/libretro-common/samples/core_options/example_translation/libretro_core_options_intl.h @@ -0,0 +1,125 @@ +#ifndef LIBRETRO_CORE_OPTIONS_INTL_H__ +#define LIBRETRO_CORE_OPTIONS_INTL_H__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1500 && _MSC_VER < 1900) +/* https://support.microsoft.com/en-us/kb/980263 */ +#pragma execution_character_set("utf-8") +#pragma warning(disable:4566) +#endif + +#include + +/* + ******************************** + * VERSION: 1.3 + ******************************** + * + * - 1.3: Move translations to libretro_core_options_intl.h + * - libretro_core_options_intl.h includes BOM and utf-8 + * fix for MSVC 2010-2013 + * - Added HAVE_NO_LANGEXTRA flag to disable translations + * on platforms/compilers without BOM support + * - 1.2: Use core options v1 interface when + * RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION is >= 1 + * (previously required RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION == 1) + * - 1.1: Support generation of core options v0 retro_core_option_value + * arrays containing options with a single value + * - 1.0: First commit +*/ + +#ifdef __cplusplus +extern "C" { +#endif + +/* + ******************************** + * Core Option Definitions + ******************************** +*/ + +/* RETRO_LANGUAGE_JAPANESE */ + +/* RETRO_LANGUAGE_FRENCH */ + +struct retro_core_option_definition option_defs_fr[] = { + { + "mycore_region", /* key must match option_defs_us entry */ + "Région de la console", /* translated description */ + "Spécifiez la région d'origine du système.", /* translated sublabel */ + { + { "auto", "Auto" }, /* value must match option_defs_us entry */ + { "ntsc-j", "Japon" }, /* > only value_label should be translated */ + { "ntsc-u", "Amérique" }, + { "pal", "L'Europe" }, + { NULL, NULL }, + }, + NULL /* default_value is taken from option_defs_us -> can set to NULL here */ + }, + { + "mycore_video_scale", + "Échelle vidéo", + "Définir le facteur d'échelle vidéo interne.", + { + { NULL, NULL }, /* If value_labels do not require translation (e.g. numbers), values may be omitted */ + }, + NULL + }, + { + "mycore_overclock", + "Réduire le ralentissement", + "Activer l'overclocking du processeur (non sécurisé).", + { + { NULL, NULL }, /* 'enabled' and 'disabled' values should not be translated */ + }, + NULL + }, + { NULL, NULL, NULL, {{0}}, NULL }, +}; + +/* RETRO_LANGUAGE_SPANISH */ + +/* RETRO_LANGUAGE_GERMAN */ + +/* RETRO_LANGUAGE_ITALIAN */ + +/* RETRO_LANGUAGE_DUTCH */ + +/* RETRO_LANGUAGE_PORTUGUESE_BRAZIL */ + +/* RETRO_LANGUAGE_PORTUGUESE_PORTUGAL */ + +/* RETRO_LANGUAGE_RUSSIAN */ + +/* RETRO_LANGUAGE_KOREAN */ + +/* RETRO_LANGUAGE_CHINESE_TRADITIONAL */ + +/* RETRO_LANGUAGE_CHINESE_SIMPLIFIED */ + +/* RETRO_LANGUAGE_ESPERANTO */ + +/* RETRO_LANGUAGE_POLISH */ + +/* RETRO_LANGUAGE_VIETNAMESE */ + +/* RETRO_LANGUAGE_ARABIC */ + +/* RETRO_LANGUAGE_GREEK */ + +/* RETRO_LANGUAGE_TURKISH */ + +/* RETRO_LANGUAGE_SLOVAK */ + +/* RETRO_LANGUAGE_PERSIAN */ + +/* RETRO_LANGUAGE_HEBREW */ + +/* RETRO_LANGUAGE_ASTURIAN */ + +/* RETRO_LANGUAGE_FINNISH */ + +#ifdef __cplusplus +} +#endif + +#endif