<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetInputLanguageString</id>
	<title>API:GetInputLanguageString - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetInputLanguageString"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetInputLanguageString&amp;action=history"/>
	<updated>2026-10-17T15:53:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetInputLanguageString&amp;diff=30413&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetInputLanguageString&amp;diff=30413&amp;oldid=prev"/>
		<updated>2026-10-16T19:44:12Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Chat}}&lt;br /&gt;
Returns a short label for the current keyboard input language.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
label = GetInputLanguageString()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;label : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – One or two characters naming the input language.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The label is chosen from the active keyboard layout:&lt;br /&gt;
** Korean: &amp;lt;code&amp;gt;가&amp;lt;/code&amp;gt;&lt;br /&gt;
** Japanese: &amp;lt;code&amp;gt;あ&amp;lt;/code&amp;gt;&lt;br /&gt;
** Chinese, simplified: &amp;lt;code&amp;gt;简&amp;lt;/code&amp;gt;&lt;br /&gt;
** Chinese, traditional: &amp;lt;code&amp;gt;繁&amp;lt;/code&amp;gt;&lt;br /&gt;
** Any other language: the first two letters of the Windows abbreviated language name, the second one in lower case (for example &amp;lt;code&amp;gt;En&amp;lt;/code&amp;gt; for English, &amp;lt;code&amp;gt;De&amp;lt;/code&amp;gt; for German).&lt;br /&gt;
* Before the client has read the keyboard layout for the first time, the label is &amp;lt;code&amp;gt;EN&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The function returns the label the client last stored; it does not query Windows itself.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Showing the label on the chat window&amp;#039;s language button, from &amp;lt;code&amp;gt;default/ea_chatwindow/source/chatwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local languageStateStr = GetInputLanguageString()&lt;br /&gt;
&lt;br /&gt;
ButtonSetText(&amp;quot;EA_TextEntryGroupEntryBoxLanguageButton&amp;quot;, towstring(languageStateStr))&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:ToggleLanguageState|ToggleLanguageState]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>