Skip to content
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

Include "PopupMenu" labels in POT gen #93521

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

nblackburn
Copy link
Contributor

@nblackburn nblackburn commented Jun 23, 2024

When generating the POT file, text labels given to PopupMenu items were not being detected as translatable strings. I found that these appear to be serialized as:

item_0/text = "MY_LABEL"
item_0/id = 1

After some digging i found that adding item_*/text to lookup_properties results in them being added to the generated template.

@nblackburn nblackburn changed the title Include "PopupMenu" labels in pot gen Include "PopupMenu" labels in POT gen Jun 23, 2024
@YeldhamDev YeldhamDev added enhancement topic:editor cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Jun 24, 2024
@YeldhamDev YeldhamDev added this to the 4.x milestone Jun 24, 2024
@AThousandShips AThousandShips requested a review from a team June 24, 2024 07:53
@akien-mga akien-mga requested a review from YeldhamDev June 24, 2024 12:03
@KoBeWi
Copy link
Member

KoBeWi commented Jun 24, 2024

This also includes ItemList.

@nblackburn
Copy link
Contributor Author

@KoBeWi So it does, looks like they share the same format.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Jun 25, 2024
@akien-mga akien-mga merged commit f597f24 into godotengine:master Jun 25, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@nblackburn nblackburn deleted the popupmenu-pot-gen branch June 25, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release enhancement topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants