Tag Info

New answers tagged

1

it is too late but for public use: /* if qTranslate is installed */ /* set front locale for ajax calls requested from front-end */ function set_locale_for_frontend_ajax_calls() { if ( is_admin() && defined( 'DOING_AJAX' ) && DOING_AJAX && substr( $_SERVER['HTTP_REFERER'], 0, strlen( admin_url() ) ) != admin_url() ) { ...


-2

It is better to use gettext calls, according to WPML Guidelines.


0

I accomplished this by first hooking into the 'current_screen' action and making a determination if my post_type was set, then adding the filter. There may be a shorter way but this works if you need to change the text only on a given post type. public function set_featured_image_filter(){ $screen = get_current_screen(); if( ...


0

It is possible, but not good practice. Best thing would be to change all the strings to the english version and then translate it to french. Then you would be up to the standards. Since I do not have enough reputation points to add a comment, I hereby insert the link to a possible duplicate: Link


1

So what should do is head over to https://translate.wordpress.org/projects/wp/dev And download the language .mo files, and copy them to your wp-content/languages/ folder. This should allow you to select other languages.



Top 50 recent answers are included