Translating custom post type metaboxes [closed]

I have found what is the problem. It isn’t enough to localize just the labels e.g. (‘Label’,’text_domain’). But also the variable itself – my code should be like this: add_meta_box($this->_meta_box[‘id’], ($this->_meta_box[‘title’],’text_domain’), array(&$this, $this->_meta_box[‘function_callback’]), $page, $this->_meta_box[‘context’], $this->_meta_box[‘priority’]);

Shortcode returning localized HTML part

Using your comments, I found what I was missing. I initialized my textdomain with : add_action(‘admin_init’, ‘related_post_shortcode_init’); function related_post_shortcode_init() { load_plugin_textdomain(‘related-post-shortcode’, false, basename( dirname( __FILE__ ) ) . ‘/i18n’ ); } So, the textdomain was ok and ready for back-office translations (admin_init), but not for front, as @Mark Kaplun suggested. I simply added another hook … Read more

How can i localized html or php source code from wordpress [closed]

<a style=”color:#333;” class=”read-more” href=””>Read More</a> From the inline style and class I cannot find in WP core it seems to be custom developed. You would have to searches through the sources of your site to locate code responsible (likely theme, but might not be). PS FYI Chrome blocks access to your site with malware warning.

How to translate theme content using site language?

Make sure to load the translations using the load_theme_textdomain function, and supposed your translations is located in the library/translations folder, then you can add the code below in you functions.php file. // let’s get this party started add_action( ‘after_setup_theme’, ‘translations’); function translations() { // let’s get language support going, if you need it load_theme_textdomain( ‘text_domain’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)