1

I have a list field on Profile entity for civilities. I want to get the value of this field in a specific value whatever is the current one. Since the Profile isn't translatable I can't get a way to achieve that. Any help is welcome

6
  • Can you give an example how it should look in different languages? – 4k4 Nov 16 '17 at 7:43
  • I added a field civility on a commerce_order type. The field is a translated select list : 001|M.|Mr. 002|Mme|Mrs commerce_order itself isn't translatable, I can't get a way to get the civility string value in a specific lang – samuel Nov 18 '17 at 18:44
  • The translated select list is the same as the field label or help text of the translated field settings. It is displayed in the detected interface text language. – 4k4 Nov 18 '17 at 20:34
  • This work fine, but how can I programmaticaly specify the language ? – samuel Nov 20 '17 at 8:39
  • You need to override the config language, see drupal.stackexchange.com/questions/202483/… – 4k4 Nov 20 '17 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.