(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:
Jan Holthuis 2015-06-26 03:26:55 +02:00
parent a0473ad2ff
commit f669c8a49c
3 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);