Visit/win-en: Difference between revisions
Jump to navigation
Jump to search
(new) |
m (lang=bat) |
||
| Line 1: | Line 1: | ||
Copy the following code | Copy the following code | ||
<syntaxhighlight> | <syntaxhighlight lang="bat"> | ||
@rem Launch visit (https://visit-dav.github.io/visit-website) with | @rem Launch visit (https://visit-dav.github.io/visit-website) with | ||
@rem an English GUI on a non-English Windows machine. | @rem an English GUI on a non-English Windows machine. | ||
| Line 9: | Line 9: | ||
@powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null" | @powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
where the | where the starting with <code>@powershell</code> is ''one single line'', into a file <code>visit_en.cmd</code> at a suitable location (e.g. the desktop). | ||
Revision as of 14:09, 17 April 2024
Copy the following code
@rem Launch visit (https://visit-dav.github.io/visit-website) with
@rem an English GUI on a non-English Windows machine.
@rem The sleep of 1 second is necessary to give visit time to launch
@rem before the language is reverted again. The sleep shouldn't be too
@rem long, because the language change affects the keyboard layout,
@rem too. L.B. 2024
@powershell -NonInteractive -Command "$OldList = Get-WinUserLanguageList; $enUS = New-WinUserLanguageList -Language en-US; Set-WinUserLanguageList -LanguageList $enUS -Force *>$null; Start-Process visit; Start-Sleep 1; Set-WinUserLanguageList -LanguageList $OldList -Force *>$null"
where the starting with @powershell is one single line, into a file visit_en.cmd at a suitable location (e.g. the desktop).