Reputation: 83
So I am trying to make a kirikiri(Japanese virtual novel creator) but the novel won't run unless the system locale is Japanese.
I know how to do it manually; but I would like to create a program writing in batch to speed things up.
Upvotes: 3
Views: 4017
Reputation: 83
Should have know it would be simple(lol)...
In .bat
@echo off
control.exe intl.cpl,,/f:"locale.xml"
echo Files ready! press enter to finish setup!!
pause
shutdown.exe /r /t 00
In XML
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
<gs:UserList>
<gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/></gs:UserList>
<gs:InputPreferences>
<!--en-AU--><gs:InputLanguageID Action="add" ID="0409:00000c09" Default="true"/>
<!--jp-JP--><gs:InputLanguageID Action="add" ID="0411:{03B5835F-F03C-411B-9CE2-AA23E1171E36}{A76C93D9-5523-4E90-AAFA-4DB112F9AC76}"/>
</gs:InputPreferences>
</gs:GlobalizationServices>
Upvotes: 2
Reputation: 172458
You can set it from the command line like this:
java -Duser.country=CA -Duser.language=fr ... com.x.Main
Upvotes: 3