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

Check also plain language string in as_component_localized_get #185

Merged
merged 2 commits into from Apr 3, 2018

Conversation

antonio-rojas
Copy link
Contributor

If the component doesn't contain translated data for the given locale string, try the plain language string before falling back to C

Fixes #166

If the component doesn't contain translated data for the given locale string, try the plain language string before falling back to C

Fixes ximion#166
@ximion ximion merged commit bef5af5 into ximion:master Apr 3, 2018
@ximion
Copy link
Owner

ximion commented Apr 3, 2018

This can be made a bit more efficient, but I'll change that in master.
Thank you for the PR!

ximion added a commit that referenced this pull request Apr 3, 2018
Only split language from locale if we really need to, and free allocated
string from the split properly.

This resolves an issue inroduced with the last commit.
CC PR #185
@ximion
Copy link
Owner

ximion commented Apr 3, 2018

This patch also contained a memory leak, but that's all resolved in master. Thanks again for debugging the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants