From: Toni Wilen Date: Sat, 29 Jul 2023 07:06:57 +0000 (+0300) Subject: Input panel can be translated X-Git-Tag: 5.1.0~138 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=4ed2385c05bcc4d3e26f7c7954de602fb42850ec;p=francis%2Fwinuae.git Input panel can be translated --- diff --git a/include/gui.h b/include/gui.h index 60d701d5..ee1c2b04 100644 --- a/include/gui.h +++ b/include/gui.h @@ -113,6 +113,7 @@ typedef enum { NUMSG_NO_PPC, NUMSG_UAEBOOTROM_PPC, NUMSG_NOMEMORY, + NUMSG_INPUT_NONE, NUMSG_LAST } notify_user_msg; diff --git a/inputdevice.cpp b/inputdevice.cpp index 3051be37..d3787dc0 100644 --- a/inputdevice.cpp +++ b/inputdevice.cpp @@ -8809,7 +8809,7 @@ int inputdevice_get_mapping (int devnum, int num, uae_u64 *pflags, int *pport, T TCHAR *customp = NULL; if (name) - _tcscpy (name, _T("")); + translate_message(NUMSG_INPUT_NONE, name); if (custom) custom[0] = 0; if (pflags) diff --git a/od-win32/resources/resource.h b/od-win32/resources/resource.h index 225435a8..eef70122 100644 --- a/od-win32/resources/resource.h +++ b/od-win32/resources/resource.h @@ -432,6 +432,7 @@ #define IDS_GAMEPORTS_CUSTOM 437 #define IDS_FILTER_LABELS 438 #define IDS_CURRENT_HOST 439 +#define IDS_NONE2 440 #define IDS_QS_MODELS 1000 #define IDS_QS_MODEL_A500 1001 #define IDS_QS_MODEL_A500P 1002 diff --git a/od-win32/resources/winuae.rc b/od-win32/resources/winuae.rc index 1312fe6f..05c67a49 100644 --- a/od-win32/resources/winuae.rc +++ b/od-win32/resources/winuae.rc @@ -2235,6 +2235,7 @@ BEGIN IDS_GAMEPORTS_CUSTOM "Custom" IDS_FILTER_LABELS "Null\nScale2X\nhq2x\nhq3x\nhq4x\nSuperEagle\nSuper2xSaI\n2xSaI\nPAL\n" IDS_CURRENT_HOST "Current host configuration" + IDS_NONE2 "" END #endif // English (United Kingdom) resources diff --git a/od-win32/win32gui.cpp b/od-win32/win32gui.cpp index 0097a868..31677750 100644 --- a/od-win32/win32gui.cpp +++ b/od-win32/win32gui.cpp @@ -23987,6 +23987,7 @@ static const int transla[] = { NUMSG_NO_PPC, IDS_NUMSG_NO_PPC, NUMSG_UAEBOOTROM_PPC, IDS_NUMSG_UAEBOOTROM_PCC, NUMSG_NOMEMORY, IDS_NUMSG_NOMEMORY, + NUMSG_INPUT_NONE, IDS_NONE2, -1 };