ACF (Advanced Custom Field) Translation
-
Marсin, thanks for the plugin. I am having a problem translating advanced custom field labels. I would be very grateful if you can tell me what I’m doing wrong.
To translate labels from Russian to Portuguese I register fields in functions.php
if ( function_exists( 'acf_add_local_field_group' ) ) : acf_add_local_field_group( array( 'key' => 'group_5ff5e76e3bbba', 'title' => __( 'ПРЕДЛОЖЕНИЕ', 'our-portugal' ), 'fields' => array( array( 'key' => 'field_5ff5e780f30ef', 'label' => __( 'Тип объекта:', 'our-portugal' ), 'name' => 'property_type', 'type' => 'select', 'choices' => array( 'appartment' => __( 'квартира', 'our-portugal' ), 'house' => __( 'дом', 'our-portugal' ), 'townhose' => __( 'таунхаус', 'our-portugal' ), 'duplex' => __( 'дуплекс', 'our-portugal' ), ), 'default_value' => 'appartment', 'return_format' => 'label', ), ), 'location' => array( array( array( 'param' => 'post_type', 'operator' => '==', 'value' => 'realty', ), ), ), ) ); endif;
`
The required strings appear in the “String translations” section. But, when I add a translation and change the user language to Portuguese, the form containing all my fields still remains in Russian. Any idea why this is happening? Thank you in advance
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘ACF (Advanced Custom Field) Translation’ is closed to new replies.