Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: I want to speak Spotlish


arifinez
Participant

@arifinez

How to work with both customized and translation .mo files?

1. I’ve uplaoded an id_ID translation (mo) file and using the multilingual plugin, it’s works.

2. I’ve made a bp-custom.php to change ‘wire’ slug into ‘memo’. It’s working on my translation pages, but not with the default english contents (‘memo’ URL’s are fine, but not with menus and ‘wire’ related texts).

<?php

define( 'BP_WIRE_SLUG', 'memo' );

?>

3. I’ve made a customized PO file (english) to fix this and load the MO language file with bp-custom.php. Now the english language is working (URL’s and contents), but those changes made some of my id_ID translation turns back into english (some ‘memo’ related translation) but the rest translation is fine…

<?php

define( 'BP_WIRE_SLUG', 'memo' );

define( 'BPLANG', 'memomu' );

if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {

load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );

}

?>

Did i made any mistake with those steps?

Is it allright using both customized and translation .mo files?

please help, thanks!

Skip to toolbar