14 posts in this topic
Recently Browsing 0 members
No registered users viewing this page.
I've spent few hours at this problem, but still can't solve it -
// this code works not as expected - outputs only in default language, even if $user->language is different. echo $user->fields->get("some_text_field")->label; // while this code in the same php file works as expected - output follows $user->language echo $page->any_field; Note: some_text_field field label is a multi-language field, all translations available.
If I try to do something like this:
echo $user->fields->get("some_text_field")->label->getLanguageValue($user->language); it returns:
Please, help - I want to output field label in current language! )) Thanks!