diff options
author | Danil Alexeev <danil@alexeev.xyz> | 2024-10-11 17:35:28 +0300 |
---|---|---|
committer | Danil Alexeev <danil@alexeev.xyz> | 2024-10-13 11:40:11 +0300 |
commit | cab80cb97da303867bbc4c10aaa18c7ccef51287 (patch) | |
tree | 4bc2a6d4ca3315aba3d44ae98c32dd60a247d38b /editor/editor_translation_parser.h | |
parent | 92e51fca7247c932f95a1662aefc28aca96e8de6 (diff) | |
download | redot-engine-cab80cb97da303867bbc4c10aaa18c7ccef51287.tar.gz |
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
Diffstat (limited to 'editor/editor_translation_parser.h')
-rw-r--r-- | editor/editor_translation_parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_translation_parser.h b/editor/editor_translation_parser.h index 78dc726c52..20c8ed7939 100644 --- a/editor/editor_translation_parser.h +++ b/editor/editor_translation_parser.h @@ -43,10 +43,12 @@ protected: static void _bind_methods(); GDVIRTUAL3(_parse_file, String, TypedArray<String>, TypedArray<Array>) + GDVIRTUAL2(_get_comments, TypedArray<String>, TypedArray<String>) GDVIRTUAL0RC(Vector<String>, _get_recognized_extensions) public: virtual Error parse_file(const String &p_path, Vector<String> *r_ids, Vector<Vector<String>> *r_ids_ctx_plural); + virtual void get_comments(Vector<String> *r_ids_comment, Vector<String> *r_ids_ctx_plural_comment); virtual void get_recognized_extensions(List<String> *r_extensions) const; }; |