This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
| Status |
Topic
|
Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
the module ACF Item Divi Machine is not translated correct
Started by: robinV-14
in: English Support
Problem: The module ACF Item Divi Machine is not translated correctly. Solution: 1- Open the (app/public/wp-content/plugins/divi-machine/includes/modules/ACFItem/ACFItem.php) file
else if (in_array($acf_type, $choice_acf_choice_types_explode)) {
if ($acf_get['value']) :
?>
With the following
else if (in_array($acf_type, $choice_acf_choice_types_explode)) {
if ($acf_get['value']) :
// WPML Workaround for compsupp-7040
if (class_exists('Sitepress')) {
$textdomain = 'WordPress';
$wpml_default_lang = apply_filters('wpml_default_language', NULL);
$wpml_current_lang = apply_filters('wpml_current_language', NULL);
if (is_array($acf_get['value'])) {
// Iterate over each item in the array
foreach ($acf_get['value'] as &$valueItem) {
$string_name = 'WPML Workaround : ' . substr($valueItem, 0, 20);
if ($wpml_default_lang == $wpml_current_lang) {
do_action('wpml_register_single_string', $textdomain, $string_name, $valueItem);
}
// Apply the translation to the string
$valueItem = apply_filters('wpml_translate_single_string', $valueItem, $textdomain, $string_name);
}
} else {
$string = $acf_get['value'];
$string_name = 'WPML Workaround : ' . substr($string, 0, 20);
if ($wpml_default_lang == $wpml_current_lang) {
do_action('wpml_register_single_string', $textdomain, $string_name, $string);
}
// Apply the translation to the string
$acf_get['value'] = apply_filters('wpml_translate_single_string', $string, $textdomain, $string_name);
}
}
?>
3- Visit the page in the original language to register the strings |
|
3 | 13 | 2 years, 6 months ago | |
|
Can't find a translation string
Started by: robinV-14 in: English Support |
|
2 | 15 | 2 years, 10 months ago | |
|
Serach not working in Divi
Started by: robinV-14 in: English Support |
|
2 | 12 | 3 years, 8 months ago |