Translating sections of home page

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #760
    jayen
    Participant

    Where do I go to put in translations for sections of the home page? Anything that is coming from a page seems to work fine, but the strings in customize.php don’t appear to have anywhere to enter a translation.

    #772
    Anonymous
    Inactive

    Hello Jayen.

    Our theme is fully translation ready. You can find the required file in languages > bizlight.pot. For translation, there are so many WordPress plugin or editor available.

    Regards.
    eVision Themes

    #775
    jayen
    Participant

    I see this in the bizlight.pot file:

    #: inc/customizer/home-options/about/about-options.php:32
    #: inc/customizer/home-options/home-blog.php:30
    #: inc/customizer/home-options/home-featured.php:26
    #: inc/customizer/home-options/service/service-options.php:31
    msgid "Main Title"
    msgstr ""

    What I am looking for is a way to translate the title, not the message “Main Title”.

    I am using polylang plugin, but it only seems to work for pages/posts, not for entries in customize.php .

    I will ask the plugin author, but I thought a “fully translation ready” theme would allow me to translate these things in the theme.

    #777
    Anonymous
    Inactive

    Hello Jayen,

    Yes! Our theme allows to translate every text we escaping in Theme. We like to recommend Loco Translate plugin, which is available at wordpress.org.
    URL: https://wordpress.org/plugins/loco-translate/.

    Hoping it will work!

    Regards,
    eVision Themes

    #779
    jayen
    Participant

    Thanks. We already managed to work this out with polylang by adding this code to bizlight_get_all_options:

            // added by jayen
            if (function_exists('pll_register_string'))
                foreach ($bizlight_customizer_saved_values as $key => $value) {
                    pll_register_string($key, $value, 'bizlight');
                    $bizlight_customizer_saved_values[$key] = pll__($value);
                }
    #780
    Anonymous
    Inactive

    Hi,

    Great to hear your problem was solved. If you have any further queries, don’t hesitate to contact us or post. Thanks.

    Regards,
    eVision Themes

    #7687
    ines
    Participant

    Jayen,

    Sorry, but where or in which file i add this code?

    // added by jayen
    if (function_exists(‘pll_register_string’))
    foreach ($bizlight_customizer_saved_values as $key => $value) {
    pll_register_string($key, $value, ‘bizlight’);
    $bizlight_customizer_saved_values[$key] = pll__($value);
    }

    #7711
    jayen
    Participant

    add that code to bizlight_get_all_options in inc/customizer/customizer.php

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.