• Resolved eirinitk

    (@eirinitk)


    Hi,
    I’ve been using Polylang and Minamaze theme. I have read many threads and posts about translating the frontpage but still can’t figure out how to add the frontpage strings so I can translate with polylang.
    The theme from what I understand isn’t localized. I tried doing that using codestyling localization but I can’t get all strings to appear. The problem is that I can’t find the strings in the php files to make them translatable.
    Can anyone help me figure this out?
    Thanks

    https://www.ads-software.com/plugins/polylang/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    You can create a wpml-config.xml but please read this before: The WPML language configuration file

    1) In your DB => wp_options:
    – find the option name of your theme in option_name columns. For your case is “redux
    – find the names of each options in option_value columns. For you case, many many options! So what do you want to translate? Here all your options theme, choose the options that you need:

    Array
    (
        [last_tab] =>
        [thinkup_general_logolink] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_general_logolinkretina] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_general_sitetitle] =>
        [thinkup_general_sitedescription] =>
        [thinkup_general_faviconlink] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_general_sidebars] =>
        [thinkup_general_responsiveswitch] => 0
        [thinkup_general_breadcrumbswitch] => 0
        [thinkup_general_breadcrumbdelimeter] => /
        [thinkup_general_customcss] =>
        [thinkup_general_customjavafront] =>
        [thinkup_homepage_sidebars] =>
        [thinkup_homepage_sliderswitch] => option1
        [thinkup_homepage_slidername] =>
        [thinkup_homepage_sliderpreset] => Array
            (
                [0] => Array
                    (
                        [slide_title] =>
                        [slide_description] =>
                        [slide_url] =>
                        [slide_sort] => 0
                        [slide_image_id] =>
                        [slide_image_url] =>
                        [slide_image_height] =>
                        [slide_image_width] =>
                    )
    
            )
    
        [thinkup_homepage_sliderpresetwidth] => 1
        [thinkup_homepage_sliderpresetheight] => 350
        [thinkup_homepage_introaction] =>
        [thinkup_homepage_introactionteaser] =>
        [thinkup_homepage_introactionbutton] =>
        [thinkup_homepage_introactionpage] =>
        [thinkup_homepage_introactioncustom] =>
        [thinkup_homepage_sectionswitch] => 1
        [thinkup_homepage_section1_image] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_homepage_section1_title] =>
        [thinkup_homepage_section1_desc] =>
        [thinkup_homepage_section1_link] =>
        [thinkup_homepage_section2_image] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_homepage_section2_title] =>
        [thinkup_homepage_section2_desc] =>
        [thinkup_homepage_section2_link] =>
        [thinkup_homepage_section3_image] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_homepage_section3_title] =>
        [thinkup_homepage_section3_desc] =>
        [thinkup_homepage_section3_link] =>
        [thinkup_header_searchswitch] => 0
        [thinkup_header_socialswitch] => 0
        [thinkup_header_socialmessage] =>
        [thinkup_header_facebookswitch] => 0
        [thinkup_header_facebooklink] =>
        [thinkup_header_facebookcustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_twitterswitch] => 0
        [thinkup_header_twitterlink] =>
        [thinkup_header_twittercustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_googleswitch] => 0
        [thinkup_header_googlelink] =>
        [thinkup_header_googlecustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_linkedinswitch] => 0
        [thinkup_header_linkedinlink] =>
        [thinkup_header_linkedincustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_flickrswitch] => 0
        [thinkup_header_flickrlink] =>
        [thinkup_header_flickrcustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_youtubeswitch] => 0
        [thinkup_header_youtubelink] =>
        [thinkup_header_youtubecustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_header_rssswitch] => 0
        [thinkup_header_rsslink] =>
        [thinkup_header_rsscustomicon] => Array
            (
                [url] =>
                [id] =>
                [height] =>
                [width] =>
            )
    
        [thinkup_blog_sidebars] =>
        [thinkup_post_layout] =>
        [thinkup_post_sidebars] =>
        [REDUX_imported] =>
        [thinkup_general_democontent] => 0
        [thinkup_homepage_introswitch] => 0
        [thinkup_header_facebookiconswitch] => 0
        [thinkup_header_twittericonswitch] => 0
        [thinkup_header_googleiconswitch] => 0
        [thinkup_header_linkediniconswitch] => 0
        [thinkup_header_flickriconswitch] => 0
        [thinkup_header_youtubeiconswitch] => 0
        [thinkup_header_rssiconswitch] => 0
        [thinkup_footer_widgetswitch] => 0
        [thinkup_general_logoswitch] =>
        [info_page_structure] =>
        [thinkup_general_layout] => 0
        [demo-intro] =>
        [thinkup_homepage_layout] => 0
        [thinkup_homepage_introactionlink] =>
        [thinkup_footer_layout] => 0
        [thinkup_blog_layout] =>
        [thinkup_blog_postswitch] =>
        [promotion-header] =>
        [theme-alante] =>
    )

    2) Create your wpml-config.xml with the options that you want.

    The file wpml-config.xml must be placed in the root directory of the plugin or theme. It is also possible for users to create their own wpml-config.xml file and to upload it in /wp-content/polylang/ (create the directory if it does not exist).

    You will find the strings in the tab Strings translation in your wp admin.

    You can read this topic

    Thread Starter eirinitk

    (@eirinitk)

    Hi Chrystl,
    Thank you for your answer.
    So I tried modifying the pml-config.xml file that already exists in the polylang plugin but I guess I have done something wrong.
    I wrote this but the strings I added don’t show up.

    <wpml-config>
    <admin-texts>
    <key name=’options_wpex_themes’>
    <key name=’home_tagline’ />
    <key name=’home_highlights_title’ />
    <key name=’home_portfolio_title’ />
    <key name=’home_blog_title’ />
    </key>
    <key name=’redux’>
    <key name=’thinkup_homepage_section1_title’ />
    <key name=’thinkup_homepage_section1_desc’ />
    <key name=’thinkup_homepage_section1_link’ />
    <key name=’thinkup_homepage_introactionbutton’ />
    </key>
    </admin-texts>
    </wpml-config>

    Do you know what I shoud change?
    Thank you again for your help.
    Eirini

    Thread Starter eirinitk

    (@eirinitk)

    Actually I got it!
    Thank you so much for your help!!!

    Thread Starter eirinitk

    (@eirinitk)

    oh no! I managed to make the strings appear in the translation in polylang admin but the tranlation doesn’t appear on the actual site. I don’t know why.

    Plugin Support Chrystl

    (@chrystl)

    In Settings > Languages > tab Settings: could you select for “URL modifications”:
    The language is set from the directory name in pretty permalinks.
    It works?

    Thread Starter eirinitk

    (@eirinitk)

    yes I figured that out from another post! thanks!!
    now the only last problem I have is with the thinkup_homepage_sliderpreset array. I want those options to appear as well but I guess I doing something wrong. I ve written
    <key name=’thinkup_homepage_sliderpreset’>
    <key name=’slide_title’ />
    <key name=’slide_description’ />
    <key name=’slide_url’ />

    </key>

    but it doesn’t work whereas the simple options work beautifully.
    do you know what I should write instead?
    Thank you again for your time!

    Plugin Support Chrystl

    (@chrystl)

    Yes it should be like this:

    <wpml-config>
    	<admin-texts>
            <key name="redux">
                <key name="thinkup_homepage_sliderpreset">
                    <key name="slide_description" />
                    <key name="slide_url" />
    	    </key>
            </key>
        </admin-texts>
    </wpml-config>

    Did you fill these fields in your theme options?
    Is it in Theme options > Homepage > Homepage Slider > Built-In Slider …? or where ?

    Thread Starter eirinitk

    (@eirinitk)

    yes that is what I’ve been writing.
    Yes it’s in Theme Options > Homepage >Homepage slider > Built-in Slider

    [thinkup_homepage_sliderpreset] => Array
    (
    [0] => Array
    (
    [slide_title] =>
    [slide_description] =>
    [slide_url] =>
    [slide_sort] => 0
    [slide_image_id] =>
    [slide_image_url] =>
    [slide_image_height] =>
    [slide_image_width] =>
    )

    )
    I can’t understand what I’m doing wrong ??

    Thread Starter eirinitk

    (@eirinitk)

    I think it has something to do with the [0]=>Array part above because other arrays work fine.

    Plugin Support Chrystl

    (@chrystl)

    Yes you are right. It works like that:

    <wpml-config>
    	<admin-texts>
            <key name="redux">
                <key name="thinkup_homepage_sliderpreset">
    		<key name="0">
                    	<key name="slide_description" />
                    	<key name="slide_url" />
    		</key>
    	    </key>
            </key>
        </admin-texts>
    </wpml-config>

    Hello eirinitk,

    I apologize to come back to this subject, but would you care explain a little bit more how you did it? I use the same theme. It is great. I have translated the articles and pages with Polylang, but I don’t succeed in translating the 3 featured blocks on the homepage as well as the buttons etc.
    Did you? If so, I would be very grateful if you could share your ‘how to’.
    Many thanks in advance.

    Anybody else, who has an idea (and code example) to translating the 3 featured blocks on the homepage of Minamaze, is really really welcome. :-))

    I do not succeed in translating blocks 3 featured on the homepage, as well as the buttons and slider..

    Help!! please :))

    Thanks

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Polyang and Minamaze theme’ is closed to new replies.