Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dylib/feats/webpatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down Expand Up @@ -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\"," \
Expand Down
10 changes: 9 additions & 1 deletion dylib/tests/panel-behavior/emit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
7 changes: 6 additions & 1 deletion dylib/tests/panel-behavior/localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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));
Expand Down
Loading