]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Input panel <none> can be translated
authorToni Wilen <twilen@winuae.net>
Sat, 29 Jul 2023 07:06:57 +0000 (10:06 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 29 Jul 2023 07:06:57 +0000 (10:06 +0300)
include/gui.h
inputdevice.cpp
od-win32/resources/resource.h
od-win32/resources/winuae.rc
od-win32/win32gui.cpp

index 60d701d5041a3c0cd3208954d214d9e55d2f6a4e..ee1c2b04ed25fcf3720b3f0b5ccd8750200d21cf 100644 (file)
@@ -113,6 +113,7 @@ typedef enum {
        NUMSG_NO_PPC,
        NUMSG_UAEBOOTROM_PPC,
        NUMSG_NOMEMORY,
+       NUMSG_INPUT_NONE,
        NUMSG_LAST
 } notify_user_msg;
 
index 3051be37b38a23106c188f727d5ffa03ccdff076..d3787dc0e4db86f5902ed0838275017987bee73b 100644 (file)
@@ -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("<none>"));
+               translate_message(NUMSG_INPUT_NONE, name);
        if (custom)
                custom[0] = 0;
        if (pflags)
index 225435a8907a07b32700ab90fcfbae73fa6ddd46..eef7012278196fee13809994fac77f24b04fbc0b 100644 (file)
 #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
index 1312fe6f548b85e5632501ff69b3b6092547ea78..05c67a49adfd78070261ec0b5d87495dcf04bc31 100644 (file)
@@ -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               "<none>"
 END
 
 #endif    // English (United Kingdom) resources
index 0097a86812ff092e6a91f9488bd02485161c226a..316777504b1f9a6bf9c1b0160a5b68e356f7ede6 100644 (file)
@@ -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
 };