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

Make POT generator able to extract strings from binary operations #79998

Conversation

YeldhamDev
Copy link
Member

Now strings can be extract from binary operations inside GDScript, such as:

tr("string 1" + "string 2")

@dalexeev
Copy link
Member

Since tr() is runtime and not a macro, I think we could add any constant expressions of the tr() argument to localization keys, not just when it's a concatenation of string literals. Plus it's easier to implement.

@YeldhamDev
Copy link
Member Author

@dalexeev This is my first time messing around with anything related to the GDScript parser, so I don't know how I would handle that.

@dalexeev
Copy link
Member

@YeldhamDev I opened an alternative PR #80020.

@adamscott
Copy link
Member

Nice translation branch, @YeldhamDev. I approved @dalexeev's PR, but thanks for your PR!

@YuriSizov
Copy link
Contributor

Superseded by #80020.

@YuriSizov YuriSizov closed this Aug 1, 2023
@YuriSizov YuriSizov removed this from the 4.2 milestone Aug 1, 2023
@YeldhamDev YeldhamDev deleted the 01110100_01110010_01100001_01101110_01110011_01101100_01100001_01110100_01101001_01101111_01101110 branch August 1, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants