I have project which based on user that logged in has option to put content
in one or more languages and have different default language.
What I want to do is to be able to switch which static text translations I use.
Example: I want user to be able to put French as main content yet display all texts __(“Text”); from French translation file. This is easy I setup locale to FR, and all is fine. French content + French translation.
Example 2 (the problem): I want user to be able to put content as English (not English translation into i18n table!) and still show him French translated text so __(“Text”) would show French translation not English one.
Back in the day there were L10n and i18n. Now I’m really lost and already tried some methods to cheat the system but I always get either wrong static text translations or system changes “default language everywhere”.
To sum up. after user is logged in I want to be able to choose which fr/default.po or en/default.po file will load without affecting the system loading content from DB/dates/currencies
Yes crazy… but this is the issue I have to solve -.-