You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
GDScript: Add constant string support for POT generator
This commit is contained in:
@@ -53,15 +53,17 @@ class GDScriptEditorTranslationParserPlugin : public EditorTranslationParserPlug
|
||||
StringName fd_set_filter = "set_filters";
|
||||
StringName fd_filters = "filters";
|
||||
|
||||
static bool _is_constant_string(const GDScriptParser::ExpressionNode *p_expression);
|
||||
|
||||
void _traverse_class(const GDScriptParser::ClassNode *p_class);
|
||||
void _traverse_function(const GDScriptParser::FunctionNode *p_func);
|
||||
void _traverse_block(const GDScriptParser::SuiteNode *p_suite);
|
||||
|
||||
void _read_variable(const GDScriptParser::VariableNode *p_var);
|
||||
void _assess_expression(GDScriptParser::ExpressionNode *p_expression);
|
||||
void _assess_assignment(GDScriptParser::AssignmentNode *p_assignment);
|
||||
void _extract_from_call(GDScriptParser::CallNode *p_call);
|
||||
void _extract_fd_literals(GDScriptParser::ExpressionNode *p_expression);
|
||||
void _assess_expression(const GDScriptParser::ExpressionNode *p_expression);
|
||||
void _assess_assignment(const GDScriptParser::AssignmentNode *p_assignment);
|
||||
void _extract_from_call(const GDScriptParser::CallNode *p_call);
|
||||
void _extract_fd_constant_strings(const GDScriptParser::ExpressionNode *p_expression);
|
||||
|
||||
public:
|
||||
virtual Error parse_file(const String &p_path, Vector<String> *r_ids, Vector<Vector<String>> *r_ids_ctx_plural) override;
|
||||
|
||||
Reference in New Issue
Block a user