From cea101e519d7d3ae1aa91d6fa98d3d9a8abb86f7 Mon Sep 17 00:00:00 2001 From: flb Date: Sat, 30 Jan 2021 17:40:35 +0100 Subject: [PATCH] internationalisation of nro not found message --- common/language.c | 6 ++++++ common/language.h | 1 + nx_main/loaders/builtin.c | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/language.c b/common/language.c index 316f377..81b07bc 100644 --- a/common/language.c +++ b/common/language.c @@ -132,6 +132,12 @@ const char* const g_strings[StrId_Max][17] = STR_ZH_HANT("開啓檔案失敗:\n%s"), }, + [StrId_NroNotFound] = + { + STR_EN("Could not find executable: %s"), + STR_FR("Impossible trouver l'exécutable : %s"), + }, + [StrId_NoAppsFound_Title] = { STR_EN("No applications found"), diff --git a/common/language.h b/common/language.h index df44ec5..f1bb16c 100644 --- a/common/language.h +++ b/common/language.h @@ -11,6 +11,7 @@ typedef enum StrId_DefaultPublisher, StrId_IOError, StrId_CouldNotOpenFile, + StrId_NroNotFound, StrId_NoAppsFound_Title, StrId_NoAppsFound_Msg, diff --git a/nx_main/loaders/builtin.c b/nx_main/loaders/builtin.c index 97ca734..596e6be 100644 --- a/nx_main/loaders/builtin.c +++ b/nx_main/loaders/builtin.c @@ -72,7 +72,7 @@ static void launchFile(const char* path, argData_s* args) if (stat(path, &st) == -1) { memset(msg, 0, sizeof(msg)); - snprintf(msg, sizeof(msg)-1, "Couldn't find executable: %s", path); + snprintf(msg, sizeof(msg)-1, textGetString(StrId_NroNotFound), path); menuCreateMsgBox(780, 300, msg); menuScan(".");