Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

lucabarbetti on "Polylang and latest Pytheas theme"

$
0
0

Good news... maybe, well, at least for the homepage strings.
The homepage strings are in the default.po file, therefore I thought that they can be translated with something like Poedit and then they would be loaded automatically. I made a very basic es_ES.po for the spanish translation, but the translated strings weren't loaded and so I had to open template-home.php (in wp-content/themes/wpex-pytheas/templates/) and to do some changes like <?php echo _e( of_get_option('home_tagline'), 'wpex'); ?> instead of <?php echo of_get_option('home_tagline'); ?>. After these changes the translate strings were loaded automatically.
I don't know if this is a proper way to solve this issue, especially because all the changes in template-home.php can be easily lost, but I could not come up with anything better than this.
As for the language selector, I haven't found a solution yet... I need some Chouby's magic here!


Viewing all articles
Browse latest Browse all 11471

Trending Articles