Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Multi Language #19820

    Hi Sakin,

    I figured out what I did wrong in the wpml-config.xml file. It has to be like this:
    <wpml-config>
    <admin-texts>
    <key name=’catcheverest_options’>
    <key name=’homepage_headline’ />
    <key name=’homepage_subheadline’ />
    <key name=’homepage_featured_headline’ />
    </key>
    </admin-texts>
    </wpml-config>

    It works, the strings show up in the translation plugin. But When I change language, the text in the homepage_subheadline field doesn’t always change to the new language. sometimes it does. i can’t find a logic.

    So I changed the “function catcheverest_homepage_headline()” as you suggested before. That solves the problem, but creates a new one.
    Now the images in the featured content section on the homepage disappear and and links are changed into: http://www.coffee-imports.com/Copy/The%20Coffee%20Quest%20sites/Los%20Nevados%20Coffee-Imports/Site%20backup%20before%20install/Theme/catch-everest/inc/http:/www.coffee-imports.com/nl/finca-san-carlos-salgar-lot-4/
    As you can see this is a text from backend about making a backup. At the end is the correct link. So the text: Copy/The%20Coffee%20Quest%20sites/Los%20Nevados%20Coffee-Imports/Site%20backup%20before%20install/Theme/catch-everest/inc/ is pasted in between, and of course the link doesn’t work anymore.

    You know what is going wrong?
    Thanks!

    in reply to: Multi Language #19476

    I have posted the question on their forum as well. If I manage to get it working I’ll post the solution here.

    Thanks!

    in reply to: Multi Language #19468

    Hi Sakin,

    As I understand it, I have to replace the original code:
    function catcheverest_homepage_headline() {
    //delete_transient( ‘catcheverest_homepage_headline’ );
    with:
    function catcheverest_homepage_headline() {
    delete_transient( ‘catcheverest_homepage_headline’ );
    (Just removing the //)
    Is that correct? Is does not seem to change anything.

    The idea of the wpml file is to create 4 String fields in the polylang plugin settings page where I can fill in the homepage headline and featured content texts.
    These new strings don’t show up unfortunately.

    Thanks!
    Ronald

    in reply to: Multi Language #19422

    Hi Sakin,
    Thanks for your reply. Somehow the solution for qTranslate doesn’t seem to apply for Polylang. On their forum I found a solution that seems to work with many plugins and themes:
    You have to add a file wpml-config in the root folder of the theme or in a separate Polylang folder in the WP content folder.
    The code in the wpml-config file I adapted to include the desired fields I want to translate:

    <wpml-config>
    <admin-texts>
    <key name=”catcheverest-theme-options-defaults”>
    <key name=”homepage_headline” />
    <key name=”homepage_subheadline” />
    <key name=”homepage_featured_headline” />
    </key>
    </admin-texts>
    </wpml-config>

    Still I can’t get it to work. Am I making a mistake in the code? Or am I referring to the wrong file?
    Any suggestions?
    Thanks a lot!
    Ronald

Viewing 4 posts - 1 through 4 (of 4 total)