• Hi,

    I am using WPML to translate the page. The problem I have is with the values on a dropdown field, which when I change them in a second language form, they have multiple database entries.

    example:

    Choose color:
    red
    blue

    and in German it would be:
    rot
    blau

    which then are 4 db entries (should be only 2)
    I was able to workaround this through a predefined field in um_buildin.php and translating the strings.

    example:
    ‘color_multi’ => array(
    ‘title’ => __(‘Color’,’ultimatemember’),
    ‘metakey’ => ‘color_multi’,
    ‘type’ => ‘select’,
    ‘label’ => __(‘Color’,’ultimatemember’),
    ‘placeholder’ => __(‘Select color’,’ultimatemember’),
    ‘required’ => 0,
    ‘public’ => 1,
    ‘editable’ => 1,
    ‘options’ => array( __(‘red’,’ultimatemember’), __(‘blue’,’ultimatemember’), )
    ),

    However, the member search does not work then. Because in the profile, it takes the english value with the german translation as label, but in the member search it takes value and label in German resulting in 0 found members.

    Anyone knows how to fix that?

    thx.

    https://www.ads-software.com/plugins/ultimate-member/

  • The topic ‘Field Value in Multi Language’ is closed to new replies.