- This topic has 1 reply, 1 voice, and was last updated 5 years ago by
levipe.
Viewing 1 reply thread
-
AuthorPosts
-
-
February 2, 2017 at 9:09 pm #7777
levipeParticipantHi,
So I created a couple of fields with piklist. Those fields are extra fields for products (woocommerce).
I can work with them in my default language. When translating them with WPML, the fields get copied, save for the post-relate fields. Moreover, the other fields (check-boxes, textfields, …) are not shown in the WPML Woocommerce translator, which makes it impossible to translate them.
BTW: these fields never show up when in translation mode (also for other CPTs)
Any idea how to solve these issues?
piklist('field', array( 'type' => 'select', 'field' => 'color', 'label' => 'color', 'choices' => array( 'white' => 'blanc', 'red' => 'rouge', 'pink' => 'rosé' ) )); piklist('field', array( 'type' => 'select', 'field' => 'type', 'label' => 'type de vin', 'choices' => array( 'still' => 'vin tranquille', 'sparkling' => 'vin effervescent', 'else' => 'else', ) )); piklist('field', array( 'type' => 'group', 'field' => 'technique', 'label' => 'technique', 'add_more' => true, 'fields' => array( array( 'type' => 'text', 'field' => 'vintage', 'label' => 'Millésime', ), array( 'type' => 'text', 'field' => 'notesvigne', 'label' => 'A la vigne' ), array( 'type' => 'text', 'field' => 'general', 'label' => 'En général', ), array( 'type' => 'radio', 'field' => 'pelliculaire', 'label' => 'pelliculaire', 'choices' => array( '0' => __( ''), '1' => __( 'Skin contact prefermentation', 'le-vi-pe'), ), ), array( 'type' => 'text', 'field' => 'pelliculaire_duree', 'label' => 'durée macération pelliculaire', ), array( 'type' => 'select', 'field' => 'fermentation_vessel', 'label' => 'contenant fermentation', 'choices' => array( '1' => __( 'Stainless steel tank', 'le-vi-pe' ), '2' => __( 'Concrete tank', 'le-vi-pe' ), '3' => __( 'Fust', 'le-vi-pe' ), '4' => __( 'Barrel', 'le-vi-pe' ), '5' => __( 'New Barrel', 'le-vi-pe' ), '6' => __( 'Demi muid', 'le-vi-pe' ), '7' => __( 'Quevri', 'le-vi-pe' ), ) ), array( 'type' => 'text', 'field' => 'duree_vinification', 'label' => 'Durée vinification', ), array( 'type' => 'text', 'field' => 'temperature_vinification', 'label' => 'Température de vinification' ), array( 'type' => 'checkbox', 'field' => 'malolactique', 'label' => 'Malolactique', 'choices' => array( '1' => __( 'Malolactic fermentation', 'le-vi-pe' ), ) ), array( 'type' => 'checkbox', 'field' => 'surlies', 'label' => 'Sur lies', 'choices' => array( '1' => __( 'On lees', 'le-vi-pe' ), ) ), array( 'type' => 'select', 'field' => 'ripening_vessel', 'label' => 'contenant élevage', 'choices' => array( '1' => __( 'Stainless steel tank', 'le-vi-pe' ), '2' => __( 'Concrete tank', 'le-vi-pe' ), '3' => __( 'Fust', 'le-vi-pe' ), '4' => __( 'Barrel', 'le-vi-pe' ), '5' => __( 'New barrel', 'le-vi-pe' ), '6' => __( 'Demi muid', 'le-vi-pe' ), '7' => __( 'Quevri', 'le-vi-pe' ), ) ), array( 'type' => 'text', 'field' => 'pourcentage_bois_neuf', 'label' => '% Bois neuf' ), array( 'type' => 'text', 'field' => 'duree_elevage', 'label' => 'Durée élevage', ), array( 'type' => 'radio', 'field' => 'ouillage', 'label' => 'pelliculaire', 'choices' => array( '0' => __( 'Regular ouillage', 'le-vi-pe'), '1' => __( 'Under veil', 'le-vi-pe'), ) ), array( 'type' => 'text', 'field' => 'abv', 'label' => 'abv,' ), array( 'type' => 'text', 'field' => 'so2', 'label' => 'so2', ), array( 'type' => 'text', 'field' => 'sucre', 'label' => 'sucre', ), ) )); piklist('field', array( 'type' => 'post-relate', 'scope' => 'estate', 'template' => 'field' )); piklist('field', array( 'type' => 'post-relate', 'scope' => 'grape', 'template' => 'field' )); piklist('field', array( 'type' => 'post-relate', 'scope' => 'region', 'template' => 'field' )); piklist('field', array( 'type' => 'post-relate', 'scope' => 'culture', 'template' => 'field' -
February 4, 2017 at 11:09 am #7779
levipeParticipantsolved. Was a setting in WPML
-
-
AuthorPosts
Viewing 1 reply thread
- The topic ‘WPML’ is closed to new replies.