-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POT Generation not detecting exported variables #90053
Comments
Can't reproduce in 4.3 dev (current template.pot# LANGUAGE translation for LocalizationMRP for the following files:
# res://main.tscn
# res://Node2D.gd
#
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: LocalizationMRP\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8-bit\n"
#: main.tscn
msgid "EXAMPLE"
msgstr ""
#: main.tscn
msgid "OTHER_EXAMPLE"
msgstr "" |
I think the problem in the MRP was fixed when the node type check was removed by #87530. Before it would only include My PR fixed parsing of instanced scenes, and it made the included properties more dynamic. It will try to include all properties with a name that ends with godot/editor/plugins/packed_scene_translation_parser_plugin.cpp Lines 196 to 207 in 29b3d9e
This issue shouldn't be closed yet. Included and excluded node types and properties should be configurable to the user so they can decide themselves what should be included. I already have wanted to implement this, as i said in my PR, but im missing the motivation to figure out how to add project settings and start compiling Godot again (it takes like 3 hours). |
This sounds like something that should be a proposal, it's far outside the scope of this report |
Closing as fixed, please open a proposal for any additional features |
Tested versions
System information
Windows 10 - Godot v4.2.1.stable Forward+
Issue description
Generating a POT file from
Project > Project Settings > Localization > POT Generation
creates a template file which only includes text written for built-in nodes.I would expect that any node which has an exported text property to be considered for POT Generation.
Steps to reproduce
@export var text: String = ""
. Instantiate that node and set its exported variable text to 'OTHER_EXAMPLE'Project > Project Settings > Localization > POT Generation
. Add the main scene and clickGenerate POT
Minimal reproduction project (MRP)
LocalizationMRP.zip
The text was updated successfully, but these errors were encountered: