Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 626 through 650 (of 1,134 total)
  • Author
    Search Results
  • #124659

    In reply to: Multi-language edition

    Quint
    Participant

    Native translation based on the local language setting would be sweet. So, Geneveve in France posts her comment/post in French, and when it pops in the activity stream anywhere, that French post is automatically translated to the native language. THEN to take it to the next level, let’s say someone is tutoring the language. The tutor should have the ability to enclose the text he/she doesn’t want translated per the language tutoring exercise; thus, only the text that requires translation is automatically translated. If you’re gonna dream, dream big! ;-)

    Buddypress enables so many possibilities…

    #124274
    r-a-y
    Keymaster

    Make sure you are using the most recent BuddyPress translation file to do your translation:
    /wp-content/plugins/buddypress/bp-languages/buddypress.pot

    If you need to merge an older translation file with the newer BuddyPress one, read this guide:
    https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/#poedit (scroll down to “Updating your custom language file”)

    #124240
    @mercime
    Participant

    I would place mo and po in wp-content/plugins/buddypress-activity-plus/languages folder

    #122978
    Paul Wong-Gibbs
    Keymaster

    And you’ve got the WP_LANG set correctly, and are also loading a translation for WordPress itself? Is that code snippet in your first post how you’re actually trying this? Which file did you add that to? I don’t think that should be necessary :)

    #122945
    Nahum
    Participant

    I’m now seeing that it’s only some translations that don’t take….for example.

    %s became a registered member
    Posted an update

    In poedit, i don’t know if this matters, but on the text that doesn’t work I get back an error under Show References where the text that does work shows where the text is referenced — so that’s that.

    btw i’m using a child theme with bp template pack

    #119726
    @mercime
    Participant

    @tommyhoang use language file to change the text or add this to your functions.php file
    `class Tommys_Translation_Mangler {
    function filter_gettext($translation, $text, $domain) {
    $translations = &get_translations_for_domain( $domain );
    if ( $text == ‘You will auto join this group when you reply to this topic.’ ) {
    return $translations->translate( ‘Feel free to reply.’ );
    }
    return $translation;
    }
    }
    add_filter(‘gettext’, array(‘Tommys_Translation_Mangler’, ‘filter_gettext’), 10, 4);`

    Reference: http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/

    #119610
    @mercime
    Participant

    Something’s getting lost in translation. Avatars are the images representing the members of the BuddyPress installation. Albums are photo galleries. What exactly are you asking about? WordPress has forums in different languages, perhaps there is one in your language.

    #118424
    Stigmartyr
    Member

    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.

    Stigmartyr
    Member

    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

    #117907

    In reply to: How would I?

    akyleadam
    Member

    @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);

    #117881

    In reply to: How would I?

    @mercime
    Participant

    @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

    #117847
    aces
    Participant

    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.

    #117846
    aces
    Participant

    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 “

    #117843
    dubsel
    Member

    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

    #117842
    aces
    Participant

    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….

    #117841
    dubsel
    Member

    being its buddy press does it, translate the whole site, buttons groups etc?

    #117838
    dubsel
    Member

    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.

    #117782
    aces
    Participant
    aces
    Participant
    #117192
    Virtuali
    Member

    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.

    #115311
    odiseo
    Member

    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)

    #114682
    ikn0w2
    Member

    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:8) in /home/footheal/public_html/commandoclub.net/wp-includes/pluggable.php on line 897

    Please help.

    aces
    Participant

    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….

    aces
    Participant

    Thanks for coming back with your solution…. I wish more people would…

    freigeists84
    Member

    Fixed guys. At the end I had to buy the new product Dual Perfect that gives me more memory.

    Thanks 4 your help!!

Viewing 25 results - 626 through 650 (of 1,134 total)
Skip to toolbar