0.2.0-dev Download ZIP
23 lines ·1.2 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="OptimizedTranslation" inherits="Translation" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | An optimized translation. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | An optimized translation. Uses real-time compressed translations, which results in very small dictionaries. |
| 8 | This class does not store the untranslated strings for optimization purposes. Therefore, [method Translation.get_message_list] always returns an empty array, and [method Translation.get_message_count] always returns [code]0[/code]. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="generate"> |
| 14 | <return type="bool" /> |
| 15 | <param index="0" name="from" type="Translation" /> |
| 16 | <description> |
| 17 | Generates and sets an optimized translation from the given [Translation] resource. Returns [code]true[/code] if successful. |
| 18 | [b]Note:[/b] Messages in [param from] should not use context or plural forms. |
| 19 | [b]Note:[/b] This method is intended to be used in the editor. It does nothing when called from an exported project. |
| 20 | </description> |
| 21 | </method> |
| 22 | </methods> |
| 23 | </class> |