why is translation not working on theme?

I downloaded the free Rookie parent theme and have no problem displaying translations of “Search Results for: %s” on a successful search results screen. This works in the WordPress languages folder at wp-content/languages/themes/rookie-de_DE.mo as well as Loco Translate’s custom directory. It works there if the files are named correctly because the parent theme correctly loads … Read more

WP Multisite – multilanguage – swich to other language by click, but “same” content

For anyone stumbling over this question when looking up information on multilingual multisite instances: WPML (WordPress Multilingual Plugin) supports what OP was looking for by “linking” posts and pages in the backend across all languages. If a post/page is linked to all other language variations, you are able to switch between the different languages of … Read more

Post and Page Inheritance to subsites in a WordPress Network

R, the simple solution is to create a 2 post-meta. The first is “Blog id” The second is “Post id” and you use $blog_id = get_post_custom_values(‘blog_id’); $post_id = get_post_custom_values(‘post_id’); if( !empty( $blog_id ) ) switch_to_blog( $blog_id ); $query = new WP_Query( array( ‘p’ => $post_id )); if( $query->have_posts() ){ while( $query->have_post() ){ $query->the_post(); } } … Read more

Different back-end language for different users?

We could try to filter the WPLANG option locale (see e.g. this approach from the related list here on the right by @brasofilo, that’s based on this one by @toscho ): /** * Override locale settings for the current (non-admin) user */ is_admin() && add_filter( ‘locale’, function( $locale ) { // Modify locale for non-admins … Read more