pierre.ristic
Sophomore
Just Getting Started
Member Likes (0)
Hello.
I'm testing the Edublog theme, I've started to translate but putting my french translation fr_FR.mo is not working in the root of the template file.
Where should I put it ?
I'm using it on Buddypress 1.2.2. ThanksT

Responses (5)
Member (joined February 2010) Likes (0)
Ive found this code in the fonction.php:
// Uncomment this to test your localization, make sure to enter the right language code.//function test_localization( $locale ) {
//return "my_MY";
//}
//add_filter('locale','test_localization');
if( function_exists( 'load_theme_textdomain' ) ) {
load_theme_textdomain('edu-clean', TEMPLATEPATH . '/languages/');
}
include( TEMPLATEPATH . '/_inc/functions/widget-functions.php' );
include( TEMPLATEPATH . '/_inc/functions/conditional-functions.php' );
Should I uncomment and just put fr_FR.mo in /languages/ ?
Geeky Developer (joined June 2009) Likes (0)
hi pierre
you need to have 2 file fr.FR.mo and fr_FR.po
once you have them both..just put them into edu-clean/languages/
open functions.php and look at top of file, there should be a comment out code like
//function test_localization( $locale ) {
//return "my_MY";
//}
//add_filter('locale','test_localization');
uncomment it like
function test_localization( $locale ) {
return "fr_FR"; //here is your languange code
}
add_filter('locale','test_localization');
that should make the translation working..
cheers
Member (joined February 2010) Likes (0)
Hello...Thanks for reaction.
But it doesnt work... Indeed I've just translate a piece of code, but some expression should be good on the home:
http://auregime.net/wp-content/themes/edu-clean/languages/fr_FR.mo
and http://auregime.net/wp-content/themes/edu-clean/languages/fr_FR.po
I found another problem: widgets managing...
I put some widgets on internal articles pages but nothing is displayed in articles.
Best regards !
Geeky Developer (joined June 2009) Likes (0)
hi pierre
the translation string are incorrect..i think
when you first starting the translation...rename default.mo ad default.po
to fr_FR.po and fr_FR.mo
after that open up with poedit and start translate the ready gntext string. do not update
source..of course you can edit the setting info.
try edit one or 2 line with your languange like 'by' or 'comment' etc and save it.
follow the step above and see if the translate work,
@widget in article
edu-clean only had home-left, home-right, blog sidebar and member/profile page sidebar widget
which one are you refer to?
Lifetime member! (joined May 2010) Likes (0)
Sorry to up this thread but same here.
Both po and mo files (translation completed with poedit, no error) and lines uncommented but still does not apply. fr_FR well configured in wp-config.php also.
And always no sidebar widgets on the default page template :(
Become a member