Hello,
Thanks for feed-back!
I think you need to open the “language options” page under your “product” tab in wordpress menu, then find and check all translatable parameters checkboxes under “translatable post meta” (e.g. “rank_math_description”). Also do the same for post, page and public custom post types.
Hi Maxime
Thanks for that. Yes i can confirm i have activated the checkboxes for all Rank_Math.
So,im not sure.
Do you think the issue may be with the Rank_Math plugin?
If so i can contact Rank Math as i have been in correspondence with them and perhaps they can fix something there side.
I’ve tried switching plugins off one by one.
When i deactivate Rank Math. Titles, Descriptions work as per standard woocommerce / wordpress.
The translation of flatsome UX block do not work.
Just wondering.
Is anything plugin developers need todo to support Sublanguage?
If so i can write to both Flatsome & Rank Math.
Kind Regards
Richard
I just tested with Rank Math plugin and it works fine, so the problem must come from Flatsome Builder plugin. As it is a commercial plugin, you can probably get this kind of support. There is a few explanations on the Sublanguage github how to support it in plugins, plus they can contact me if needed.
Great. Thanks very much. I will contact them. π
Hi Maxime
Just an update. I contacted Flatsome and asked them if they could look into it. But as i understand they cant look into all plugin compatibility. They mentioned that they use WP codex standards.
So in the end ive suggested as a “Feature Request” and i hope it works in the future. As your plugin is one of the best out there. I know as ive been testing all for 1 month.
Im afraid after 3 days translating, it looks like i will have to buy & use translate Press. Which is a real shame, as in someways i think your route is better conceived.
Before i start again on re-translating, are you available to help if i pay you to see if we can get my site to work?
I do understand if not. Can you let me know either way. Then i’ll move forward.
Thanks for your great software…. i was 99% there.
Best wishes
Richard
Sorry, I really would like to help, but Im so busy the next 3 weeks. If you can wait that long I’ll try to find out what happens.
Hi Maxime
Thanks for your offer. That would be great. When your available can you let me know?
Also, i think the job is easier. Its only one elements that’s no translating and that is the flatsome theme page builder UX-blocks.
So im hoping it should be fairly quick & easy.
ive finished the translation.
Its just the footer that is contained in UX-block
https://wordpress-55790-842346.cloudwaysapps.com/
Or is there a way to call a different translation: For example: If /en/ [shortcode footer en]
Look forward to hearing from you.
Richard
PS: The software is brilliant.
Hi Maxime
Are you able to help, very happy to pay.
Or do you know another developer that could help?
I just need one type of block element to translate.
Can you let me know if you can help or not?
Thanks for an amazing piece of software.
Richard
Hello,
Sorry for late answer.
Sure maybe you can just fix things with quick and dirty shortcodes. Put this snippet in your functions.php:
add_shortcode('es', function($args, $content) {
global $sublanguage;
if (!isset($sublanguage) || $sublanguage->get_language()->post_name === 'es') {
return $content;
}
return '';
});
add_shortcode('en', function($args, $content) {
global $sublanguage;
if (isset($sublanguage) && $sublanguage->get_language()->post_name === 'en') {
return $content;
}
return '';
});
In your posts/pages content you can just write
[es]Texto en espaniol[/es]
[en]Your english text there[/en]
Tell me if it solve things
Maxime
Thanks for your help here. I was very exited to try this…. i placed in my funcions.php file in my active child theme (Where i have a couple other extra functions)
However, when i uploaded i got an error & within dreamweaver code, it showed (see dropbox link: https://www.dropbox.com/s/82g517bkfzgevzc/sntax-errors.png?dl=0 )
Line: 63,64, 70,71,73
If its as simple as getting this to work, it will be amazing.
Rich
Not sure why but it looks like the html special chars went encoded. Maybe just replace manually the encoded chars: & #039;
should be replaced by '
, & gt;
by >
, & amp;
by &
, etc.
Your a genius!!! It works. Perfectly.
Thank you so much Maxime for your help.
Im plan to write a blog post about translation plugins as ive tested transposh, Translate Press & yours in the winner by a long way.
Im really impressed.
The new code html decoded is below
……….
/**
* sublanguage shortcode translation
*
*/
add_shortcode(‘es’, function($args, $content) {
global $sublanguage;
if (!isset($sublanguage) || $sublanguage->get_language()->post_name === ‘es’) {
return $content;
}
return ”;
});
add_shortcode(‘en’, function($args, $content) {
global $sublanguage;
if (isset($sublanguage) && $sublanguage->get_language()->post_name === ‘en’) {
return $content;
}
return ”;
});
Only issue i have now, is this solution works perfectly with plain text. But not with other shortcodes. But im getting close, so thinking how i can fix, workaround. I dont suppose allowing shortcodes with your shortcode is a quick fix.
Anyway…. very close.
Rich
I think ive found a way. View source, get html & use this within the shortcodes.