• f rox

    (@fabrizioriente)


    Hello!
    I’m a user of Ares wordpress theme. I almost completed the whole website but, just now I noticed that the slide text on the home page cannot be translated in other languages.
    I have qTranslator plugin installed for the other pages translation but the home page slide text cannot be modified.
    I would be very sorry to change the theme now that I have completed the website. For this reasons I want to ask you if there is the possibility to add the translation of the slide text in other languages.
    Some one can help me??

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    Theme Author smartcat

    (@smartcat)

    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.

    Theme Author smartcat

    (@smartcat)

    thanks Michel! I will do my best to get all my themes compatible with this in the next updates

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Home page slide text multilanguage’ is closed to new replies.