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

Show used Locales in Test Locale Dropdown #2108

Merged
merged 5 commits into from
Feb 22, 2024

Conversation

CakeVR
Copy link
Collaborator

@CakeVR CakeVR commented Feb 21, 2024

At the moment, the Test Locale in the Translation editor displays all possible locales.
This change will display all unique locales found in any of the CSVs.

@CakeVR CakeVR added the Enhance ⚡ Improve a feature's workflow. label Feb 21, 2024
@CakeVR CakeVR added this to the Version 2.0 (beta) milestone Feb 21, 2024
@Jowan-Spooner
Copy link
Collaborator

This looks okay and works, so I'm fine with merging it, but I wonder if it's necessary to do all this in the CSV file class. You could alternatively (after "Collect Translations") simply check the created .translation resources for their locales I think (either from their path or loading the resource and calling get_locale()).

However this is just a thought and I don't know if it's actually simpler.

@Jowan-Spooner
Copy link
Collaborator

LGTM. Thanks

@Jowan-Spooner Jowan-Spooner merged commit 9bbdecd into dialogic-godot:main Feb 22, 2024
2 checks passed
@CakeVR CakeVR deleted the limit-locales branch February 28, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhance ⚡ Improve a feature's workflow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants