Hi plese can you help me I´m trying to translate some words from English to Spanish I followed your guide:
I am using pro
for now I need to translate:
Read more: Leer más
Search: Buscar
Steps that I already did.
-
Download and Install Poedit software.
-
Connect to FTP to the following directory: /public_html/wp-content/themes/pro/framework/lang
-
Open the x.po file translate the two words mentioned before “search” “read more”
-
create the es_ES.po file.
-
compile the es_ES file to create the es_ES.mo
-
Create the lang folder on the child theme: /public_html/wp-content/themes/pro-child/lang
-
Copy es_ES.po and es_ES.po file to the lang folder
-
Added the following lines on child function.php:
add_action( ‘after_setup_theme’, ‘load_child_language’ );
function load_child_language() {
load_child_theme_textdomain( ‘x’, get_stylesheet_directory() . ‘/languages’ );
}
9.setup my site language to spanish.
nothing worked also I copied the es_ES.po and es_ES.po to the:
/public_html/wp-content/languages/themes
nothing worked.