2017-09-12 17:42:36 -03:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 10:08:05 +02:00
<class name= "OptimizedTranslation" inherits= "Translation" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 17:42:36 -03:00
<brief_description >
2025-10-24 12:00:03 +08:00
An optimized translation.
2017-09-12 17:42:36 -03:00
</brief_description>
<description >
2025-10-24 12:00:03 +08:00
An optimized translation. Uses real-time compressed translations, which results in very small dictionaries.
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].
2017-09-12 17:42:36 -03:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "generate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2022-08-06 21:11:48 +03:00
<param index= "0" name= "from" type= "Translation" />
2017-09-12 17:42:36 -03:00
<description >
2018-11-19 02:20:05 -02:00
Generates and sets an optimized translation from the given [Translation] resource.
2025-10-24 12:00:03 +08:00
[b]Note:[/b] Messages in [param from] should not use context or plural forms.
2024-09-21 23:17:38 +08:00
[b]Note:[/b] This method is intended to be used in the editor. It does nothing when called from an exported project.
2017-09-12 17:42:36 -03:00
</description>
</method>
</methods>
</class>