Garry's Mod Wiki

Revision Difference

language.FormatPhrase#568490

<function name="FormatPhrase" parent="language" type="libraryfunc"> <description>A convenience function that formats a localization phrase. See <page>language.GetPhrase</page>. This is exactly the same as doing `string.format( langauge.GetPhrase( "string" ), arg1, arg2, etc)`. </description> <realm>Client and Menu</realm> <file line="544-L546">lua/includes/util.lua</file>⤶ <added>2026.08.14</added> <args> <arg name="phrase" type="string">The phrase to translate.</arg> </args> <rets> <ret name="" type="string">The formatted, translated phrase, or the input string if no translation was found.</ret> </rets> </function>