0

I want to load my French language file into my Arcade Basic theme. There is a language file, arcade.pot, and I translated it using PoEdit. I don't know how to add it, there is a function, in functions.php,

load_theme_textdomain( 'arcade', BAVOTASAN_THEME_TEMPLATE . '/library/languages' );

but i'm not sure how to use it, I try like this,

load_theme_textdomain( 'fr_CA', BAVOTASAN_THEME_TEMPLATE . '/library/languages' );

fr_CA.mo is my language file.

1 Answer 1

0

you don't need to edit functions.php (moreover don't edit this line or it will break the localisation of the theme, because arcade, is the code used to know where to search translations)

according to the line you read in functions.php, you have to put fr_CA.mo and fr_CA.po in wp-content/themes/arcade-basic/library/languages

5
  • There are there, but they dosen't load. Commented Aug 12, 2015 at 14:29
  • I just try with a new installation of WordPress and this theme and it works for me (even with a child theme). have you a cache plugin or another plugin wich can interfer ?
    – mmm
    Commented Aug 12, 2015 at 16:12
  • My plugin : Askimet, Blogger Importer Extended, Blogger To Wordpress, Hello Dolly, Jetpack. Before WP Super Cache was installed, but it's now desactivate. Does the WP lang must be fr_CA? Commented Aug 12, 2015 at 17:02
  • Sorry, I have rename the two files to fr_FR instead of fr_CA and the change is instant. Thank you very much. A question : how to download WP in canadian french? Commented Aug 12, 2015 at 17:18
  • look here : translate.wordpress.org/locale/fr-ca/default/wp/4.2.x --- click on each project then click on "export" at the bottom of the page. et voilà les jolis fichiers :)
    – mmm
    Commented Aug 12, 2015 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.