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

Only retrieve DDTP translations from the section we're looking at #17

Merged
merged 1 commit into from Aug 24, 2016

Conversation

iainlane
Copy link
Collaborator

In this case

main/i18n/Translation-foo
contrib/i18n/Translation-bar

we were attempting to open main/i18n/Translation-bar, which doesn't
exist. This was causing a code path to short circuit the function to
load translations, meaning that some were missed.

Fix that to 'continue' instead of return. Also only return translations
in the suite we are asking about, not all translations.

In this case

  main/i18n/Translation-foo
  contrib/i18n/Translation-bar

we were attempting to open main/i18n/Translation-bar, which doesn't
exist. This was causing a code path to short circuit the function to
load translations, meaning that some were missed.

Fix that to 'continue' instead of return. Also only return translations
in the suite we are asking about, not all translations.
@ximion
Copy link
Owner

ximion commented Aug 24, 2016

Looks good! Will merge when back.
(ignore the test failure, that's due to AppStream API changes)

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