I’ll give you the steps you need to do, assuming your child theme is Customizr Child:
1. Create a child theme with the name of Customizr Child.(if you haven’t already).
2. Create a lang folder inside it.
3. Add this php code to your child theme’s functions.php:
add_action( 'after_setup_theme', 'customizr_child_theme_setup');
function customizr_child_theme_setup() {
load_child_theme_textdomain( 'customizr-child', get_stylesheet_directory() . '/lang' );
}
add_action ('__header', 'display_homepage_slogan', 100);
function display_homepage_slogan() {
ob_start();
if(is_home() && !is_paged()):
echo '<div align="center">
<span style="font-size: large;">';
$line_break = "<br />";
printf( __('Yellow Bridge is an international knowledge center that inspires %s and supports small and medium organizations
to improve their performance through sustainability.', 'customizr-child' ), $line_break );
echo '</span></div>';
endif;
echo ob_get_clean();
}
4. Download, install and open Poedit.
5. File > New. Instert your language code in there (let’s assume it’s french: you need to type fr_FR in the input that shows up).
6. Go to Catalog > Properties and put there:
Project name and version: Customizr Child
Team: put your name there
Team’s email address: put your email there (it’s safe)
Charset: UTF-8 (recommended)
Source code charset: UTF-8 (recommended)
7. Save the catalog inside the lang folder as fr_FR.po (use your own language locale, of course – ro_RO.po for romanian, etc…)
8. Go to Catalog > Properties and open the second tab. Put ../ (dot-dot-slash) as base path and add a . (dot) path (2nd icon). Click save.
9. Click Update. Your Yellow Bridge… text should now show up in the translations.
10. Select it and input your translation in the Tranlation field. Watch for the position of %s (that will be your line break).
11. Save again.
12. Now upload all your lang folder and functions.php of your child theme to your server.
Your text should correctly display in the selected language now.