I am using lingua in an environment with multiple contexts and different sets of languages. Most of them have English as one of the languages, but initially the pages should be dislayed in the default language, ie fr, de, ko etc., as it is set by the contexts cultureKey.
Unfortunately when setting a different cultureKey in context settings, lingua.cultureKey keeps pulling the value from the main settings, eg [[++cultureKey]] gives the proper key ‘de’ as set in context settings, while [[+lingua.cultureKey]] shows ‘en’ as set in system settings.
After some digging around I noticed that if you leave the cultureKey in system settings blank, the frontend will display correctly based upon the context cultureKey. Unfortunately then the manager won’t show the dropdown option to switch between languages, no matter what cultureKey setting in the context.
Looking at the plugin I wonder if that issue had been tried to be solved before, as some lines seem to be experimenting with this?
I was thinking of workarounds like initially placing an ‘edited’ version of the cookie that lingua sets, or some sort of tv that would influence the default lingua value, but none of this has worked out.
Any suggestions would be greatly appreciated … Alternatively I would need to get rid of this extra and build something myself with loads of tv’s (migxmultilang doesn’t seem very userfriendly), but if lingua worked it would be such a cleaner solution?!