Translating Fields / Field Values

Hi there,

i’m trying to translate field values with custom translations in “site/languages/en.php”, but it looks like doing something wrong or i’m trying it the wrong way.

Lets say i’ve got a variable “day” with value “mon”, “tue” or “wed” … , run a multilang setup and wanted to translate the “mon” value to german or french (as translated in de.php or fr.php) - t($page()-field()) seems wrong, i guess …

Hoping for some hints :slight_smile:

If $page->field() doesn’t work, try $page->field()->value(). But in general, yes, that’s the way to go.

Thanks again for helping me out. Adding ->value() fixed it …