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

Fix "No loader found" error after editing PO file #97868

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

timothyqiu
Copy link
Member

@timothyqiu timothyqiu commented Oct 6, 2024

Fixes #79728
Fixes #95220

PO files used to be loaded as simple Translation resources. We later added a dedicated TranslationPO resource for it. But the loader still thinks it can only handle Translation, so it refuses to load the updated TranslationPO resource.

It's a bit awkward that TranslationPO is not currently exposed. Keeping the p_type == "Translation" comparison for better compatibility.

PO files used to be loaded as simple `Translation` resources. We later
added a dedicated `TranslationPO` resource for it. But the loader still
thinks it can only handle `Translation` resources, so it refuses to load
the updated `TranslationPO` resource.
@timothyqiu timothyqiu added this to the 4.4 milestone Oct 6, 2024
@timothyqiu timothyqiu requested a review from a team as a code owner October 6, 2024 04:27
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, working as expected.

It should be fine as a fix, but we probably should consider registering TranslationPO.

@Repiteo Repiteo merged commit d8aa32d into godotengine:master Oct 24, 2024
19 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 24, 2024

Thanks!

@timothyqiu timothyqiu deleted the po-loader branch October 24, 2024 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants