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

Translations issue #390

Closed
wants to merge 3 commits into from
Closed

Translations issue #390

wants to merge 3 commits into from

Conversation

MrHarcombe
Copy link

Regarding issue #388, I think this code handles the various permutations of translations/fallback translations and duplicate files.

If the else if isn't used then when the translationFile and translationsFallbackFile are the same, then MM actually loads only the translationsFallbackFile which can cause issues later on in modules that rely on having a translation entry present, and not a tranlsationFallback entry.

MichMich and others added 3 commits July 12, 2016 15:55
@MrHarcombe
Copy link
Author

Hm, this isn't how I'd hoped it would all go - being a bit of a git novice is a pain. I just wanted to fork your "develop" branch and then submit my one change...

@MichMich
Copy link
Collaborator

MichMich commented Aug 4, 2016

Your Git work is ok. I received just the desired change. But the change itself does not do what needs to be done. More info here: 18ae08d#commitcomment-18511041

@MichMich MichMich closed this Aug 4, 2016
@MichMich
Copy link
Collaborator

MichMich commented Aug 4, 2016

No, that's all be taken care of by the translator. Are you still experiencing issues? If so, please describe the issue in the original issue-post: #388

Thanks!

@MrHarcombe
Copy link
Author

It's all good - I think the author of the MMM-Voice-Control module wasn't using the singleton Translator correctly, as he was directly accessing Translator.translations instead of going through Translator.translate. This, of course, meant that in our case where the module loaded only the fallback translation then their code failed to retrieve the necessary values.

I'm going to put a PR against their module, once I'm sure I've got it working properly :)

@MichMich
Copy link
Collaborator

MichMich commented Aug 4, 2016

Awesome! Thanks for your contribution!

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.

2 participants