Hello,
I'm working on getting different content in custom HTML widget, depending on the language the user has set. I feel like I'm on the right track (I hope) but I need some help.
PHP can not run from the widget, I know. But I can include a php file using ajax. My thought is that the php file will have a script that is based on the "OW :: getLanguage ()" and detect the current language settings.
If language is "en" -> do this - echo something in english
else -> do something else - echo other text
Am I on the right track and can someone PLEASE write a few lines of code and help me? ;-)
Any help will be greatly appreciated.