If you want to change the actual names of the links, I did this by editing the language .pot file
But I’m not sure if that is the recommended method. I wanted to change My Blogs to My Sites:
For 1.2.9, translate the po file from buddypress/bp-languages directory.
Save the translation as buddypress-en_US.mo [if your local is en_US) else buddypress-your_Locals.mo in the bp-languages directory and you will be done.
Poedit is a great tool for translation.
Answer to my question:
It is already My sites in BuddyPress 1.5.
For 1.2.9, translate the po file from buddypress/bp-languages directory.
Save the translation as buddypress-en_US.mo [if your local is en_US) else buddypress-your_Locals.mo in the bp-languages directory and you will be done.
Poedit is a great tool for translation.
Thanks
@brajesh
@mercime also your example failed. I keep all functions I write in a separate folder in a lib folder, and called that custom function via: include_once(TEMPLATEPATH . ‘lib/CustomFunctions/DisplayMessage.php’);
How ever the message is un changed (the message I was cheking for was: The topic was created successfully
and I testing by changing to: I am changed.
This is the ode:
class translator
{
function filter_gettext($translation, $text, $domain)
{
$translations = $get_translations_for_domain($domain);
if( $text == ‘The topic was created successfully’)
{
return $translations->translate(‘I am changed’);
}
return $translation;
}
}
add_filter(‘gettext’, array(‘translator’, ‘filter_gettext’), 10, 4);
@akyleadam what you’re trying to change was the text string “Topic created successfully” into e.g. “when submit is liked if the post was successful – do this instead of that” and the links I gave could do that.
Take the first link, instead of creating a plugin, you can add this to your active theme’s functions.php – replacing the text string in that post to your own:
`class PJW_Translation_Mangler {
/**
* Filter the translation string before it is displayed.
*
* @param $translation The current translation
* @param $text The text being translated
* @param $context The context for the translation
* @param $domain The domain for the translation
* @return string The translated / filtered text.
*/
function filter_gettext($translation, $text, $domain) {
$translations = &get_translations_for_domain( $domain );
if ( $text == ‘Topic created successfully’ ) {
return $translations->translate( ‘when submit is liked if the post was successful – do this instead of that’ );
}
return $translation;
}
}
add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);`
You see where I’ve substituted you own terms with that of the code given by Westi
The code I posted worked for me, and I would suggest trying it first, then seeing if you would prefer other options from the google page linked to.
Putting it in the header.php should work but might unnecessarily slow the site down a bit…..
I don’t know your theme so I wouldn’t know where to put it precisely…. I put it above the “ tag and below “ – it is important that it doesn’t go anywhere between a “
im not sure where in the footer. u said appropriate area. wouldnt the header be better? i dont know . you are talking bout the link u gave me specifically right? not from the google translate i posted? cause i dont know where to put that
You put the first bit in an appropriate area in the footer – If it works how you like it then you should probably include it via your theme’s functions.php file
The second bit works in a text widget. Set up a text widget where you would like it and paste.
It translates what it can…. If there are bits that you don’t want translated you can tag them….
being its buddy press does it, translate the whole site, buttons groups etc?
im using blogs mu theme. wondering looking at the the page http://translate.google.com/translate_tools
where do i put the code exactly? footer ? header? idk, not sure. my site is http://www.yourwetideas.com , so idk if there is space for it with the theme. any suggestions? im very new to this. this would be the perfect solution if works.
i want overseas people to be able to use my website. is there a way buddy press can be translated or something. for an individual to select their language maybe? or it just automatically translates to their language? please help some one
Hi I install:
wordpress PL: OK
buddypres: OK
Send polish translation(buddypress-pl_PL.po & buddypress-pl_PL.mo)
to -> wp-content/plugins/buddypress/bp-langauges
and its still not work…
any idea ? Thanks for help !
Current Bugs with Plugins List for Plugin Developers:
Boone Gorges Group Reviews: Warning: Attempt to assign property of non-object in /home/content/47/6114047/html/wp-content/plugins/bp-group-reviews/bp-group-reviews.php on line 225
Buddypress Links: Fatal error: Call to undefined function is_site_admin() in /home/content/47/6114047/html/wp-content/plugins/buddypress-links/bp-links-classes.php on line 732
Buddypress Like: Fatal error: Call to undefined function is_site_admin() in /home/content/47/6114047/html/wp-content/plugins/buddypress-like/bp-like.php on line 248
Buddypress Group Forum Extras: Fatal error: Call to undefined function is_site_admin() in /home/content/47/6114047/html/wp-content/plugins/buddypress-group-forum-extras/bp-forum-extras.php on line 81
Transpoosh Translation Filter issue when “Load More” is clicked: Warning: Missing argument 2 for transposh_3rdparty::bp_get_activity_content_body() in /home/content/47/6114047/html/wp-content/plugins/transposh-translation-filter-for-wordpress/wp/transposh_3rdparty.php on line 116
Those are all the fatal errors right off the bat, I’ll let you know with other issues.
Hi,
I’m running a german BuddyPress community and thus using the German language file.
It works fine except for the translation of the month names in the profile: the date of birth and the date when a private message was sent still show the English month names. Other plugins, such as GigPress, use the German names.
I can change the date format (such as j. F Y), but that “F” still shows the English month.
In the German language file of BuddyPress the month names are as well translated (e.g. “Juli” instead of “July”) as in the one of WordPress itself.
I searched the whole BuddyPress installation and found the English names in bp-xprofile/bp-xprofile-templatetags.php, too, so I translated them in this file. I also translated them in wp-includes/locale.php
But still the English month names show up…?!
The functions of the message date is:
(my-buddypress-theme/members/single/messages/message-loop.php)
Does anyone know why BuddyPress won’t use the German month names and how to change that?
Thanks,
neontrauma
You can try to edit the translation file (.MO). That can be more convenient if you plan to customize many of the strings and terms used by buddypress (such “Friend”, “Group”, “activity”, etc)
Hi I am not sure what I did wrong and its not working properly…
I got the errors everything after i post a forum topic.. The new translation is done but I got this error….
Warning: Cannot modify header information – headers already sent by (output started at /home/footheal/public_html/commandoclub.net/wp-content/plugins/bp-custom.php:
in /home/footheal/public_html/commandoclub.net/wp-includes/pluggable.php on line 897
Please help.
Yeah, I’ve had problems – see details of memory usage here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/rss-error-in-dashboard#post-88690
If you are on 1and1, then their newer packages may have more memory available….
Thanks for coming back with your solution…. I wish more people would…
Fixed guys. At the end I had to buy the new product Dual Perfect that gives me more memory.
Thanks 4 your help!!
Unfortunately, 1&1 is full of crap. It’s not a trick, and it does work. Your third option is to find a better host.
Are you on the ‘Dual Perfect’ but only with 30meg?
My only experience has been with 30 meg which often, these days, isn’t enough to run wordpress on with not too many plugins…. I would have thought 60 would be just about enough…. – but maybe someone with more experience in that area could answer….
I have just talked to 1&1. They told me that the memory tricks don’t work and that I am not allowed to do that. And if I want to solve that problem I can change to a better product with more memory, the new and more expensive ones have 60 and 90MB.
The thing is that I have no clue how much memory I need… I want to install buddypress and create some profiles. The web is going to be a city guide for Madrid with reviews and photos.
Do you know if 60 MB or 90MB is enough?? Any other hosting supporting WordPress, MySQL databases, more memory and a reasobale price?
Thanks
They state in their uk faq (which i hope is now out of date) that none of the memory tricks will work…
What I would like to know is if this is also a problem with their new packages, not just with their old accounts….