I want to join in. The same thing happens with Polylang: the homepage contents are not available for translation.
Is there any multilingual plugin that can work with this theme? Thanks!
Lucky, this theme is free and sources readable… The homepage (frontpage) is translation ready (but not multlingual) as we can see in Ares sources. The slider is based on data set in dashboard and saved in options. There is no sub-selection according current language. if you are developer, I invite you to examine the child example of bundled wp theme twenty fourteen theme named twentyfourteen-xili here (https://github.com/dev-xiligroup/twentyfourteen-xili). You will see how the slider is built (featured images) and how a sub-selection of images is done. The big advantage of wellmade theme is that need very few patches in a child theme to become multilingual with xili-language plugin.
M.
Thread Starter
f rox
(@fabrizioriente)
Thanks for your reply. I’m not a developer but I understand a little php code. Since my website is already translated in two languages (italian and english) using qTranslator, except the slide text in the frontpage, I don’t want to change this theme.
For this reason I think that the straightforward approach, in my case, should be to change the “slide text” within the code, using an “if(italian) {…. } else() {…} construct.
The problem is that I don’t know exactly where is the lines that creates the 3 slide text.
Seems to be in /ares/inc/engine/avenue.php – function ares_slider()
But be very aware that modifying original code can be cancelled after next theme’s update…
Creating a child theme with this theme seems to be not very easy !
Good work
hey guys,
yes the slider text comes directly from the DB, currently I am outputting the text as is. I am not familiar with multilingual plugins like qtranslator, the most work with translation i’ve done is making a theme translation ready through a .po/.pot file.
I will look up some details on making the theme multi-lingual. I have some ideas that I will apply in the next update
@smartcat,
As I presented in front-page.php of multilingual child theme of famous ‘responsive’ here https://github.com/dev-xiligroup?tab=repositories
just insert a translate() of your slider texts coming from db, so the user will save only the data in english and the translation will be in .po .mo files of the theme… so live translated by xili-language..
_e( $responsive_options['home_headline'], 'responsive' );
function echo translate() is here better because first param is a var.
thanks Michel! I will do my best to get all my themes compatible with this in the next updates