Forum Replies Created

Viewing 3 replies - 46 through 48 (of 48 total)
  • Thread Starter sneike

    (@sneike)

    About the number 1, template’s authors replied me that I need to use a serialized array. Now the strings correctly appear in the polylang tab. Anyway it looks like the polylang setting is ignored, on the front end I keep seeing the same untranslated string ??

    Thread Starter sneike

    (@sneike)

    Thanks for your answer Chouby, and sorry for my late reply.

    1. I can’t find the definition of the function you say. I’ll ask to the authors of the template. In the meanwhile, supposing that “top-bar-text” and “copyright” are the correct names, what should I do? I put a file called wpml-config.xml into /wp-content/polylang/ containing this:

    <wpml-config>
        <admin-texts>
    		<key name="top-bar-text" />
    		<key name="copyright" />
        </admin-texts>
    </wpml-config>

    but as far as I can understand nothing seems to change. Is this procedure correct and complete?

    2. The css rule works fine, since I’m using the language switcher in the sidebar. Anyway, if I check the option to hide the current language and if that specific post is not available in other languages, in the sidebar I’d see the widget’s title without any flag. Is it possible to completely hide the widget if there is not any other language except the current one?

    Thanks for your support
    Daniele

    Thread Starter sneike

    (@sneike)

    Thanks Chouby for your answer.

    1. this is where the theme defines the option I’d like to translate:

    $thb_field = new THB_TextField('top-bar-text');
    		$thb_field->setLabel( __('Top bar text', 'thb_text_domain') );
    		$thb_field->setHelp( __('The text will be displayed inside the header top bar (Note: accepts basic HTML).', 'thb_text_domain') );
    	$thb_container->addField($thb_field);
    
    	$thb_field = new THB_TextField('copyright');
    		$thb_field->setLabel( __('Copyright text', 'thb_text_domain') );
    		$thb_field->setHelp( __('The copyright text will be displayed at the bottom of the site (Note: accepts basic HTML).', 'thb_text_domain') );
    	$thb_container->addField($thb_field);

    I tried to create the wpml config xml, but I couldn’t make it work. Could be more precise?

    2. this should be the code of the custom language switcher

    <ul><?php pll_the_languages(array('hide_if_no_translation'=>1)); ?></ul>

    where should I insert it?

    Thanks
    DNL

Viewing 3 replies - 46 through 48 (of 48 total)