Hi,
ja-JP works on my end, while the jp-JP you mentioned in first post does not. That should be equivalent to following assignment, so you could try it too:
InputLanguageManager.Current.CurrentInputLanguage = new CultureInfo("ja-JP");
If ja-JP isn't working for you either way, while the next-language key does, you could simulate the latter being pressed:
keyboard.SendKey(MindFusion.UI.Wpf.Key.Lang);
Unfortunately, the language change is asynchronous and you can't check immediately what is the current language after sending the key. You could listen to InputLanguageManager.InputLanguageChanged event instead, and cycle from there until active language is reported as ja-JP.
InputLanguageManager.Current.InputLanguageChanged += OnInputLanguageChanged;
void OnInputLanguageChanged(object sender, InputLanguageEventArgs e)
{
Debug.WriteLine(e.NewLanguage);
}
Quote:I already have the Japanese language pack
You don't have to install language packs btw, just control panel -> Languages -> Add Language, and then you can clear all checkboxes to install just the keyboard layout.
Regards,
Slavcho
Mindfusion