My site is set to Spanish how to get language key from from english key?
OW::getLanguage()->text('base', 'questions_question_relationship_label') Need this retrieve english value? How to add that variable?
Hi Marcus!
You can do this:
BOL_LanguageService::getInstance()->getText(1, 'base', 'questions_question_relationship_label');
The number 1 is the language id, english is the default language and its ID is 1.
With this method you can get the text directly if the key 'questions_question_relationship_label'
Just be careful, if you try this with an inexistent key, you will have an error in your website.
Senior Developer.