WordPress if (is_page) translation on certain page

Hy there i have the following code for custom translations there are missing. function translate_text( $translated ) { $translated = str_ireplace( ‘All Ratings’, ‘Alle Bewertug’, $translated ); $translated = str_ireplace( ‘No Ratings’, ‘keine Bewertug’, $translated ); $translated = str_ireplace( ‘Ratings’, ‘Bewertug’, $translated ); return $translated; } add_filter( ‘gettext’, ‘translate_text’ ); add_filter( ‘ngettext’, ‘translate_text’ ); it … Read more

Adding another arg to comments_popup_link

what WordPress core functions do I have to modify to change comments_popup_link(‘Ni komentarjev’, ‘1 komentar’,’% komentarjev’) to comments_popup_link(‘Ni komentarjev’, ‘1 komentar’, **’2 komentarja’,** ‘% komentarjev’) I’d like to add an argument for 2 comments. And what lines to add to this functions? The reason why would I want to do that is simply the fact … Read more

How to use get_option() without any filter?

I’m using the newest WordPress 3.3.1 and newest qTranslate 2.5.27. I have made some an AJAX script which returns a value and message in the current language. Here I get my first problem, I solve it by sending in AJAX lang from qtrans_getLanguage() and using messages with qtrans_use($lang, ‘<!–:pl–>PL message<!–:–><!–:de–>DE message<!–:–>’); I have an wp_option … Read more

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code (WP v3.7.1) in order to adding support for custom taxonomies translation: add_action(‘admin_init’, ‘qtranslate_edit_taxonomies’); function qtranslate_edit_taxonomies(){ $args=array( ‘public’ => true , ‘_builtin’ => false ); … Read more

Prepare plugin options for multi-lingual support

I’m looking for a way to make my plugin’s options available/translatable across a multi-lingual site. For example, several of my options are text strings that are then used on the front end. echo get_option( ‘my_plugin_text’, __( ‘Whoa default text’, ‘my-plugin’ ) ); However, it has come to my attention that these strings are then not … Read more

Are contributed plugin translations automatically installed in WordPress?

WordPress provides the possibility for users to contribute to translations, e.g. Jetpack. Are these translations automatically downloaded to WordPress installs, or is it there an approval workflow by the plugin owner first? 2 Answers 2 The translations hosted in wordpress.org are reviewed and approved by translation validators. Translation validators are recognized with a badge in … Read more