Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 401 through 425 (of 1,381 total)
  • Author
    Search Results
  • danbp
    Participant

    The pot file doesn’t contain the translation, only the strings you can translate.

    The translation is done in po (not pot) file and compiled to a mo file. buddypress-de_DE.mo is the file you have to use.

    Mathuseo
    Participant

    @danbp: Thanks for your help. But it’s still not working. What I have done:

    (1) Downloaded newest version of buddypress (2.1.1).
    (2) Replaced my current buddypress.pot on webserver with the newest version (buddypress/buddypress.pot).
    (3) Open the file with poedit.
    (4) Looked for Notifications <span class=\"%s\">%s</span>
    (5) Added the translation Benachrichtigung <span class=\"%s\">%s</span>
    (6) Upload the buddypress.pot again.

    Is there any mistake in my way to fix that problem? I’m using a child theme if this is important to you.

    Thank you for helping me!

    danbp
    Participant

    As you can see in the BP source (2.1),
    $nav_name = sprintf( _x( 'Notifications <span class="%s">%s</span>', 'Profile screen nav', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );

    This string in po. is outdated: Notifications <span class=\”count\”>%s</span>

    You have to open your actual po file with poEdit (or similar translation tool) and update it with the pot file comming with latest BP version. (/buddypress/buddypress.pot)

    Once updated the string to translate will be:
    Notifications <span class=\"%s\">%s</span>
    who should be translated to:
    Benachrichtigung <span class=\"%s\">%s</span>

    Be aware that poEdit uses different colors to indicate you the translated strings, the untranslated strings AND the fuzzy strings wich are approximative translation. These fuzzy strings must be double checked and validated or modified to work.

    Example: difficult to see sometimes the subtle difference between “%s” and “count” when reading too fast ! 😉

    Mathuseo
    Participant

    Hey there,

    I have read lots about the problems if german translation and po-file with buddypress. Unfortunately nothing helped me to solve my problem.

    Everything would be translated but not the navigation elements on profile pages like “Activity”, “Notifications”, “Messages” and some more.

    In php-file buddypress/bp-notifications/bp-notifications-loader.php I found this line here:

    $nav_name = sprintf( _x( 'Notifications <span class="%s">%s</span>', 'Profile screen nav', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );

    In .po-file I found:
    Source: Notifications <span class=\”count\”>%s</span>
    Translation: Benachrichtigungen <span class=\”count\”>%s</span>

    I’m stumped and hope you can help me!

    #231304
    OsamaNuman
    Participant

    Hello,

    I have followed some translation tips provided in the support section on your website, but the issue I am having is that when I do all the translation, How can I see the translated Profile Page of BuddyPress when I am using PolyLang plugin to translate my website ?

    PS. pressing my translated language button is while opening the profile page will send me to the Home page of my website, I mean that there is no link between the English Profile BP Page and the translated language Profile Page!
    Regards

    #231236
    danbp
    Participant

    Have you added a bp translation manually to another folder ? If yes, delete it.

    If you use WP since a while and updated it recently, search a line containing define(‘WPLANG’, ‘xx_XX’)- xx_XX is a lang iso code, in wp-config.php. If you find one, delete it as it is no more used in WP 4.1

    Control via FTP that bp translation is in wp-content/languages/plugins/buddypress-fr_FR.mo
    If not there, ensure that /language/ and /plugins/ have their write access set to 755
    The mo file should be 644.

    #230516
    milenushka
    Participant

    Hi @danbp, thank you. The problem is mysite is RTL and when I try to add the translation into functions.php %1$s and %2$s jump and I get a weird sequence. How would I

    add this custom string to your po file

    ?

    I am saving my plugin’s translation files in wp/languages/plugins so they are safe from updates.

    Thank you.

    #230512
    danbp
    Participant

    Hi,

    it is a custom string, you will not find it in the po file. So you can translate it directly in the function.

    '%1$s created a new Project, %2$s'

    '%1$s your translation, %2$s', where first variable is the username and the second the project name

    You could also do differently and add this custom string to your po file, but in this case, you have to take care that your translation is not overiden by the next language update.

    #230508
    milenushka
    Participant

    Hi bp forum. @shanebp gave me this code to use to display my custom posts in the activity stream

    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action,  $post, $post_permalink ) { 
    
       if( $post->post_type == 'projects' ) {
    	$activity_action  = sprintf( __( '%1$s created a new Project, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }
    	
       return $activity_action;
    }

    Question is translation related. Should I look for this string in the buddypress.po file or translate it directly in the functions.php? And if its the last one- are there any changes I need to make to the code?

    Thank you

    M

    lyorne
    Participant

    I there,

    I have noticed that when a user want to change his email address in the settings tab, a red notification appears on screen.

    here a screenshot (it’s in french, sorry ^^): http://www.yungo.fr/pending.jpg

    translation : “There is a pending change of your email address to %1$s.<br />Check your email (%2$s) for the verification link. Cancel”

    The thing is there is no email sent to the former email address.

    I’d like either send this confirmation email like it’s supposed to or remove the whole checking /confirmation process.

    Any ideas ?

    Thanks for further help 🙂

    Mariette
    Participant

    I’m not sure if I should start a new thread about this. All was going well with the translation but I don’t seem to be having any luck with this phrase (line 5561 onwards in the orignal buddpress.pot file):

    #: bp-templates/bp-legacy/buddypress/members/activate.php:16
    msgid “”
    “Your account was activated successfully! You can now log ”
    “in
    with the username and password you provided when you signed up.”
    msgstr “”

    If I add my own phrase in the msgstr “” line, nothing changes.

    I’m just wondering if it is OK that the original phrase is underneath the msgid “” line rather than within the quote marks?

    Or is there something else I am doing wrong?

    many thanks again for your time.
    Mariette

    Mariette
    Participant

    Hi

    Just thought I’d share that this method worked for me, although I used the ending en_GB.

    I didn’t have any experience of this before and I thought this info might someone else in that situation:

    In the .po file you add your ‘translation’ in the msgstr line, eg:

    msgid “Create an Account”
    msgstr “Apply for Membership”

    Probably obvious to most people but not to me…!

    And you can generate a .mo file here:

    http://po2mo.net/

    Thanks for your help danbp.
    all the best
    Mariette

    #230308
    Paul Bursnall
    Participant

    @sebacar @mercime Hi Sebastien, from looking at replies to your Trac ticket, I think something is being lost in translation between ourselves and the devs.

    To quote the official documentation :

    Notifications are a central aspect of the user experience on a BuddyPress site. By default new notifications are displayed in the admin bar profile menu, right next to the navigation menus, some themes even integrate the notification counter in other places (like in the header or sidebar of a page).

    Notifications are sent out to your community members as soon as one of the following things happen:

    Activity

    A member mentions you in an update @username”
    A member replies to an update or comment you’ve posted

    The activity in bold above definitely stopped triggering notifications on 3 different sites I was testing, where it had previously generated a notification (probably 4 months+ consistently). Quite simply, that notification trigger stopped working. This should not be a new feature, it was already there.

    #230247
    car1979
    Participant

    Hi @danbp

    Thanks a lot for your help. I tried to follow your recommendations, but I did not get rid of my problem. I kept trying, and I think i found it, at least for my case. But it can also help a lot of people with the same issue.

    The thing is that the english text in the register.php file and the english text in the .po file do not match.

    The register.php file says:

    “Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.”

    The text in the .po file says:
    “Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.”

    Once you edit the text in the register.php file (change the dot after the word “easy” for a coma and erase the coma after “below”) the translation with the .po file works perfect.

    If anyone that take a look at this post can notify Buddypress people, or people responsable for the translations, to fix this little issue, will take away a lot of headaches of non english web devolepers and designers.

    #230230
    danbp
    Participant

    Spanish po/mo is only translated to 87% on glotpress and this phrase is actually not translated in the avaible version.

    It seems you use wordpress-language plugin, who automatically upload the mo file for you and who probably overides your work.
    Deactivate this plugin first, do your translation with poEdit, and add manually by FTP the po/mo files to wp-content/languages/plugins/buddypress-es_ES.mo

    For more details and answers, read the longest BP topic about language:
    https://buddypress.org/support/topic/buddypress-2-1-bp-language/

    danbp
    Participant

    Your po/mo files should be added to this path (create it if it doesn’t exist):

    wp-content/languages/plugins/buddypress-xx_XX.mo (where xx is the lang ISO code) For english, en_EN or en_US…

    If you need more details how translation are working, search for “translation” or “language” on the forum.

    Be carefull and keep a copy of these files localy ! 😉

    #230194

    Topic: Feedback

    in group forum Requests & Feedback
    wenetwork
    Participant

    Dear BuddyPress Team,

    I worked with a lot of social components over the past years. Drupal Commons (very flexible, but you need to handle all sorts of additional extensions that need updates), Jomsocial (even helped with a lot of BETA testing and recommended to make all strings ready for translation)…

    I just switched from Joomla to WordPress for building regular sites. Drupal 8 will be for more complex sites, with Joomla there are just too many bad plugin developers who charge money and offer poor quality. I have to say I love the way BuddyPress and bbPress is coming along with WordPress. Most important to me is that BuddyPress offers what is needed with very intuitive handling, nice theming and bbPress inclusion.

    Keep up the good work…I will try to participate as soon as I dig deeper into the core…

    #229915
    danbp
    Participant

    Polylang plugin is intended to translate your site content

    To translate BuddyPress you have to use the translation support shipped with the plugin (buddypress.pot in bp-languages folder) and create your own version of po/mo files.

    Or to get a ready to use BP translation in your language, check out from here
    For any hints about translation, or to contribute, see here.

    #229850
    sadeghr
    Participant

    Thank you I am not allowed to edit the page! :

    Persian – Farsi (fa_IR)

    Deterjan
    Participant

    Hi,

    I use Wpml with BPML. I achieved to translate every part of my website but the problem is i cant translate even if with string translation to profile fieldd value. On register, search and profile edit page is okey. All fine. But my profile page is not okey. When i edit my profile staff i see all of them is Turkish but when i updated settings all fields turn English.

    It’s just because that fields come from xprofile_date_value and i cant translate data value.

    I tried everything, even if i imported values to string translation by editing xprofile_template.php but my problem still goes.

    Anybody have idea ? how can i fix this ?

    #228851
    shanebp
    Moderator

    Please use the code button to format code you paste into this forum.

    To remove the count…
    Assuming you aren’t using a language translation file, try this in your bp-custom.php file.

    function john_gettext( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  
               return $translated;
    
        switch ( $original_text ) {
            case 'All Members <span>%s</span>':
                return 'All Members';
    
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'john_gettext', 20, 3 );
    
    #228149
    Paul Wong-Gibbs
    Keymaster

    We can’t help with validating the translations on translate.wordpress.org. I am not sure who manages the Persian translations. If you can’t find out either, ask on https://make.wordpress.org/polyglots/

    Thank you for contributing translations to BuddyPress 🙂

    MVHartley
    Participant

    Hello folks,

    I’ve been researching translation plugins for my buddypress site (WordPress 4.0 Buddypress 2.1.1 – clean install as of yet, running twenty thirteen theme right now, just starting out on the theme development for my site, I want to pin the language issue down before doing anything)

    I want to be able to provide my visitors the option of displaying my buddypress in different languages however I do NOT want to translate any of the blogs/posts/comments/forums/any user generated content I just want to translate text on the BP pages, text in the menus, alerts etc

    The only slightly complicated bit to it is I have a few custom defined profile fields that I would like to translate

    To illustrate, take this example

    my (hypothetical) member page would read:

    Name : Matt <—User entered text, not translated
    languages: English, Swedish <—selected from drop down list/check boxes
    Country : England <—selected from drop down list/check boxes
    Nationality : English <—selected from drop down list/check boxes

    MY activity feed/entry would read

    “Hello everyone, my name is Matt”

    ****Now let’s say a French visitor visits my profile, they would read

    Nom: Matt
    Langue: Anglais, Suédois
    Pay : Angleterre
    nationalité : Anglais

    “Hello everyone, My name is matt”

    **I do NOT want my comment to read**

    “Salut tout le monde, je suis matt”

    So in short, I want to be able to provide translations of everything on the website that I have coded in there (menus, alerts, instructions, registration emails, info pages etc) but leave alone anything that a user has typed

    I would really appreciate being pointed in the correct direction for this – almost all of the plugins I’ve come across so far are focused on providing translations for everything, blog posts included

    Cheers!

    Matt

    #228074
    sadeghr
    Participant

    Thank you.
    Please confirm your translations Help

    #228024
    @mercime
    Participant

    @sadeghr Thank you for your contribution. I have updated the codex page based on what I assumed you meant. Please let me know if there are any changes to the text.

Viewing 25 results - 401 through 425 (of 1,381 total)
Skip to toolbar