Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'translation'

Viewing 25 results - 451 through 475 (of 1,381 total)
  • Author
    Search Results
  • jreeve
    Participant

    As I understand it, new versions of BuddyPress come with new .po and .mo files, auto-generated from the source code. I’ve modified a lot of BuddyPress’s text and messages by editing those files (translating English to English), and it looks like those edits are tied to certain php files and line numbers. I’d like my changes to be persistent across versions of BuddyPress. Is there a way to do that?

    #201004
    r-a-y
    Keymaster

    ivanguinea – If you look at the Spanish translation on translate.wordpress.org, there are still some strings that haven’t been translated:
    https://translate.wordpress.org/projects/buddypress/dev/es/default?filters[status]=untranslated

    You can help by translating these strings. If you decide to help and are not sure how to add your contributions, let us know and we’ll point you in the right direction.

    #200987
    ivanguinea
    Participant

    Hi there, this topic is driving me crazy.

    I am unable to translate buddypress into Spanish. It just translate some fields.

    I downloaded lastest translate from https://translate.wordpress.org/projects/buddypress
    and upload this plugin.

    And nothing works. Any ideas?

    #198735
    Shawn74
    Participant

    UPDATE: This issue is caused by my Italian translation…. now i’m searching the string, thanks you anyway

    #197974
    Cartographer
    Participant

    Hi @danp

    If I write the title in English there is no problem. The problem occurs only with greek characters.

    I removed the greek translation of WB an BP but still no luck.

    The strange part (as I see it) it is that the issue occurs only for the freshness column of the Sitewide Activity post. Everywhere else the link is ok.

    I hope a solution will be found.

    Thank you

    #197965
    danbp
    Participant

    remove the greek translation of WP and BP and test in english

    1a-spielwiese
    Participant

    I tried to apply the section ‘B. Full Width Layout’-description for my page, where I use the ‘Reddle’-theme.

    1st:

    I created a new folder wp-content/themes/reddle-child.

    2nd:

    I created a new file buddypress.php with that content:

    <?php
    /**
     * BuddyPress: Full-width Page Template, No Sidebar
     *
     * A full-width template for all BuddyPress pages.
     *
     * @ since Reddle 1.0 and BuddyPress 2.0.3
     */
    
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php get_template_part( 'content', 'page' ); ?>
    
    					<?php comments_template(); ?>
    
    				<?php endwhile; // end of the loop. ?>
    
    			</div><!-- #content -->
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

    I.e.: I deleted the line

    <?php get_sidebar(); ?>

    from the page.php of the ‘Reddle’-theme.

    3rd:

    I created a new file functions.php with that content:

    ?php
    // Remove sidebar body class in BuddyPress pages
    function mme_remove_sidebar_body_class($wp_classes) {
        if( function_exists ( 'bp_loaded' ) && !bp_is_blog_page() && is_active_sidebar( 'sidebar-2' ) ) :
            foreach($wp_classes as $key => $value) {
                 if ($value == 'sidebar') unset($wp_classes[$key]);
            }
        endif;
        return $wp_classes;
    }
    add_filter('body_class', 'mme_remove_sidebar_body_class', 20, 2);

    4th:

    I created a new style.ccs with that content:

    /*
    Theme Name: Reddle
    Theme URI: http://theme.wordpress.com/themes/reddle/
    Author: Automattic
    Author URI: http://automattic.com/
    Description: Everything about Reddle's minimal design elegantly adapts to how you want to use your blog and what you want to use it for. Want to use your blog for a simple one-column link blog? A two-column business site with a custom header and no posts? Reddle can do that too &mdash; and look good doing it too.
    Version: 1.3.1
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: red, white, one-column, right-sidebar, two-columns, fixed-width, flexible-width, custom-background, custom-header, custom-menu, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
    
    Reddle, Copyright 2014 Automattic, Inc.
    This theme, like WordPress, is licensed under the GPL.
    Use it to make something cool, have fun, and share what you've learned with others.
    */
    
    @import url("../reddle/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */
    
    .buddypress .entry-header,
    .buddypress .entry-content,
    .buddypress .entry-summary,
    .buddypress .entry-meta {
        max-width: 1040px;
        width: 100%;
    }
     
    @media (max-width: 1069px) {
        .buddypress .entry-header,
        .buddypress .entry-content,
        .buddypress .entry-summary,
        .buddypress .entry-meta {
            padding-left: 20px;
            padding-right: 20px;
        }
    }

    5th:

    I uploaded all three files to the ‘reddle-child’-folder; but the sidebar is still displayed.

    Vague suspection: The ‘Reddle’-equivalent for the ‘sidebar body class’ in the ‘Twenty Thirdteen’-theme is called different. – But how can I recognise, what is in the ‘Reddele’-theme the equivalent for the ‘sidebar body class’ in the ‘Twenty Thirdteen’-theme?

    #192185
    danbp
    Participant

    Glad you got it to work !

    FYI: BP Poke comes with his own languages folder who contains po/mo in english. This is wrong, but has no influence if you want to use another language.

    The reason is that many authors create a po file instead of a pot file, and when they save the file, poEdit (or similar) automatically creates a mo file.
    The correct file name should be bp-poke.pot ! You can remove the original – in english – mo, totally useless: the plugin is coded in english !

    To use a translation for this plugin, you add xx_XX.mo to bp-poke/languages/xx_XX.mo

    Text domain ref: bp-poke.php:50

    #192182
    geistschatten
    Participant

    Thank you! That worked perfect and now I see my translated terms. I tried the same process for BP Poke and it didn’t seem to work (even renamed the translation files to bp-poke-en_US.mo/po and dropped them in the languages/plugins folder). Oh well though, not as important as the main change. I’m a happy camper, so to speak… 🙂

    #192079
    danbp
    Participant

    I just tested Duena and the BP translation is fine.

    Recheck your po/mo files. Here what you must have:

    duena – leave as is.
    buddypress/bp-languages/buddypress.pot
    wp-config – if you use english, as it’s default language you have nothing to do
    // define(‘WP_LANG’, ” );
    wp-content/languages/plugins/buddypress-en_US.mo

    Now if you want to modify only some strings, make a copy of the pot file and put it in a folder outside of buddypress.

    From this copy you remove anything you don’t want and keep only the 2 lines or 4 lines (if plural form) who belong to the string you want to change. You keep only the string you want to change.
    Once done, save and rename it buddypress-en_US.po and open it with a text editor (not poEdit), as we’re going to modify the header.

    msgid ""
    msgstr ""
    "PO-Revision-Date: 2014-09-12 00:05+0100\n"
    "MIME-Version: 1.0\n"
    "Content-Type: text/plain; charset=UTF-8\n"
    "Content-Transfer-Encoding: 8bit\n"
    "Plural-Forms: nplurals=2; plural=n > 1;\n"
    "X-Generator: Poedit 1.5.7\n"
    "Project-Id-Version: BuddyPress 2.0.2\n"
    "POT-Creation-Date: \n"
    "Last-Translator: \n"
    "Language-Team: \n"
    "Language: en\n"
    "X-Poedit-SourceCharset: UTF-8\n"
    "X-Poedit-Basepath: .\n"
    "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
    "_n_noop:1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c;esc_attr__;"
    "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
    "X-Poedit-SearchPath-0: ..\n"

    The rest of the file looks like this:

    msgid "Friendships"
    msgstr ""  <strong><- replacement goes here</strong>
    
    #: bp-friends/bp-friends-template.php:588
    msgid "%s friend"
    msgid_plural "%s friends"
    msgstr[0] ""
    msgstr[1] ""

    Save in text format utf8 without BOM. (important)

    Now you can open this po file with poEdit, do your translation and save so that poEdit generate a mo file (see poEdit settings first to get this automatically each time you save a file).

    Copy the mo file in the appropriate folder and, normally, you’re done.

    References
    https://codex.wordpress.org/Translating_WordPress
    https://make.wordpress.org/polyglots/handbook/translating/basics/
    http://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-updates-in-wordpress/

    The definitive guide to disabling auto updates in WordPress 3.7

    #192075
    geistschatten
    Participant

    I called it a tutorial, I just meant this page: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    I’ve removed the bp-custom.php file entirely.

    Thank you for the list of where to put the translation files and the tip about poEdit! I installed poEdit, opened my edited .pot file, exported the .po and .mo files, uploaded them to the appropriate directories and changed to the language in wp-config to “en_US” while naming the files buddypress-en_US.po and buddypress-en_US.mo

    Still no translations showing up (even after several refreshes and Ctrl+F5), but I did discover a couple errors with my file while editing it. Something about duplicate definitions, which I fixed.

    Again, all I’m trying to do is change friends, friendships, friend requests, etc. to something else. A simple translation for only BuddyPress seemed to be the easiest way to do that.

    #191897
    danbp
    Participant

    11. Do you have any custom functions in bp-custom.php? Yes, the function from every tutorial talking about the language, but changed for my custom language file.

    Which tutorial are you telling about ?

    Remove that function, it’s not necessary i guess.

    By default, you set your site language in wp-config define ( ‘WP_LANG’, ‘de_DE’ ); and in wp settings > general (depending if single or MS install)

    Where to put the translation ?
    wp-content/languages/de_DE.mo (this is the WP translation)
    wp-content/languages/plugins/buddypress-de_DE.mo (this is the BP translation)
    wp-content/languages/themes/theme_name-de_DE.mo (this is the theme translation)

    You say you used gedit to generate your translation. It’s a text-editor, not a mo compiler. (mo means machine only, you can’t read it !)

    I suggest that you use poEdit to make a translation and generate a correct mo file.
    On Ubuntu, you can (not sure) use the msgmt command from the gettext package. Something like this

    $> msgfmt -o your_file.mo -v your_file.po

    #191887
    geistschatten
    Participant

    Alright, so I’m almost ripping out my hair over this. I’ve checked other threads on here, I’ve put the .po and .mo files in multiple directories (wp-content/languages, theme/languages, bp-languages), I’ve added the bp-custom file, tried to change the language with wp-config, and even selected the language from Settings->General.

    All I’m trying to do is change some of the words talking about friends to something else. I’m not using a BuddyPress theme, it’s the Duena theme (https://wordpress.org/themes/duena).

    I took the .pot file and edited it with a text editor for Ubuntu called gedit, then I saved it as .mo & .po files and named them accordingly. I’ve triple checked every other fix to the issue for the past few days and have had zero success.

    Since this is supposed to help, here is my info below. Any help is greatly appreciated! I just need a simple step-by-step of what to do for my versions of WP and BP, I can follow them to the letter, and then report what happens.

    1. Which version of WordPress are you running? 4.0

    2. Did you install WordPress as a directory or subdomain install? Directory.

    3. If a directory install, is it in root or in a subdirectory? Root.

    4. Did you upgrade from a previous version of WordPress? If so, from which version? The previous version, but was having the issue prior to the upgrade.

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes, everything works perfect, I just need certain words like “Friends” changed to something else.

    6. Which version of BP are you running? 2.0.2

    7. Did you upgraded from a previous version of BP? If so, from which version? The previous one, had this issue prior to the upgrade.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? (BuddyDev)BP Poke, All In One SEO Pack, BP Profile Search, BP Xtra Signup, Buddypress – Who clicked at my Profile?, BuddyPress Edit Activity Stream, BuddyPress Friends Only Activity Stream, BuddyPress Live Notification, BuddyPress Username Changer, BuddyPress Usernames Only, Gatekeeper, Limit Login Attempts, Maintenance, Membership Premium, Registration Honeypot, RS Buddypress Activity Refresh, rtMedia for WordPress BuddyPress and bbPress, Simple Login Log, Useful Banner Manager, and Welcome Pack.

    9. Are you using the standard BuddyPress themes or customized themes? Duena, so a regular theme? Not designed particularly for BuddyPress though.

    10. Have you modified the core files in any way? Other than uploading the .mo & .po files and the bp-custom.php, no.

    11. Do you have any custom functions in bp-custom.php? Yes, the function from every tutorial talking about the language, but changed for my custom language file.

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Nope, no bbPress.

    13. Please provide a list of any errors in your server’s log files. None.

    14. Which company provides your hosting? My own, HostArmor.

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux + Apache.

    #190919
    giggio
    Participant

    Yes, the files are in correct directory but the translation not work. Before the 4.0 update of wordpress there was not problem … Here is the site – http://pokerspirit.net/forum/new-topic/

    #190912
    danbp
    Participant

    @giggio,

    verify that your translation files are in the correct directory.

    For bbPress:
    wp-content/languages/bbpress/bbp-xx_XX.mo (required)
    wp-content/languages/bbpress/bbp-xx_XX.po (option)
    where xx is your language

    For BuddyPress:
    wp-content/languages/plugins/buddypress-xx_XX.mo (required)
    wp-content/languages/plugins/buddypress-xx_XX.po (option)

    FYI: both plugins are shipped with a pot file containing the strings you can translate.
    /plugin_name/languages/plugin_name.pot

    Don’t put a translation in this folder, as it will be overwritten at each update.

    giggio
    Participant

    bbPress and BuddyPress translation not working after update to wordpress to 4.0?

    #190323
    danbp
    Participant

    @annyrakesh,

    please don’t jump into old post !

    You want to modifify this phrase:

    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. who sit on the register page.

    The string is in bp-templates/bp-legacy/buddypress/members/register.php line 22
    and in the pot file of bp 2.0.2 at line 1236.

    The pot file is a working copy for translators, not the file to modify to get any customization.
    To do this you have to use poEdit, or a similar software.
    poEdit only read the pot file, then he create a po file on the fly and when you save this po file, poEdit generate a mo file.

    This is a compiled file, not human readable, who is used by the gettext php module to translate the strings he find in the buddypress code.

    Pot files are provided by the plugin authors. It’s a simple text format file with a specific syntax.
    The po file is also a text format file, but written differently, as it contains the original string in english AND the translation of this string in a foreign language.
    And the mo file is the system file who have to use on the server.

    register.php is a template file, so if you have to change only this phrase, you can make a copy and paste it into your child-theme and modify the wording directly in the file. Not orthodox, but it works.

    If you have other question about translation or wordings, feel free to open your own topic, give your bp version, theme name and used language on the installation.

    Topic closed.

    #190321
    danbp
    Participant

    @annyrakesh

    you jumped into a topic marked as resolved 14 mounth ago ! Please open a new one and indicate your theme, the language you use and where you pick up the translation.

    Topic is now closed.

    #189599
    danbp
    Participant

    It is not an issue, it is intended so !

    The logged user’s profile tab comes with 3 sub menus:
    – View (public)
    – Edit (private)
    – Change avatar (private)

    On the main navigation of the member, you have at least
    – Settings with 3 sub nav items:
    – account credential (email, password)
    – notifications
    – field visibility settings

    And if component is activated:
    – Friends
    – Groups
    – Forum

    I agree that this Setting is confusing, at least, because those labels should indicate My Friends, My Groups, My Forums and My profile fields visibility settings, which is too long i grant you. 😉

    FYI: such distinction wern’t really possible untill now in the original english version.
    But the upcomming BP 2.1 brings some better context disambiguation just to improve such situation.

    To solve this today, you can:
    1) create a translation file and modify the wording (but, as said, without disambiguation)
    2) use a child theme and hardcode the text you want into the template file (best approach)
    3) wait a few days for 2.1 to use the first option

    #188634
    Carsten
    Participant

    I was using an old translation. I’m sorry to waste your time.

    #188626
    danbp
    Participant

    Hi @presis_carsten,

    could effectively be a translation issue. Why ?
    For translation, we (i translate BP into french) mostly use HTML entities for special characters.
    In brief, accented letters in HTML. For instance, if you want to type één you would type &eacute;&eacute;n.

    The only part this should never be used is in the messages, as gettext doesn’t handle mail content.

    And so far i see, the dutch phrase contains such an accented letter (beëindigen)

    buddypress-nl_NL is here. And you’re free to modify it on Glotpress and of course in your copy, with poEdit or similar.

    I checked WP & BP’s nl_NL version on Glotpress and didn’t find the phrase you mention. Could it be you use a very old translation or some notification plugin ?

    Carsten
    Participant

    I’m using BuddyPress with a Dutch translation file. In de activity notification email an HTML entity is shown instead of ë.

    Om deze notificaties te beëindigen log in en ga naar:

    Translation: To disable these notifications please log in and go to.

    Is this a problem from the translation file or should BuddyPress decode the HTML entities?

    #188526
    danbp
    Participant

    buddypress/bp-languages/buddypress.pot
    Don’t use DW to read, modify or save a translation. Use a text editor (not word) like notepad or notepad++

    The NL translation is on Glotpress and the translation you need to put on your server is buddypress-nl_NL.mo

    This is a compiled file used by gettext. You cannot read or modify it. If you want to do so, see poEdit.
    https://translate.wordpress.org/projects/buddypress/dev/nl/default

    Languages and Translations

    You can find many other related topics if you search a little on the forum.

    #187693

    In reply to: register.php

    danbp
    Participant

    ok, supposing you did a translation file (even if you use english by default) to test the above solution and assuming it hasn’t work, let’s try the hard way.

    Add this to functions.php, it will force gettext to translate the string.

    function bpfr_force_translation( $translated, $original_text, $domain ) {
    		
    	if ( 'buddypress' !== $domain )  
    	return $translated; 
    	
    	switch ( $original_text ) {
    		
    		case '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.':
    		return 'Join PushkarGuide.com - share your experience, thoughts about this pretty town Pushkar (INDIA).';
    		
    		default:
    		return $translated;
    	}
    }
    add_filter( 'gettext', 'bpfr_force_translation', 10, 3 );

    If it doesn’t work i have no other solution to propose.

    #187665

    In reply to: register.php

    danbp
    Participant

    there are only two files […] which need to be modified.

    False.

    If you use the old BP-default theme, you only modify a copy of bp-themes/bp-default/registration/register.php placed in your child-theme

    If you use any other theme, you modify only bp-legacy/buddypress/members/register.php
    placed in the child /your-child-theme/buddypress/members/register.php

    The one or the other, but not both. And don’t forget that you should never modify core files, as your work will be lost at the next BP update. That’s why child-theme exist and is so important for customization.

    If this change doesn’t work (but it should), you have to try something different.

    Create a language file containing only the mentionned string.
    Read here.

    Do you already use a language file ? §Is your site in english ? If not indicate the used language.
    And gave your plugin list and theme name. It could be you have somewhere a conflict with ajax who block something on the registration page.

Viewing 25 results - 451 through 475 (of 1,381 total)
Skip to toolbar