summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-10-11 17:35:28 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-10-13 11:40:11 +0300
commitcab80cb97da303867bbc4c10aaa18c7ccef51287 (patch)
tree4bc2a6d4ca3315aba3d44ae98c32dd60a247d38b /doc/classes
parent92e51fca7247c932f95a1662aefc28aca96e8de6 (diff)
downloadredot-engine-cab80cb97da303867bbc4c10aaa18c7ccef51287.tar.gz
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/EditorTranslationParserPlugin.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/EditorTranslationParserPlugin.xml b/doc/classes/EditorTranslationParserPlugin.xml
index a47a41594e..b40a4976a3 100644
--- a/doc/classes/EditorTranslationParserPlugin.xml
+++ b/doc/classes/EditorTranslationParserPlugin.xml
@@ -100,6 +100,14 @@
<tutorials>
</tutorials>
<methods>
+ <method name="_get_comments" qualifiers="virtual">
+ <return type="void" />
+ <param index="0" name="msgids_comment" type="String[]" />
+ <param index="1" name="msgids_context_plural_comment" type="String[]" />
+ <description>
+ If overridden, called after [method _parse_file] to get comments for the parsed entries. This method should fill the arrays with the same number of elements and in the same order as [method _parse_file].
+ </description>
+ </method>
<method name="_get_recognized_extensions" qualifiers="virtual const">
<return type="PackedStringArray" />
<description>