Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 676 through 700 (of 1,142 total)
  • Author
    Search Results
  • #108046
    Virtuali
    Participant

    Glad you got it!

    Although you didn’t hook it into the activity filter yet.

    as I remember it was something in the function class:

    `function filter_gettext($translation, $text`

    #108044
    aljuk
    Member

    I adapted it a little, to display a link to the category the post is in (assuming one category, and category slug of ‘category’) :

    `class PJW_Translation_Mangler {

    function filter_gettext($translation, $text, $domain) {
    global $post;
    $category = get_the_category($post->ID);
    $cat_slug = $category[0]->slug;
    $category = $category[0]->cat_name;
    $translations = &get_translations_for_domain( $domain );
    if ( $text == ‘%s wrote a new blog post: %s’ ) {
    return $translations->translate( ‘%s wrote a new post: %s, in ‘.$category.’‘);
    }
    return $translation;
    }
    }
    add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);`

    #107918
    mbasil
    Member

    Hello to all.
    Finally greek translation is still shared? If yes, where can we find it?

    Thanks

    #107898
    @mercime
    Participant

    For this text string, you can use Westi’s method at http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/

    You can add the following code in your theme’s functions.php

    `<?php

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

    class PJW_Translation_Mangler {

    function filter_gettext($translation, $text, $domain) {
    $translations = &get_translations_for_domain( $domain );
    if ( $text == ‘%s wrote a new blog post: %s’ ) {
    return $translations->translate( ‘%s wrote: %s’ );
    }
    return $translation;
    }
    }
    add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);

    ?>
    `

    #107145

    In reply to: Install Multisite

    @mercime
    Participant

    1. Recommended steps
    a. Install WordPress
    b. Create a network (i.e. multisite) https://codex.wordpress.org/Create_A_Network,
    c. Resolve any multsite issues first https://codex.buddypress.org/getting-started/before-installing/ at https://wordpress.org/support/forum/multisite
    d. then install BuddyPress https://codex.buddypress.org/getting-started/setting-up-a-new-installation/

    2. Portugese, doesn’t look to have much support
    WordPress – https://codex.wordpress.org/WordPress_in_Your_Language
    BuddyPress – no Portugese submitted at https://codex.buddypress.org/developer-docs/translations/

    @Chouf1 thx, but I am not sure I understand. It seems like the po file I am using is using strings from another version of BP – although I picked the most recent offered on the BP website supposed to work with 1.2.8. I tried to use the po file for Danish at i18n trac, but it seems it has the same issues.

    danbpfr
    Participant

    you can download some version of translation on the buddypress i18n trac:
    https://i18n.trac.buddypress.org/browser
    or on the buddypress trac:
    https://trac.buddypress.org/browser?order=name#tags
    there are only 3 strings diffs between 1.2.7 and 1.2.8 pot, so it’s not very important at this time if you miss something

    If you want to work with pot files, you have to pick in the tagged version, not in the trunk (except for your private tests of course)

    r-a-y
    Keymaster

    Looks like it’s using strings from the currently-in-development BP 1.3 :(

    Ping @boonebgorges.

    #105832
    r-a-y
    Keymaster

    This thread is over 9 months old.
    The codex instructions have been updated since then to better reflect the changes made to BP 1.2.7.

    Putting the language file in /wp-content/languages/ is preferred because when you upgrade BP, your changes won’t be wiped out!

    You have to make sure your generated .mo file is valid. I’d suggest recreating your translation files from scratch. Make very tiny changes then upload it to /wp-content/languages and check to see if your alterations stick. If they stick, keep on editing and then regenerate your translation files.

    Also make sure your locale is correct.

    To do a quick check, put “ in a template file somewhere and refresh the page to see.

    I just tested this to confirm and it works fine; I did not try this on WP 3.1 in Multisite mode though.

    #105605
    aces
    Participant

    Well you could replace
    `
    case “Who’s Online Avatars”:
    return $translations->translate( “Who’s Online…” );
    break;
    `
    for
    `
    case “Join Group”:
    return $translations->translate( “Follow” );
    break;
    `
    in the example in the link
    but as join appears quite a lot of times in buddypress, in different combinations, it might be better just to add your own language file….

    #105414
    kenrichman
    Participant

    Much happier now having created a translation file. Wish I’d known before that is the best way to go about it.

    aces
    Participant

    @kenrichman

    Have you tried?
    `
    case “Friends (%d)“:
    return $translations->translate( “Mates (%d)” );
    break;
    `
    Also. I have just discovered from the buddypress codex that the friends slug can be changed to match to your choice…
    `
    define ( ‘BP_FRIENDS_SLUG’, ‘peeps’ );
    `
    It goes in the wp-config.php file

    #105360

    In reply to: login

    @mercime
    Participant

    “and when I put the part of (what part of?) I lost language files without login and when I try to log it makes
    nothing. “

    Something’s getting lost in translation. Do rephrase your question.

    jokermill
    Member

    @Boone Gorges Great, if you need translators, i can provide RU translation

    aces
    Participant

    I think I may have just found a way – I saved the following as a plugin myself and it works. So If you change the Case text for your own it may help – I run single site so i can’t try it out…
    `<?php
    /*
    Plugin Name: Text Mangle
    Original Author URI: http://quirm.net/
    Description: Replacing buddypress texts the eshop plugin way.
    Based on PJW Translation Mangler by Peter Westwood http://blog.ftwr.co.uk/
    Originally cut and pasted from: http://quirm.net/wiki/eshop/changing-displayed-text/
    Author: Rich Pedley
    Version: 0.01
    */
    class buddypress_Translation_Mangler {
    /*
    * Filter the translation string before it is displayed.
    */
    function filter_gettext($translation, $text, $domain) {
    $translations = &get_translations_for_domain( ‘buddypress’ );
    switch($text){
    case “Who’s Online Avatars”:
    return $translations->translate( “Who’s Online…” );
    break;
    }
    return $translation;
    }
    }
    add_filter(‘gettext’, array(‘buddypress_Translation_Mangler’, ‘filter_gettext’), 10, 4);
    ?>`
    I would like to know if there’s anything wrong with using this technique in buddypress?

    camaleonw
    Member

    Actually is the admin panel which goes blank with a Server error message, but when I go to the website I can see buddypress working in spanish perfectly, may be I have to upload translation file .mo to another folder or change some script somewhere, any idea? I’m using a free hosting but has all the features enabled.

    #104597

    In reply to: Change the language!

    modemlooper
    Moderator
    #104057
    @mercime
    Participant

    There’s something getting lost in translation. Could you rephrase your question?

    #103803
    LPH2005
    Participant
    #103480
    dyerrington
    Member

    I had some time earlier to create a little spider that basically:

    – Scans the extensions page (all 12 pages!) for the direct URL’s of each plugin
    – Extracts meta-data from each of the pages (title, rating, downloads, last updated, compatible, requires.. etc)
    – Normalizes a little bit
    – Dumps to text file for database import or CSV

    Anyhow, for about 30 minutes worth of work, I was able to get most of the meta-data into a report. Some pages threw errors, probably because I didn’t set a delay between fetches or something but I could easily improve on this and cron the process into a database. Anyhow, I was mostly curious about searching through the extensions more effectively. Here’s a sampling of the top 20 or so by downloads:

    # | Title, Version, Updated, Requires, Compatible, Downloads
    1 | Plugin: BuddyPress 1.2.7 92 days ago 3 3.0.4 446618
    2 | Plugin: W3 Total Cache 0.9.1.3 126 days ago 2.8 3.0.4 263812
    3 | Plugin: MapPress Easy Google Maps 2.28 70 days ago 3 3.0.4 120369
    4 | Plugin: All in One Webmaster 6.9.9.3 44 days ago 2.9 3.1 117468
    5 | Plugin: Tweet Blender 3.2.4 50 days ago 2.8.0 3.0.4 81710
    6 | Plugin: WP-Hashcash 4.5.1 296 days ago 2.9.2 71257
    7 | Plugin: Login With Ajax 3.0.3 53 days ago 2.8 3.0.4 60193
    8 | Plugin: Codestyling Localization 1.99.7 121 days ago 2.5 3.0.4 50702
    9 | Plugin: Transposh – translation filter for wordpress 0.7.0 10 days ago 2.8 3.1 40218
    10 | Plugin: Post video players, slideshow albums, photo galleries and music / podcast playlist 1.95 2 days ago 2.0.2 3.0.4 36651
    11 | Plugin: Author Avatars List 1 121 days ago 2.8 3.0.0 32541
    12 | Plugin: Buddypress-Ajax-Chat 1.3.8 31 days ago 2.9.1,1.2 30325
    13 | Plugin: BuddyPress Media 0.1.8.7 14 days ago 2.9,1.2 3.0.4,1.2.7 26729
    14 | Plugin: Twit Connect 2.56 77 days ago 2.7.0 3.0.4 20029
    15 | Plugin: Welcome Pack 2.1 223 days ago 2.9.x,1.2.3 3.0,1.2.4.1 17864
    16 | Plugin: Invite Anyone 0.7.1 51 days ago 2.8,1.1 3.0.1,1.2.7 16969
    17 | Plugin: BuddyPress Links 0.5 91 days ago 5.2,3.x,1.2.6 5.2.x,3.x,1.2.6 15916
    18 | Plugin: BuddyPress Group Email Subscription 2.7.9 46 days ago 2.9.1 1.2 3.0.1 1.2.5.2 15806
    19 | Plugin: BuddyPress Like 0.0.8 53 days ago 2.9 3.0.4 14836

    #103244

    In reply to: BuddyPress Translation

    James
    Participant

    @wpoooooo there is small issue in 0.7.0, contact the author and he will send you updated version

    #103237

    In reply to: BuddyPress Translation

    wpoooooo
    Member

    ‘WP Symposium’ may be closer than we thought

    #103236

    In reply to: BuddyPress Translation

    wpoooooo
    Member

    Looks like ‘WP Symposium’ is due to be an alternative to Buddy Press. But it looks a long way from being ready. Will have to hope that Transposh version 0.7.0 works and move away from Buddy Press before the site gets too many users. If Multi Language remains an issue.

    #102948
    @mercime
    Participant

    Something’s getting lost in translation. Do you mean that you have three registered members but they are not listed in members page?

    #102750

    In reply to: BuddyPress Translation

    James
    Participant

    ok, have to withdraw my comment re transposh. in version 0.7.0 it has improved .po/.mo support and works excellent, at least it looks like this at the moment.

Viewing 25 results - 676 through 700 (of 1,142 total)
Skip to toolbar