Module: tools
Branch: master
Commit: 3e46b3b7bf7c9aabdb71ba640b2dc27c7dc4f720
URL: https://source.winehq.org/git/tools.git/?a=commit;h=3e46b3b7bf7c9aabdb71ba6…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jan 5 16:40:32 2022 +0100
testbot/SetWinLocale: Fix the usage message and add Powershell information.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/SetWinLocale | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index f1d1336..521f0f9 100755
--- a/testbot/bin/SetWinLocale
+++ b/testbot/bin/SetWinLocale
@@ -432,41 +432,46 @@ if (defined $Usage)
Error("try '$name0 --help' for more information\n");
exit $Usage;
}
- print "or $name0 [options] --show HOSTNAME\n";
- print "or $name0 [options] [--default LOC] [--locale USR] [--system SYS] [--mui MUI] [--keyboard KBD] [--country CTY] HOSTNAME\n";
+ print "Usage: $name0 [options] --show HOSTNAME\n";
+ print "or $name0 [options] [--default DEF] [--locale LOC] [--system SYS] [--mui MUI] [--keyboard KBD] [--country CTY] HOSTNAME\n";
print "\n";
print "Sets the locale of the specified Windows machine.\n";
print "\n";
print "Where:\n";
print " HOSTNAME Work on the specified Windows host (must be running TestAgentd).\n";
print " --show Show the locale settings of the specified host and exit.\n";
- print " --default LOC Use this Windows locale as the default for the other options.\n";
+ print " --default DEF Use this Windows locale as the default for the other options.\n";
print " The locale must be in a form suitable for Windows' intl.cpl\n";
print " control panel module, that is roughly ll-CC where ll is an\n";
print " ISO 639-1 language code and CC an ISO 3166-1 alpha-2 country\n";
print " code.\n";
- print " --locale USR Specifies the user formats (see --defaults).\n";
+ print " --locale LOC Specifies the user formats (see --defaults).\n";
print " . Windows 10 GUI: Time & language -> Region -> Regional\n";
print " format.\n";
print " . APIs: GetUserDefaultLCID(), GetThreadLocale().\n";
+ print " . Powershell: Set-Culture LOC\n";
print " --system SYS Specifies the system locale (see --defaults).\n";
print " . Only takes effect after a reboot.\n";
print " . Windows 10 GUI: Time & language -> Language ->\n";
print " Administrative Language Settings -> Change system locale.\n";
print " . APIs: GetSystemDefaultLCID().\n";
+ print " . Powershell: Set-WinSystemLocale -SystemLocale SYS\n";
print " --mui MUI Specifies the display language (see --defaults).\n";
print " . Only takes effect after a log out + log in.\n";
print " . Windows 10 GUI: Time & language -> Language -> Windows\n";
print " display language.\n";
print " . APIs: GetSystemPreferredUILanguages(),\n";
print " GetUserDefaultUILanguage(), GetThreadUILanguage().\n";
+ print " . Powershell: Set-WinUILanguageOverride -Language MUI\n";
print " --keyboard KBD Specifies the keyboard layout (see --defaults).\n";
print " . Windows 10 GUI: Time & language -> Language -> Keyboard ->\n";
print " Override for default input method.\n";
+ print " . Powershell: Set-WinDefaultInputMethodOverride -InputTip KBD-ID\n";
print " --country CTY Specifies the location using only the country part of the\n";
print " Windows locale (see --defaults).\n";
print " . Windows 10 GUI: Time & language -> Region -> Country.\n";
print " . APIs: GetUserGeoID().\n";
+ print " . Powershell: Set-WinHomeLocation -GeoId CTY-ID\n";
print " --no-reboot Do not reboot Windows. Some locale changes will only take\n";
print " effect after the next reboot.\n";
print " --debug Show more detailed information about progress.\n";