Details
Description
I use an extension to keep my customised translations separate from the ez core translation.ts files. I have this functioning entirely correctly with four languages. However, I just tried to add some translations for a language that is not included in the core of ezpublish, English (Canada).
If share/translations/(language)/translation.ts does not exists then the translations in extension/(extensionname)/translations/(language)/translation.ts are ignored.
<b>Steps to reproduce:</b>
1. Set up an extension that includes correctly functioning translations
2. Add a siteaccess with a locale not included in ezpublish, e.g. eng-CA
3. Add translations to, e.g., extension/extensionname/translations/eng-CA/translation.ts
4. Clear all relevant caches, including languages
5. Load eng-CA siteaccess
<b>Expected result:</b>
Translations from the extension should be used.
<b>Actual result:</b>
Translations from the extension are not used.
However, as soon as you create share/translations/eng-CA/translation.ts the corresponding translations in the extension are picked up. Note, the translation.ts file in share/translations/eng-CA must exist (although it can be empty - touch will suffice) in order to activate the extensions' translations, it seems that creating the share/translations/eng-CA directory alone is insufficient.
Thanks
Matthew