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 the “rookie” text domain using “load_theme_textdomain”.
Are your files named correctly under the WordPress languages directory? Unlike the de_DE.mo file inside the theme folder, the system location requires the prefix so files should be named rookie-de_DE.mo
Related Posts:
- Want to create Child theme, but already edited Parent theme css files and some php files
- Warning: printf(): Too few arguments in helpers.php file
- WordPress filter load_textdomain_mofile not working inside a child theme’s functions.php but works form inside a plugin
- Problems clearing cache
- remove_action from parent theme using child theme functions.php
- File from parent theme imported to child theme doesn’t work – any ideas?
- How to Change Site Elements based on referring URL
- Add the shortcodes from the enfold theme to the other theme
- WordPress child theme, creating a custom php template page
- Conditionally change WordPress core language
- Local WordPress from Git repo, where to set document root?
- How to translate the blog date in the Avada theme [closed]
- Customizer: active_callback and sanitize_callback incompatibility?
- My page.php shows the index.php
- Replace part of a parent-theme customizer in the child-theme
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Custom Theme’s “Preview Changes” Doesn’t Work for Previously Published Posts
- How to let users change site language?
- two columns of posts on homepage, one of them “favorites”
- How do I link a button I created in theme customizer to a function?
- How to edit php files in Child Theme?
- 404 error when I acess the second page of post-type
- How to change theme programmatically from a external application?
- WordPress Child Themes
- Change “en-US” to “en”
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Does wordpress templates always in files or in database?
- Custom Background by Page IDs
- proper way to add css using functions.php?
- Copyright info change – Corporate Plus Theme PHP [closed]
- What does this mean in wordpress? Easy question
- Showing latest post without 301 redirect
- Non-Closing PHP Query in WordPress Loop
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Started getting warning message following host’s PHP upgrade
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Separation of presentation and code – WordPress
- WordPress Customizer Default Image
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Why in my theme I can’t see all the statics content under the posts?
- get_template_directory adding FTP root folders in urls
- How to integrate noimage picture in this code
- Need oop for wordpress theme? [duplicate]
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Why does the Woocommerce grouped template prints the unpublished products?
- Save Custom CSS file in the upload folder dynamically?
- How to edit HTML of my website on WordPress? [closed]
- Divi change project category slug
- How to specify the path for require_once in a child theme?
- Design with Elementor and code the rest?
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- How do I check or test a WordPress Auto Year Change Script?
- Use custom template on custom post type
- How to have different site identity logos on each page on Astra Theme [closed]
- How do I create a function that modifies a message in the wp-login.php file?
- Include style.css in the Child Theme with PHP
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- WordPress and PHP Version Upgrade issue [closed]
- home.php show blog posts as grid view
- blank white page when post/update/change option etc
- How to Update an old theme for the latest wordpress version
- get_comments_number() returns 0
- Fatal errors to undefined function in theme 404.php file [closed]
- Removing “Powered by” footer using child theme PHP [closed]
- Amend theme php to include certain category in header
- Overide Variable in Child Theme
- child parent styles enqueue order
- WordPress language switcher doesn’t work
- Creating a child theme after numerous edits to parent theme
- Override index with a custom PHP page
- using wp enqueue style to create a CSS file specifically for a page template
- Implementing custom tag/tax pages
- How to style injected code in header section?
- Randomize Color Scheme Selection in Theme
- Accidentally deleted php code in WordPress website [closed]
- Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?
- Child Theme’s Read More Text
- ‘Bones’ theme: Load stock scripts in footer instead of header?
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Displaying Slider in Front Page (home) using Customizr Theme
- How can I assign separate stylesheets to different pages?
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- Changing wordpress default language
- Editing Theme Files on WordPress.com-hosted Site [closed]
- call a string/function from database
- Conditionally remove comments and post meta in functions.php
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Commas in Tag Cloud
- Trying to change featured image from 180×180 to full width on home page
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- How to edit background color of only one sidebar?
- Wrap title and excerpt in a div (latest posts block)
- how to get wordpress page url php code [duplicate]
- Inline CSS header style priority function.php Child (no enqueing I think)
- WordPress redirects page query parameter in URL
- How to set all External Domain Links with nofollow Attribute from Header Footer Content and Excerpt using PHP?