[tools] testbot/SetWinLocale: Fix the usage message and add Powershell information.

Francois Gouget fgouget at codeweavers.com
Mon Jan 3 09:10:36 CST 2022


---
 testbot/bin/SetWinLocale | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/testbot/bin/SetWinLocale b/testbot/bin/SetWinLocale
index e8aff6c9d1..3a74406a49 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";
-- 
2.30.2



More information about the wine-devel mailing list