2010-08-22 13:13:17 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
<!DOCTYPE funcs
|
|
|
|
SYSTEM '../../../clonk.dtd'>
|
2009-11-12 15:57:37 +00:00
|
|
|
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
|
|
|
|
<funcs>
|
|
|
|
<func>
|
|
|
|
<title>Translate</title>
|
2010-08-22 13:13:17 +00:00
|
|
|
<category>Script</category>
|
|
|
|
<subcat>Strings</subcat>
|
2011-06-30 10:52:55 +00:00
|
|
|
<version>5.1 OC</version>
|
2009-11-12 15:57:37 +00:00
|
|
|
<syntax>
|
|
|
|
<rtype>string</rtype>
|
|
|
|
<params>
|
2010-08-22 13:13:17 +00:00
|
|
|
<param>
|
|
|
|
<type>string</type>
|
|
|
|
<name>text</name>
|
|
|
|
<desc>String to translate</desc>
|
|
|
|
</param>
|
2009-11-12 15:57:37 +00:00
|
|
|
</params>
|
|
|
|
</syntax>
|
2010-08-22 13:13:17 +00:00
|
|
|
<desc>Looks up a text in <emlink href="lang.html">StringTbl??.txt</emlink> of the calling script and returns its translation.</desc>
|
2009-11-12 15:57:37 +00:00
|
|
|
<examples>
|
|
|
|
<example>
|
2010-08-22 13:13:17 +00:00
|
|
|
<code><funclink>Message</funclink>(Translate("I need a better example"));</code>
|
|
|
|
<text>Displays "Ich benötige ein besseres Beispiel" for German users.</text>
|
2009-11-12 15:57:37 +00:00
|
|
|
</example>
|
|
|
|
</examples>
|
|
|
|
</func>
|
2010-08-22 13:13:17 +00:00
|
|
|
<author>Isilkor</author><date>2009-11</date>
|
2009-11-12 15:57:37 +00:00
|
|
|
</funcs>
|