thanks for the post – i’ll fix this!
Thanks. PLease let me know so I can test that on my site.
this change will be going live with version 2.7.5 of this plugin. thanks @bluebird2
Is there any spanish translation for this plugin?
Thanks,
Will
Hi.. any news on the update with the localization bug fixed? I’ve made an italian .mo file and the language isn’t loading, can’t figure it out…
thanks for any help from anyone.
please email me your italian version to deryk@bluemandala.com so I can include it in the next release. In versino 2.7.6 i made an error implementing the above code and just foolishly replaced the function with the new one, but the arguments are quite different. @stefrusso if you want to test your file go to file bp-activity-subscription.php and one line 41 change load_plugin_textdomain back to load_textdomain. that will work,
or you can try the better fix which is to change that whole function to
function activitysub_textdomain() {
load_plugin_textdomain( 'bp-ass', false, dirname( plugin_basename( __FILE__ ) )$mofile );
}
add_action( 'init', 'activitysub_textdomain' );
let me know if the second solution works.
I tried both but neither worked. it might help if you were more specific (i’m not a programmer) on the second suggestion: if you tell me exactly what code to replace with the new code I’ll try again.
thanks…
in a few minutes version 2.7.7 will be available so try it then. @stefrusso
awe shucks π
hey, why not rate the plugin at wordpress.org
http://wordpress.org/extend/plugins/buddypress-group-email-subscription/ or consider a donation π
Hi from Germany
I translate with the prg localisation, and i have the po and mo file in german.
but not working, YES i have the version 2.7.7
and the mo and po file have the name:
bb-ass-de_DE.mo and
bb-ass-de_DE.po
DONTΒ΄T work !!
Please help !
Hi Frank,
Please replace the line 36 in bp-activity-subscription.php, as following:
[ Original ]
load_plugin_textdomain( 'bp-ass', false, dirname( plugin_basename( __FILE__ ) ) );
[ Changed ]
load_plugin_textdomain( 'bp-ass', false, dirname(plugin_basename(__FILE__)).'/languages' );
OR
load_plugin_textdomain('bp-ass', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/languages');
This is because the original difines the place of the plugin but not the place of “languages” folder.
I tried this fix and it doesn’t work, I get an error and the site won’t load.
Hi stefrusso,
Do you use 2.7.7?
My fix is subject to 2.7.7.
If you use 2.7.7 and my fix do not work, probably you make some typos, for example, lacking “;” at the end of line or so.
Sometimes copy and past from this topic make extra blank or something like that, so please take time to change it manually.
My fix work on my site.
P.S.
From 2.7.7, the name of language files should be bp-ass-$locale.mo(po).
The files included 2.7.7 were old, as their names begin with buddypress.
So, you might rename your italian lang files to bp-ass-it.po and bp-ass-it.mo.