Formatted translation file properly

This commit is contained in:
CoalaJoe 2017-01-17 10:20:04 +01:00
parent 928c3edaf4
commit d71580b084
1 changed files with 1871 additions and 1894 deletions

View File

@ -24,18 +24,15 @@
#include "../configuration.h"
#include "../verbosity.h"
int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
{
int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len) {
uint32_t driver_hash = 0;
settings_t *settings = config_get_ptr();
if (msg <= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_END &&
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN)
{
msg >= MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN) {
unsigned idx = msg - MENU_ENUM_LABEL_INPUT_HOTKEY_BIND_BEGIN;
switch (idx)
{
switch (idx) {
case RARCH_FAST_FORWARD_KEY:
snprintf(s, len,
"Toggles between fast-forwarding and \n"
@ -214,8 +211,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
return 0;
}
switch (msg)
{
switch (msg) {
case MENU_ENUM_LABEL_ACCOUNTS_RETRO_ACHIEVEMENTS:
snprintf(s, len, "Login details for your \n"
"Retro Achievements account. \n"
@ -639,8 +635,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
"Welcome to RetroArch\n"
);
break;
case MENU_ENUM_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING_DESC:
{
case MENU_ENUM_LABEL_VALUE_HELP_AUDIO_VIDEO_TROUBLESHOOTING_DESC: {
/* Work around C89 limitations */
char u[501];
const char *t =
@ -686,8 +681,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
"filebrowser everytime.\n"
" \n"
"NOTE: Content for some cores might still not be\n"
"scannable."
,
"scannable.",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ADD_CONTENT_LIST),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_DIRECTORY),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SCAN_FILE),
@ -707,8 +701,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
if (settings)
driver_hash = msg_hash_calculate(settings->input.driver);
switch (driver_hash)
{
switch (driver_hash) {
case MENU_LABEL_INPUT_DRIVER_UDEV:
snprintf(s, len,
"udev Input driver. \n"
@ -786,8 +779,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
snprintf(s, len,
"Current Video driver.");
if (string_is_equal(settings->video.driver, "gl"))
{
if (string_is_equal(settings->video.driver, "gl")) {
snprintf(s, len,
"OpenGL Video driver. \n"
" \n"
@ -799,9 +791,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
"libretro GL core implementations is \n"
"dependent on your graphics card's \n"
"underlying GL driver).");
}
else if (string_is_equal(settings->video.driver, "sdl2"))
{
} else if (string_is_equal(settings->video.driver, "sdl2")) {
snprintf(s, len,
"SDL 2 Video driver.\n"
" \n"
@ -811,9 +801,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
"Performance for software-rendered libretro \n"
"core implementations is dependent \n"
"on your platform SDL implementation.");
}
else if (string_is_equal(settings->video.driver, "sdl1"))
{
} else if (string_is_equal(settings->video.driver, "sdl1")) {
snprintf(s, len,
"SDL Video driver.\n"
" \n"
@ -822,18 +810,14 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
" \n"
"Performance is considered to be suboptimal. \n"
"Consider using it only as a last resort.");
}
else if (string_is_equal(settings->video.driver, "d3d"))
{
} else if (string_is_equal(settings->video.driver, "d3d")) {
snprintf(s, len,
"Direct3D Video driver. \n"
" \n"
"Performance for software-rendered cores \n"
"is dependent on your graphic card's \n"
"underlying D3D driver).");
}
else if (string_is_equal(settings->video.driver, "exynos"))
{
} else if (string_is_equal(settings->video.driver, "exynos")) {
snprintf(s, len,
"Exynos-G2D Video Driver. \n"
" \n"
@ -843,18 +827,14 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
" \n"
"Performance for software rendered cores \n"
"should be optimal.");
}
else if (string_is_equal(settings->video.driver, "drm"))
{
} else if (string_is_equal(settings->video.driver, "drm")) {
snprintf(s, len,
"Plain DRM Video Driver. \n"
" \n"
"This is a low-level video driver using. \n"
"libdrm for hardware scaling using \n"
"GPU overlays.");
}
else if (string_is_equal(settings->video.driver, "sunxi"))
{
} else if (string_is_equal(settings->video.driver, "sunxi")) {
snprintf(s, len,
"Sunxi-G2D Video Driver. \n"
" \n"
@ -873,8 +853,7 @@ int menu_hash_get_help_us_enum(enum msg_hash_enums msg, char *s, size_t len)
if (settings)
driver_hash = msg_hash_calculate(settings->audio.resampler);
switch (driver_hash)
{
switch (driver_hash) {
case MENU_LABEL_AUDIO_RESAMPLER_DRIVER_SINC:
snprintf(s, len,
"Windowed SINC implementation.");
@ -1963,8 +1942,7 @@ static const char *menu_hash_to_str_us_label_enum(enum msg_hash_enums msg)
}
#endif
const char *msg_hash_to_str_us(enum msg_hash_enums msg)
{
const char *msg_hash_to_str_us(enum msg_hash_enums msg) {
#ifdef HAVE_MENU
const char *ret = menu_hash_to_str_us_label_enum(msg);
@ -1972,8 +1950,7 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
return ret;
#endif
switch (msg)
{
switch (msg) {
#include "msg_hash_us.h"
default:
#if 0