Quantcast
Viewing all articles
Browse latest Browse all 11471

sneike on "[Plugin: Polylang] Translate strings, and language switcher question"

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 all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>