-
Author
-
July 1, 2015 at 18:25 #66016creasticParticipant
Hello,
I want to translate in french, I use the normal way in WordPress : I create “languages” folder into my child theme and I put “fr_FR.mo” into (create from fr_FR.po of the parent theme) and i put this code in functions.php :COPY CODEfunction my_child_theme_locale() { load_child_theme_textdomain( 'sweetdate-child', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_locale' );
And it doesn’t work. Do you know why ?
Thank You
July 4, 2015 at 01:03 #66412LauraModeratorHello, you should place translated files in wp-content/languages/themes with the name of the theme as you will find there
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 10, 2015 at 18:32 #77065creasticParticipantHello,
I put the file sweetdate-child-fr_FR.mo into wp-content/languages/themes folder, it doesn’t work.
September 11, 2015 at 19:10 #77220LauraModeratorHello, do not use the child name, just sweetdate. Let me know if it works
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 8, 2015 at 20:38 #86300logobbyParticipantNo it doesn’t work for me.
And why you don’t have any function like other themes do to have the possibility to upload the translate file in the child theme/languages???
Something like creastic has write…November 8, 2015 at 21:48 #86302logobbyParticipantOk if somebody wish to add his translation in sweetdate-child/languages, just add the following code in your function.php of the child theme.
// i18n
load_theme_textdomain(‘kleo_framework’, get_template_directory() . ‘/languages’);/* add translation po in child theme */
add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );
function my_child_theme_setup() {
load_child_theme_textdomain( ‘kleo_framework’, get_stylesheet_directory() . ‘/languages’ );
}
add_action( ‘after_setup_theme’, ‘sweetdate_setup’, 8 );It’s working for me 🙂
Good luck!
November 10, 2015 at 03:16 #86527LauraModeratorHello, so this is resolved? 🙂
This will be very helpful for others, thanks you 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.