Search Results for 'translation'
-
AuthorSearch Results
-
January 6, 2016 at 5:03 pm #248434danbpParticipant
Hi,
try this snippet (add it to bp-custom.php or child theme’s functions.php):
function garfrey_widget_title( $title ) { if ( $title == "Members") { $title = __('Members Translation') ; // foreign char. here } return $title; } add_filter ( 'widget_title' , 'garfrey_widget_title', 21 );
Reference:
https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_titleJanuary 3, 2016 at 5:41 pm #248323In reply to: Private Pages Glitch?
burger0815ParticipantHello Brajesh Singh and Engine44
I am a newcomer to buddypress and I think I had similar problems as Engine44.
Frankly I could imagine that there are more people who have this
problem but eventually don’t even realize it as a problem.
In particular I can’t imagine that all that bp networks which
are used by schools want to have kids discuss in public. So it might
be a severe problem. But as said I am a newcomer so I might easily be
wrong.The following concerns mostly the member and activity pages (I hope they are called
this way, this is a direct translation from german), which are either set
public -or if set private can’t be found anymore (which seems to kill more or less all major bp functions, like you can’t see profile etc.) I haven’t looked into groups yet.I asked a person for help who is pretty proficient in solving general programming
problems but who is not a programmer and in particular not a PHP programmer. So eat with
utmost caution.He came up with the following hack:
The activity and member pages need to be public in order to assign them
on the bp page. (I think this is the default upon installation)
Then set the pages to private.go to buddypress/bp-core/bp-core-functions.php
and then in function bp_core_get_directory_pages() {…change
$page_names = $wpdb->get_results( „SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_statues = ‘publish’ ” );
into
// temporary hack
if ( is_user_logged_in() ) {
$page_names = $wpdb->get_results( “SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) ” );
} else {
$page_names = $wpdb->get_results( “SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_statues = ‘publish’ ” );
}
// was:
// $page_names = $wpdb->get_results( “SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_statues = ‘publish’ ” );
// /temporary hackDecember 19, 2015 at 12:57 pm #247894In reply to: Problem with translation of some strings
danbpParticipantTranslated to 100% doesn’t mean updated to 100%. Have you verified any of your translation with the .pot file ?
Normally, an update (plugin, theme,..) is shipped with his most recent pot file. Open the .po file with poEdit and run an update from pot.
With poEdit you can also check the file and the line number containing the word you’re not able to translate. With this information, control the file content and verify that the string is correctly formatted for i18n. Sometimes, a localization is omitted, or in case of buttons, the error can be in a js file… You have to investigate attentively. I can’t help you more, sorry. 😉
December 19, 2015 at 8:29 am #247886In reply to: Problem with translation of some strings
danbpParticipantHi,
check your theme translation or menu settings and eventually your plugins (if you use some).
On your members page source code, there is a long phrase in english inside a div which is not from BuddyPress:
You can browse all activities here. Use menu below if you want to browse only specific activities like […]The theme was published in 2013, it could be possible that it is not updated for latest BP version…
December 12, 2015 at 3:55 am #247687In reply to: Pages Not Working?
mas6ceParticipantAnother follow-up: it turns out this is because of a plugin I was using – Multilanguage by BestWebSoft… I would really love to keep using this plugin (I’ve been hunting for translation plugins for over a month and this is the only one I’ve found that actually does what I need it to do translation-wise)
Is there any way to make the plugin BuddyPress-Compatible?
November 26, 2015 at 6:03 pm #247207In reply to: Problem with language/translate
r-a-yKeymasterTry downloading the following:
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations?format=mo
Rename the files to
buddypress-de_DE.po
andbuddypress-de-DE.mo
respectively.Then, move the files to
/wp-content/languages/plugins/
.Since the translation is not 100% complete, you might see some English strings.
Let me know if that works for you.
November 26, 2015 at 7:37 am #247198In reply to: Problem with language/translate
irenehoferParticipantThanks for your answer. I’ll try to help there.
Since my project is pretty urgent, is it possible to fetch the actual translation for the moment?November 25, 2015 at 7:44 pm #247191In reply to: Problem with language/translate
r-a-yKeymasterI think the German translation is not fully 100% translated, which is preventing WordPress from fetching the latest German translation for BuddyPress.
If you are able to help translate the remaining strings, please visit:
https://translate.wordpress.org/locale/de/default/wp-plugins/buddypressAlso, read the following guide to find out how to contribute towards the translation:
November 17, 2015 at 6:20 pm #246858In reply to: BP 2.4.0 – Profile fields registration problem
r-a-yKeymasterAre you using BuddyPress Multilingual as well?
My guess is that BuddyPress has newer translation strings in v2.4.0 and you’ll need to update the BuddyPress-specific strings on your WPML install to reflect that.
Read their “Translating profile fields” tutorial:
They also have a support forum here:
https://wpml.org/forums/topic-tag/buddypress/It might be that their plugin will need to be updated.
If it ends up that this is indeed a BuddyPress problem, please let us know.
November 4, 2015 at 9:14 am #246349In reply to: Uploaded translations not working
danbpParticipantAre you sure that the translation exist ? Have you a buddypress-xx_XX.mo file ? Where xx_XX is the iso of your language (eg en_US).
mo
is a compiled format and the only file that php need to translate your strings.To get such file, you need to use a language compilator like poEdit. Changing strings in only buddypress-xx_XX.po has no effect on the translation. This format is a simple text format intended to be used by the translator.
And the buddypress.pot (note the final T) is also a text format file which contains the list of all strings you can translate.
Where do you add your copy and which language do you use ?
November 4, 2015 at 5:40 am #246340In reply to: Uploaded translations not working
RaybirdDesignParticipantStill need help with this people. Anyone else experienced issues uploading translation exactly as stated in the BP codex?
Is there any work arounds?I really need to update the word friend to business connection and connection across the entire site.
October 25, 2015 at 8:50 am #245996In reply to: Welcome e-mail
VenutiusModeratorNo 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:
The poedit program, used for editing and creating the translation files is available for free here:
October 19, 2015 at 8:13 pm #245729pnetParticipantWell 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! 🙂
October 19, 2015 at 7:22 am #245688In reply to: Uploaded translations not working
RaybirdDesignParticipantTried 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?
October 18, 2015 at 8:56 pm #245655In reply to: Displaying members roles in Members list
danbpParticipantHi, 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 directoryfunction 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' );
October 16, 2015 at 9:33 am #245535VenutiusModeratorWPML 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.
September 20, 2015 at 8:47 am #244604danbpParticipantHi @3t_mj,
this can be done CSS, using
:after
pseudo selector. All labels containing (required) have afor
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; }
September 6, 2015 at 8:06 am #244116danbpParticipantCheck 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/August 2, 2015 at 6:20 pm #242686In reply to: I want to add Spanish!
danbpParticipantBefore 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
August 1, 2015 at 1:37 pm #242674In reply to: I want to add Spanish!
danbpParticipantThe main site language should be set to spanish first.
See in WP dashboard > Stettings > GeneralNormally, 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.poEach version of BP comes also with its own translatable strings file, which is at the BP plugin root.
wp-content/plugins/buddypress/buddypress.potJuly 22, 2015 at 11:23 am #242125In reply to: Problems with german translations of buddypress
WhiskyharryParticipantin 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…July 19, 2015 at 9:56 am #241989In reply to: Duplicate activity/members/groups seperate language
Roger CoathupParticipantThe 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.
July 6, 2015 at 7:44 pm #241506In reply to: [Resolved] Change name of a function
speedsharksParticipantIt 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!
June 30, 2015 at 1:12 pm #241297In reply to: Registration Page not working
WhiskyharryParticipantoh, 🙂
thanx a lot. Seems that I was just a little bit confused about the translation.
Also thanx for the links.June 19, 2015 at 7:39 am #240870In reply to: Language change not working
danbpParticipantHi @thesmartone,
I even changed wp_config.php, variable WPLANG
This is no more necessary since WP 4.0If 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.moYour 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. 😉
-
AuthorSearch Results