Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 276 through 300 (of 1,098 total)
  • Author
    Search Results
  • #245996

    In reply to: Welcome e-mail

    Venutius
    Moderator

    No I don’t think so.

    The alternative is to change the text by way of creating your own translation of it using Poedit.

    See the following:

    Customizing Labels, Messages, and URLs

    The poedit program, used for editing and creating the translation files is available for free here:

    https://poedit.net/download

    pnet
    Participant

    Well as soon as I post it I figure it out.. go figure 🙂

    In case anyone else is confused here’s what I did and I had no clue going into it.

    Use this https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ for a reference on what to name your files and where to put them. (.po and .mo files, trust me I did not even know what these were)

    Download this editor/compiler here: https://poedit.net/download (it’s free!)
    You will need this to create (compile) the .mo file (if you want to know what these files are google it, that’s what I did)

    Use the buddypress link above and go to the “Translating with PoEdit” section, it will walk you through how to open the file with Poedit.
    (This part “This will open a settings dialog and you will be asked to fill in some details such as project name which we’ll skip. Click on ‘OK’ and you’ll be asked to save your language file.” did not happen for me, it asked me my language and I selected English United States, choose what you desire.)

    Now remember in my case I needed to change a few buddypress page titles.
    Example: I wanted to change the buddypress title “Groups” to “Chat Rooms” –
    While in Poedit with your .po file open, where you need to change it seems to be near the bottom of the file. Scroll down until you see something like this “Site-Wide Activity [component directory title]” (this was the first one for me). These are the buddypress page titles, this is where you can change them.

    Click on the title you want to change, my case Groups, below you will see “Source text” this is where “Groups” is showing. In the text area under that you will see “Translation”, this is where I typed “Chat Rooms”, as this is the title I would like it changed to.

    When finished Save your .po file. Back to Poedit, click File, select “Compile to MO” , save you .mo file as directed in the buddypress link above.
    Follow the rest of the instructions in the link to upload your .po and .mo files.

    I hope this helps out others who are new to buddypress! 🙂

    #245688
    RaybirdDesign
    Participant

    Tried that too.
    Translations are as they should be, files are in the folder they should be in.

    I guess my next question is, why isn’t this introduced as a plugin settings option?

    #245655
    danbp
    Participant

    Hi, perhaps you omited a dot or another php element. Anyway, below snippet add same fonction to members directory by using the appropriate filter, so you haven’t to touch the template.
    Add it to child theme functions.php or bp-custom.php

    Show user’s role on member directory

    function who_are_you_dir() {
    
    $user = new WP_User( bp_get_member_user_id() );
    
    	if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
    		foreach ( $user->roles as $role ) {
    
    	/**
    	 * Fetch the user's role. See https://codex.wordpress.org/Roles_and_Capabilities
    	 * _e('role name', 'text_domain' ) allows use of translation
    	 * else use echo "role name"; 
    	*/
    
    		// Output
    			if ( $role == 'administrator') {
    			echo "Administrator";
    			} 
    
    			if ( $role == 'subscriber') {
    			echo "Subscriber";
    			} 
    
    			if ( $role == 'contributor') {
    			echo "Contributor";
    			}
    
    			if ( $role == 'author') {
    			echo "Author";
    			}
    
    			if ( $role == 'editor') {
    			echo "Editor";
    			} 
    		}
    	}
    }
    add_filter ( 'bp_directory_members_item', 'who_are_you_dir' );

    To show user’s role(s) on his profile, you can use this:

    Show user’s role on profile

    function blablabla() {
    
    $user = new WP_User( bp_displayed_user_id() );
    
    	if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
    		foreach ( $user->roles as $role )
    			echo $role;
    	}
    }
    add_action( 'bp_before_member_header_meta', 'blablabla' );
    #245535
    Venutius
    Moderator

    WPML seems to be the most sophisticated translation engine, however it adds a lot of complexity to the site and using it with Buddypress tends to mean you will have a slow site.

    #244604
    danbp
    Participant

    Hi @3t_mj,

    this can be done CSS, using :after pseudo selector. All labels containing (required) have a for attribute which let you select them individually. You can also apply a rule by field type.
    As the string (required) is in translation, remove it from there and use & nbsp;(without space after & ) in place of.

    Here a working example, with both technique.

    /* Register bp section */
    #profile-details-section .field_type_textbox label:after {
      content: " *";
      color: red;
      position: relative;
    }
    
    /* Register WP section */
    #basic-details-section label[for="signup_username"]:after {
      content: " *";
      color: red;
      position: relative;
    }
    danbp
    Participant

    Check the translation file: buddypress_CN.po (with a text editor like Notepad++) and verify that email text are all in plain text. Those strings shouldn’t contain any html entities.

    Read from here for more details about email customization:
    https://buddypress.org/support/topic/customizing-emails-template/
    https://buddypress.org/support/topic/registration-process/

    #242686

    In reply to: I want to add Spanish!

    danbp
    Participant

    Before saying it’s not working, please follow the instruction.
    Read my previous answer slowly and check the path i indicated.

    wp-content/languages/plugins/buddypress-es_ES.mo

    According to the screenshot, your site use the mexican version of WordPress.

    Unfortunatly, there is no mexican spanish translation avaible for BuddyPress !

    This force you to use spanish (es_ES and NOT es_MX) as site language to get automatically the es_ES BP translation.

    In other words, you can’t use mexican language on main site if you want BP in spanish.

    Translation can be found here: https://translate.wordpress.org/projects/buddypress/2.2.x

    #242674

    In reply to: I want to add Spanish!

    danbp
    Participant

    @alex42152,

    The main site language should be set to spanish first.
    See in WP dashboard > Stettings > General

    Normally, this settings allows automatic translation file upload of BuddyPress and bbPress (if installed).
    If not, you can add manually the language files in the wp-content/languages/plugins/ folder to get:

    wp-content/languages/plugins/buddypress-es_ES.mo
    wp-content/languages/plugins/buddypress-es_ES.po

    Each version of BP comes also with its own translatable strings file, which is at the BP plugin root.
    wp-content/plugins/buddypress/buddypress.pot

    #242125
    Whiskyharry
    Participant

    in an older installation I did the same (I hope so) and it works fine.
    Yesterday I had some issues with the profile header and I reinstalled buddypress. Now, some translations are missing…

    #241989
    Roger Coathup
    Participant

    The default BuddyPress site setup only supports a single activity, members, groups directory page.

    One solution is to create your own custom page templates, and embed the code for the activity, member and group loops in the template. You’d then assign it to your duplicate pages. You can read more about coding your own loops in the documentation section of this site.

    You could also look to see if it’s possible to use the language files — dynamically loading the appropriate text domain translations of the BuddyPress text depending which language the user has selected. In this scenario, you’d work with the default ‘single’ page setup.

    Perhaps too late for your site (if you’ve gone down the polylang route), but for all our multi language solutions, we go the multisite approach and using the Multilingual Press Pro plugin. It gives a really clean solution. Remember to enable bp multiblog if you switch to this approach.

    #241506
    speedsharks
    Participant

    It is working now. It was a bad install of wordpress. After reinstalling it, and re-doing the translation, it worked fine. Thank you for your help!

    #241297
    Whiskyharry
    Participant

    oh, 🙂
    thanx a lot. Seems that I was just a little bit confused about the translation.
    Also thanx for the links.

    #240870
    danbp
    Participant

    Hi @thesmartone,

    I even changed wp_config.php, variable WPLANG
    This is no more necessary since WP 4.0

    If your WP is in portugese, BP should be in same language automatically (except if you deactivated this feature)

    BP translation can be found on GlotPress. pt_BR is translated to 96% (see here)
    The po/mo files goes to wp-content/languages/plugins/buddypress-pt_BR.mo

    Your comment is awaiting moderation, is a default WP string. In many cases, it can also be in theme. To ensure this, activate 2013 or 2015 and test all translations for WP and BP.
    Deactivate all other plugins while doing this.

    And before claiming about buggypress, check for PBCK. Or better, read the doc before installing something. 😉

    #240592
    danbp
    Participant

    The download link on glotpress is below the content, in the bottm left corner.
    Select the mo format and click on “export” and do the same for po format.

    I’ve heard that the buddypress traduction never fails

    Caramba ! Never trust rumours !

    I can´t believe that nodoby has the same problem

    Search for “translation” on this forum and you’ll be stumped !

    #240550
    danbp
    Participant

    Which theme do you use ?
    Can you test youre install with Twenty Fifteen theme and see if anything is translated ?
    Are the terms not translated on front-end, or also in back-end ?

    FYI, the spanish translation for BP is only completed to 96%, but activity is translated. To ensure you have the most recent copy, download the spanish .mo file from here and install it in wp-content/languages/plugins/buddypress-es_ES.mo

    #240545

    In reply to: After Registertion

    @mercime
    Participant

    Something may be getting lost in translation, but if you mean you want the user who has just logged in to be redirected to his/her profile, then check out https://wordpress.org/plugins/bp-redirect-to-profile/

    #240463
    rodne
    Participant

    thanks @henrywright for the swift reply … i was struggling with where to place these files, not seeing updates and generally wondering what I had been doing wrong. Basically I had been replacing the messages of the .po files when generating the new .mo translations … instead one should simply add a preferred translation as the following article suggests (https://wpalchemists.com/2014/05/buddypress-translation-files/)

    oh the woes of .po & .mo ‘s … hope this helps someone else though!

    danbp
    Participant

    This core function has no filter. The easiest way is to use a language translation file.

    https://codex.buddypress.org/developer/customizing/customizing-labels-messages-and-urls/

    In pot file, the concerned string Members is commented by [ component directory title ].

    #238785

    In reply to: Groups issue

    Rene Streber
    Participant

    Hi,
    I deactivated all plugins,
    I checked all permalinks,
    activated the twenty four theme from wordpress instead of the Boss theme (language looked fine),
    activated buddypress (language looked fine, everything is correctly translated)

    activated the BOSS Theme (language is not 100% translated:
    examples: active, all groups, my groups, group has xx members, newly created etc. is not translated
    although we installed the newest german translation (mo/po in wp-content/languages/plugins)

    The same translation problem exists with sidewide activity as well as member directory (here all members, my friends in English)

    For groups (..community/gruppen; parent is community, template is default)
    For members (..community/mitglieder; parent is community, template is default)

    404 error if I try to open any group with wordpress or with the boss theme

    I did not run the last steps, because the issue is still present.

    Ps Every buddypress component has its own unique page

    Rene

    #238745

    In reply to: Groups issue

    danbp
    Participant

    Hallo @rene-streber,

    First of, i would recommend that you revert to a basic WP install using 2014 or 2015 theme and the WP’s german language activated and all plugins deactivated.

    If you have a local install, suggest you do your test on it instead of the prod site.

    Once this is done, you activate BuddyPress. German language will automatically be uploaded to the right folder (wp-content/languages/plugins/buddypress-de_DE.mo)
    The original translation is here. It is complete to 100%. (and also the official translation).
    FYI deckerweb provides a translation for bp 1.9 & 1.9.1. So seems to me it is outdated now.

    Check if anything is correctly übersetzt. Theoretish sollte es jetzt funktionnieren.

    If ok, you activate the main theme. Recheck everything. If ok, reactivate your plugins one by one and check each step to isolate an issue, if ever.

    If everything is correct again, you can handle the specifics for your homepage. But remind one thing: BuddyPress components use a page system which is only in for internal purpose. This means that you can’t apply a page model like for an usual WP page. And if you use a special template just for the homepage, you have to adjust it to work with BuddyPress.

    Each activated BP component should have a page assigned. And this page must be unique and empty, whithout any template or model settings, just a title.

    I see that you have some issue with page names in your menu. Button show community2 and the permalink contains community-4. Check this too, to get community only everywhere. And probably clear your trash as it may contain some duplicates from previous attempts.

    Once this is cleaned, und mit klarer aussicht, simply resave your permalinks to reinitialize all links.

    joshdrok
    Participant

    Ok, I have managed to get the menus changed. But now the only thing that isn’t changed is the buttons that say “Create a Group” on the groups browser page. I installed CodeStyling Localization plugin and looked at the translations and everything is translated so I’m not sure why that one is the only one that isn’t being changed.

    #238602
    danbp
    Participant

    When your custom language file doesn’t contain a correct header version, it will be overwriten at each BP update.

    To avoid this, you have 2 solutions.
    – completely deactivate automatic translation upload, which will affect the whole site: theme and plugins.
    – keep a safe copy and upload it to the site AFTER the update. Tehn if something is missing or no more translated, you can update your version from the pot file shipped with BP.

    If you use a cache, you have to clear it before installing a custom version. You must be sure that your wersion is running, in any case.

    #238507
    danbp
    Participant

    Chinese isn’t working for BP but works for WP.
    Russian is ok for WP & BP

    Have you a chinese translation for BP ?

    The avaible zn_CN po header needs to be completed if you want to make your own version based on it.

    #238455
    @mcuk
    Participant

    Hi @danbp,

    Sorry I think i may have confused my explanation or something and got lost in translation :s.

    Yeah I’m aware of the difference between the slugs used in the URL/permalinks and the menu/tab names. I’ve already updated the names etc in the PO files useing Poedit. But for one reason or another the: define ( ‘BP_FRIENDS_SLUG’, ‘whatever’ ); isn’t working…

Viewing 25 results - 276 through 300 (of 1,098 total)
Skip to toolbar