mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
(menu/intl/menu_hash_us) Make "No information available" translateable
This adds the ability to translate the "No information is available" string in the menu_hash_get_help_us() function translateable without removing the possibility to fall back to english if a string is not translated.
This commit is contained in:
parent
a0473ad2ff
commit
f669c8a49c
@ -810,6 +810,8 @@ const char *menu_hash_to_str_de(uint32_t hash)
|
||||
return "Verzeichnis-Einstellungen";
|
||||
case MENU_LABEL_VALUE_RECORDING_SETTINGS:
|
||||
return "Aufnahme-Einstellungen";
|
||||
case MENU_LABEL_VALUE_NO_INFORMATION_AVAILABLE:
|
||||
return "Keine Informationen verfügbar.";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -1364,6 +1364,8 @@ const char *menu_hash_to_str_us(uint32_t hash)
|
||||
return "Directory Settings";
|
||||
case MENU_LABEL_VALUE_RECORDING_SETTINGS:
|
||||
return "Recording Settings";
|
||||
case MENU_LABEL_VALUE_NO_INFORMATION_AVAILABLE:
|
||||
return "No information is available.";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -2314,7 +2316,7 @@ int menu_hash_get_help_us(uint32_t hash, char *s, size_t len)
|
||||
break;
|
||||
default:
|
||||
if (s[0] == '\0')
|
||||
strlcpy(s, "No information is available.", len);
|
||||
strlcpy(s, menu_hash_to_str(MENU_LABEL_VALUE_NO_INFORMATION_AVAILABLE), len);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -930,6 +930,8 @@ extern "C" {
|
||||
|
||||
#define MENU_VALUE_NONE 0x7c89bbd5U
|
||||
|
||||
#define MENU_LABEL_VALUE_NO_INFORMATION_AVAILABLE 0xbae2c7f6U
|
||||
|
||||
const char *menu_hash_to_str_de(uint32_t hash);
|
||||
int menu_hash_get_help_de(uint32_t hash, char *s, size_t len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user