I don’t quite get what the best practise is, when translating select box options in the panel via the language files. Or do I use the new query language?
Best case would be that if the panel-user changes the language, also the select box options change accordingly. (I don’t mean changing the user’s general panel language but with the button next to the settings button.)
I have a setup where the panel-user can select a product category via a select box. In the frontend the selected option is shown as a string in a simple <div>.
It would be cool if you can you point me in the right direction!
While you can set you option display to different languages, this only takes effect when the user chooses a different user language, not when changing the content language.
Ah, yeah! Doesn’t have to be the translated string.
Like info: "{{ page.category }}" would show “Architecture” or “Reisen” next to the page title.
But if want to display the part of the option that is show in the select (not the part that is saved to file), then you need a custom method, because you can’t use array indices in the query language.