diff --git a/dylib/feats/webpatch.c b/dylib/feats/webpatch.c index 660ab667..13188c91 100644 --- a/dylib/feats/webpatch.c +++ b/dylib/feats/webpatch.c @@ -278,12 +278,12 @@ static int out_expand(np_out_t *o, const char *replace, const np_cap_t *caps) { #define NP_LIBRARY_WINDOWS_HINT NP_WEB_TEXT( \ "Show only games that run on Windows and do not have a macOS version", \ "Show only games that run on Windows and do not have a macOS version", \ - "Show only games that run on Windows and do not have a macOS version") + "Mostra solo i giochi che funzionano su Windows e non hanno una versione macOS") #define NP_LIBRARY_WINDOWS_SUMMARY NP_WEB_TEXT( \ "Runs on Windows, no Mac OS version", \ "Runs on Windows, no Mac OS version", \ - "Runs on Windows, no Mac OS version") + "Funziona su Windows, nessuna versione macOS") #define NP_CX_OPTIONS_CSS \ "\".MSCXPanel{margin-top:10px}" \ @@ -352,7 +352,7 @@ static int out_expand(np_out_t *o, const char *replace, const np_cap_t *caps) { "T([\"NOTPROTON_RAW_CONTROLLERS\"],npL(\"Let games read controllers directly (May break Steam Input. Not recommended)\"," \ "\"允许游戏直接读取控制器(可能导致 Steam Input 失效,不推荐)\"," \ "\"Lascia che i giochi leggano direttamente i controller (pu\\u00f2 interferire con Steam Input, sconsigliato)\"),\"1\",\"\")," \ - "T([\"NOTPROTON_DISABLE_HIDRAW\"],npL(\"Disable hidraw\",\"停用 hidraw\",\"Disable hidraw\"),\"1\",\"\")" \ + "T([\"NOTPROTON_DISABLE_HIDRAW\"],npL(\"Disable hidraw\",\"停用 hidraw\",\"Disattiva hidraw\"),\"1\",\"\")" \ "]},\"ctl\")," \ "fex&&(0," RT ".jsx)(" BARREL ".XY,{label:\"FEX\"," \ "children:D(\"FEX_X87REDUCEDPRECISION\"," \ diff --git a/dylib/tests/panel-behavior/emit.c b/dylib/tests/panel-behavior/emit.c index aff84c71..031ad546 100644 --- a/dylib/tests/panel-behavior/emit.c +++ b/dylib/tests/panel-behavior/emit.c @@ -42,7 +42,15 @@ int main(int argc, char **argv) { fputs(NP_IMAGE_FILES_LABEL, stdout); return 0; } + if (argc == 2 && strcmp(argv[1], "library-windows-hint") == 0) { + fputs(NP_LIBRARY_WINDOWS_HINT, stdout); + return 0; + } + if (argc == 2 && strcmp(argv[1], "library-windows-summary") == 0) { + fputs(NP_LIBRARY_WINDOWS_SUMMARY, stdout); + return 0; + } fputs("usage: emit component|statement [fallback [fex-tool...]]|migration|compat-hint|" - "image-files-label\n", stderr); + "image-files-label|library-windows-hint|library-windows-summary\n", stderr); return 2; } diff --git a/dylib/tests/panel-behavior/localization.js b/dylib/tests/panel-behavior/localization.js index a9f5ff44..a805c6e0 100644 --- a/dylib/tests/panel-behavior/localization.js +++ b/dylib/tests/panel-behavior/localization.js @@ -32,7 +32,7 @@ for (const form of Object.keys(FORMS)) { 'Let games read controllers directly (May break Steam Input. Not recommended)', '允许游戏直接读取控制器(可能导致 Steam Input 失效,不推荐)', 'Lascia che i giochi leggano direttamente i controller (può interferire con Steam Input, sconsigliato)')); - assert(nodes.some(n => n.props.label === t('Disable hidraw', '停用 hidraw', 'Disable hidraw'))); + assert(nodes.some(n => n.props.label === t('Disable hidraw', '停用 hidraw', 'Disattiva hidraw'))); raw.props.onChange(true); assert.equal(written.at(-1).opts, 'NOTPROTON_RAW_CONTROLLERS=1 CX_GRAPHICS_BACKEND=dxmt %command%'); const hud = nodes.find(n => n.props.label === t('Metal HUD', 'Metal 性能监视器', 'Metal HUD')); @@ -44,6 +44,11 @@ for (const form of Object.keys(FORMS)) { 'Abilita CrossOver in Proprietà > Compatibilità per installare e avviare la versione Windows.'], ['image-files-label', 'Image Files (*.tga,*.png,*.exe)', '图像文件 (*.tga,*.png,*.exe)', 'File immagine (*.tga,*.png,*.exe)'], + ['library-windows-hint', 'Show only games that run on Windows and do not have a macOS version', + 'Show only games that run on Windows and do not have a macOS version', + 'Mostra solo i giochi che funzionano su Windows e non hanno una versione macOS'], + ['library-windows-summary', 'Runs on Windows, no Mac OS version', 'Runs on Windows, no Mac OS version', + 'Funziona su Windows, nessuna versione macOS'], ]) { const src = execFileSync(emit, [mode], { encoding: 'utf8' }); assert.equal(new Function('globalThis', `return ${src}`)(globals), t(...labels));