Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    That’s strange. The theme claims to be WPML compatible, but that’s not the case.

    You are not using the right option name. Try 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>

    You found that it is catcheverest_options because it is used with the register_setting function, right ?

    But how do you find out about the 3 subkeys ? Using a different theme I tried a bunch of things and nothing appeared in the strings translation tab.

    I had to use PHP directly as succinctly described here. Upside is that you only have to register once, then it stays in the strings translation tab and you can remove the PHP, so no slowdown. I’m not sure it’s the same with wpml-config.xml, which may have to be loaded each time. Or not… ??

    Yeah the XML needs to be loaded each time it seems, but translating with it is cleaner. I got a test site messed up because I combined the PHP and XML techniques, disabled one or the other, cleaned up and generally testing many things to find a good workflow.

    In the end the XML is better. And it’s probably not slower for the normal user visiting the site, sounds like it’s only loaded for that Strings translation tab… (Is that correct?)

    ronalddehommel, Chouby’s XML works. If it doesn’t, try doing something in the theme settings and saving, that did the trick for me.

    Thread Starter ronalddehommel

    (@ronalddehommel)

    Chouby and Dobbydoo, thanks for the advice.
    When I corrected the wpml file the strings showed up in the backend. I needed to save some theme settings again and then the translations for the homepage_featured_headline showed up. After a lot of refreshing the English version of the homepage_subheadline showed up, but it doesn’t change anymore when I switch to German or Dutch.
    I’m not using the homepage_headline and the homepage_featured_headline seems to change properly switching languages. Only the homepage_subheadline doesn’t. It seems, it doesn’t get loaded every time.

    Any suggestions here?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't get homepage texts entered in theme options to show up in strings.’ is closed to new replies.