This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Compatibility
This topic contains 11 replies, has 2 voices.
Last updated by Kor 1 year, 7 months ago.
Assisted by: Kor.
Author | Posts |
---|---|
July 17, 2023 at 12:42 pm #14049497 | |
jonasP-14 |
Hi, |
July 17, 2023 at 5:57 pm #14052397 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thanks for contacting WPML support. I've checked your screenshot and I know what you needed there. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified. Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements. Your forthcoming response will remain confidential, accessible only to you and me. ✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup. Upon reviewing your debug information, I have observed that the PHP limit for your "WP Memory Limit" is lower than the recommended 256MB or the required 128MB, as mentioned in the documentation found at: https://wpml.org/home/minimum-requirements/. To resolve this, I kindly request that you contact your hosting provider and request an increase in the PHP value for you. |
July 18, 2023 at 6:33 pm #14061789 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. It's this one as shown in the attached screenshot. |
July 20, 2023 at 12:30 pm #14072213 | |
jonasP-14 |
Thats not the button i can't translate. It these ones on this page. (this button is used on multiple sites because of grid builder). |
July 20, 2023 at 1:33 pm #14072793 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. I can see the issue now. To fix this, I've translated the template design as shown in this screen recording hidden link . I hope this helps. |
July 20, 2023 at 1:40 pm #14072837 | |
jonasP-14 |
That is exactly the solution i dont want. Lets say we create 30 grid templates, when we should translate the read more button on all these. This will also mean that i will have to choose the right grid template for each language on each site. This is tons of work. I want to use the same grid template, and be able to translate the button text. |
July 20, 2023 at 1:43 pm #14072909 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. Let me check further to see if I have a better solution for this. |
July 20, 2023 at 1:56 pm #14073033 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. We apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own. For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded. To assist you further, please follow these instructions: Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/ If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files. Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large. Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site. |
July 20, 2023 at 2:15 pm #14073239 | |
jonasP-14 |
Hi, |
July 21, 2023 at 5:09 pm #14081471 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience I'm able to replicate it here hidden link and I will forward this to our 2nd Tier Support for further assistance. |
July 24, 2023 at 9:32 am #14087655 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. A report has been submitted to our 2nd Tier Support and I'll let you know once I've feedback. |
July 27, 2023 at 2:48 pm #14111805 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. I'd like you to know that the vc_grid_item is by default set (and locked) as translatable. Since you're modifying a default settings, this is a custom code request. Note that we can provide this as a workaround for this specific issue and as a example for future modifications, but we can't provide more custom snippets as this is out of our support policy. To continue with the workaround, add the following code to the functions.php file // WPML: Workaround for compsupp-6892 function wpml_compsupp6892_modify_vc_btn_title( $out, $pairs, $atts ) { // Check if title is set and if it's "Read More-EN" if ( class_exists('Sitepress') && isset( $out['title'] ) ) { $string = $out['title']; $textdomain = 'WordPress'; $string_name = 'WPML Workaround : '.substr($string, 0, 20); $wpml_default_lang = apply_filters('wpml_default_language', NULL ); $wpml_current_lang = apply_filters( 'wpml_current_language', NULL ); if ($wpml_default_lang == $wpml_current_lang ) { do_action( 'wpml_register_single_string', $textdomain, $string_name, $string ); } // Apply the translation to the string $string = apply_filters('wpml_translate_single_string', $string , $textdomain, $string_name); $out['title'] = $string; // Replace the title } return $out; } add_filter( 'shortcode_atts_vc_btn', 'wpml_compsupp6892_modify_vc_btn_title', 10, 3 ); -Visit the page in the default language, to register the string -Translate the string on WPML > String Translator (WordPress textdomain) You can check out the example here hidden link Here is the access to the sandbox site hidden link This is the "read more" button hidden link and this is the translated page hidden link |