You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POT Generation ignores call chaining expressions. #77538 particularly covers this issue.
The workaround i used is to recurse thous expressions in GDScriptEditorTranslationParserPlugin::_assess_expression:
CallNode::callee in case of GDScriptParser::Node::CALL
SubscriptNode::base in case of GDScriptParser::Node::SUBSCRIPT. This case is currently not covered at all.
It would be also nice not to ignore anything in GDScriptEditorTranslationParserPlugin::_assess_expression to make POT Generation work in more general cases.
Godot version
v4.1.beta2.official [a2575cb]
System information
Godot v4.1.beta2 - Ubuntu 22.04.2 LTS 22.04 - Vulkan (Mobile) - integrated AMD Radeon Vega 8 Graphics (RADV RAVEN) () - AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx (8 Threads)
Issue description
POT Generation ignores call chaining expressions. #77538 particularly covers this issue.
The workaround i used is to recurse thous expressions in
GDScriptEditorTranslationParserPlugin::_assess_expression
:CallNode::callee
in case ofGDScriptParser::Node::CALL
SubscriptNode::base
in case ofGDScriptParser::Node::SUBSCRIPT
. This case is currently not covered at all.It would be also nice not to ignore anything in
GDScriptEditorTranslationParserPlugin::_assess_expression
to make POT Generation work in more general cases.Steps to reproduce
Example code:
Reproduction steps:
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: