imomi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Translation issues using polylangIm so freakin’ happy! It does work!!
PHP magic.. thanks ChoubyForum: Fixing WordPress
In reply to: Translation issues using polylangOk, this is the script with the options :
<?php /* Plugin Name: Polylang translates bizway strings */ if (function_exists('pll_register_string')) add_filter('option_bizway_options', 'translate_bizway_options'); function translate_bizway_options($options) { $to_translate = array('bizway_first_head','bizway_second_head','bizway_firsthead','bizway_firstdesc','bizway_secondhead','bizway_seconddesc','bizway_thirdhead','bizway_thirddesc'); foreach ($options as $key=>$option) { if (in_array($key, $to_translate)) { if (is_admin()) pll_register_string($key, $option); else $options[$key] = pll__($option); } } return $options; }I uploaded the file in wp_content/plugins and nothing happened.
When I moved the file in wp_content/plugins/polylang and immediately said to install “update” so I did, but in settings->languages->strings translations there are no extra translation options.
What am I doing wrong?Forum: Fixing WordPress
In reply to: Translation issues using polylangChouby, I did what you said. Created a php file and pasted your code.
Could you please tell what kind of options do I need to enter in the array?
I mean the main text displaying is an h1 tag.. .Wordpress’s widget positions do not exist, the only way I can edit the home page is from the backendPic1 : https://www.dropbox.com/s/sju7ltg5a7ys3sz/Screen%20Shot%202012-11-10%20at%2010.51.48%20AM.png
Pic2 : https://www.dropbox.com/s/qdxd9y3cxyclc1w/Screen%20Shot%202012-11-10%20at%2010.52.08%20AM.png
Thanks for helping me out!
Forum: Fixing WordPress
In reply to: Translation issues using polylangof-course nothing happens…
Forum: Fixing WordPress
In reply to: Translation issues using polylangGoodmorning/evening Chouby.
There is no pll_bizway.php file on the server or locally. I’ll insert the script on polylang.php and see what happens.. :]Forum: Fixing WordPress
In reply to: Translation issues using polylangThank you Chouby, I’ll check it out soon and respond