Re: localize a theme with my own translation, is it possible?
thank you hnia, you are right, I have read more carefully the page… so I do create a bp-custom.php file ! argh!
something like this?
`<?php
//CUSTOM CODE FOR BUDDYPRESS
//PUT YOUR CODE HERE
define( ‘BPLANG’, ‘mysite’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ );
}
?>`
like the example in the page, or do I do write my directory, like this for ex.:
`<?php
//CUSTOM CODE FOR BUDDYPRESS
//PUT YOUR CODE HERE
define( ‘BPLANG’, ‘mysite’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/my-bp-language-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/my-bp-language-‘ . BPLANG . ‘.mo’ );
}
?>`
I’m sorry hnia, but I don’t understand very well…
can you please tell me a little more?
thank you!