Revision Difference
language.GetPhrase#568264
<function name="GetPhrase" parent="language" type="libraryfunc">
<description>Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.</description>
<description>Retrieves the translated version of inputted string. Useful for joining multiple translated strings into one.</description>
<realm>Client and Menu</realm>
<args>
<arg name="phrase" type="string">The phrase to translate</arg>⤶
<arg name="phrase" type="string">The phrase to translate.⤶
⤶
If it starts with a `#` symbol, this function automatically skips it, but it is not necessary to include it.</arg>⤶
</args>
<rets>
<ret name="" type="string">The translated phrase, or the input string if no translation was found. There is a limit of 4000 bytes for the returned string.</ret>
</rets>
</function>
<example>
<description>An example on usage of this function.</description>
<code>print( "Our phrase is: " .. language.GetPhrase( "limit_physgun" ) )</code>
<output>Our phrase is: Limited Physgun.</output>
</example>
Garry's Mod
Rust
Steamworks
Wiki Help