To avoid this problem in the future, but them in:
/wp-content/languages/bbpress/bbpress-ja.*
bbPress 2.2 language files should go in /languages
, not /bbp-languages
, so: /wp-content/plugins/bbpress/languages/bbpress-ja.mo
.
I was hoping Version 2.2 fixed this prbolem and now I cannot even crate/edit posts. 🙁
Version 2.2 Translation file
After upgrading my bbp-languages folder is gone.
I placed the file under /wp-content/plugins/bbpress/bbp-languages/bbpress-ja .mo but it doesn’t work anymore.
Where should I put the mo file?
Hi. The wordpress gettext template file is bbp-languages/bbpress.pot. You have to use a specific program for translating the strings. I use POEdit cause it works on all my machines.
http://www.poedit.net/download.php
Open POEdit and “create a file from template” on the “file” menu. There are a lot of strings taken out of the context and so I suggest you to check the source file line if you have problems.
Building a dictionary from widely used translations (WordPress/Akismet/Others) can speed up the process cause a lot of strings are the same of WordPress.
Hello
I’d like to translate bbPress into Arabic for both the front and back end.
Where can I started?
Please someone to guide me to the place of the language file so I can get stated and any other recommendations.
I do not mean that someone do the translation for me but I will do the whole thing myself then share it here for all.
I suppose this should be done by translation
Where should I place the language files?
Hi everyone.
I’m developing a web site with multilingual support, using WordPress 3.4.2 and the Polylang plugin 0.9.4 . I’d love to add a forum to the site, so I downloaded, installed and activated bbPress 2.1.2 .
The first problem was that bbPress didn’t switch from one language to another, always keeping the default WordPress language. I solved this calling again bbpress()->load_textdomain() before loading the header template:
function cbp_bbPressTranslate(){
bpress()->load_textdomain();
}
add_action('get_header','cbp_bbPressTranslate');
This worked great, but soon other problem appeared. If topics and replies doesn’t have translations, they doesn’t show up. I can add translation posts for they from the admin panel, but of course my users can’t. I’ve isolated the problem to the Polylang plugin: switching back to Twenty Eleven theme and deactivating all plugins but Polylang didn’t do anything. Deactivating Polylang showed the topics again.
I’ve tried other multilingual plugins like xili-language, which works great with bbPress, but lacks of customizing menus panel, wich I need on my site.
Anyone can help me? Encouraging words will be welcomed too! 😀
Thanks, it would be great to get your translations added to https://translate.wordpress.org/projects/bbpress/plugin
Go to https://make.wordpress.org/polyglots/ and
login with your WordPress/bbPress username (the same one you used to login here at bbpress.org) and ask this same question you posted above and someone should be able to outline how how and where to upload your translations.
I’ve checked the documentation of FORCE INDEX, forget the “solution” I’ve posted above. Actually speaking this snippet (maybe) work:
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts FORCE INDEX (PRIMARY, post_parent) JOIN wp_icl_translations t ON wp_posts.ID = t.element_id AND t.element_type IN ('post_topic') JOIN wp_icl_languages l ON t.language_code=l.code AND l.active=1 WHERE 1=1 AND (wp_posts.ID = 647 OR wp_posts.post_parent = 647) AND wp_posts.post_type IN ('topic', 'reply') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed') AND t.language_code='en' ORDER BY wp_posts.post_date ASC LIMIT 0, 15
Notice the positioning of the FORCE INDEX. Unfortunately we can’t change that part of the query from ‘_bbp_has_replies_where’. We must use the ‘posts_join’ filter, check if WPML have injected its stuff and add the FORCE INDEX.
zaerl,
Thank you for your help. Unfortunately, I now get a different but similar error (notice the addition of the ‘FOR’:
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FORCE INDEX FOR JOIN (PRIMARY, post_parent) WHERE 1=1 AND (wp_posts.ID = 647 OR ' at line 2]
SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts JOIN wp_icl_translations t ON wp_posts.ID = t.element_id AND t.element_type IN ('post_topic') JOIN wp_icl_languages l ON t.language_code=l.code AND l.active=1 FORCE INDEX FOR JOIN (PRIMARY, post_parent) WHERE 1=1 AND (wp_posts.ID = 647 OR wp_posts.post_parent = 647) AND wp_posts.post_type IN ('topic', 'reply') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'closed') AND t.language_code='en' ORDER BY wp_posts.post_date ASC LIMIT 0, 15
I am still learning programming in WP and my SQL skills are pretty much non-existent.
hi tamarazuk,
Indeed, that seems to be the same error [ticket #1938][1]. But in our case, we have modified bbp_has_replies args for to add our own meta queries…
In your case, it seems that the plugin WPML add a join clause to the bbppress query :
> JOIN wp_icl_translations t ON wp_posts.ID = t.element_id
That’s why the SQL query crash… I suggest you to backup your db & disable WPML for confirm my diagnostic ! 😉
Some ideas for fix it :
- wait the bbpress update
- if you have programing skills, you can try to hook the posts_join or posts_where probably used by WPML for fix manualy the querry.
Good luck !
Hi,
I am unable to view the topic or reply content. With debug on I receive the following error
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘FORCE INDEX (PRIMARY, post\_parent) WHERE 1=1 AND (wp\_posts.ID = 647 OR wp\_posts.’ at line 2] SELECT SQL\_CALC\_FOUND\_ROWS wp\_posts.* FROM wp\_posts JOIN wp\_icl\_translations t ON wp\_posts.ID = t.element\_id AND t.element\_type IN (‘post\_topic’) JOIN wp\_icl\_languages l ON t.language\_code=l.code AND l.active=1 FORCE INDEX (PRIMARY, post\_parent) WHERE 1=1 AND (wp\_posts.ID = 647 OR wp\_posts.post\_parent = 647) AND wp\_posts.post\_type IN (‘topic’, ‘reply’) AND (wp\_posts.post\_status = ‘publish’ OR wp\_posts.post\_status = ‘closed’) AND t.language\_code=’en’ ORDER BY wp\_posts.post\_date ASC LIMIT 0, 15
I have had this error since I installed this plugin over a month ago and have not been able to fix it. At that time I found this ticket1 which lead me to this 2 line change2. I decided to add these two lines but that did not help either.
I have switched themes to Twenty Ten bbPress, Twenty Eleven, and the standard Twenty Eleven. I have also disabled almost all plugins (not WPML because I’ve had bad experiences with disabling and re-enabling it). None of this troubleshooting actions have helped. I then sat around waiting for an update, but unfortunately one has not come yet.
Since we are reaching the launch date I would like any help from anyone who has encountered this issue and successfully fixed it.
Thank you so much! Tamara
-
This topic was modified 12 years, 1 month ago by tamarazuk.
Hi, as part of one of our projects at Tasweek Online, we had to FULLY translate bbPress v2 to Arabic. I am not sure how to add it here, but if you want it then get in touch.
I there, Zaerl here. I’ve made a couple of plugins on the bbPress 1.1 standalone era and now it’s time for me to join the 2.1.2 bandwagon. I’ve seen that a lot of 1.1 plugins haven’t been implemented/ported to the new infrastructure and it’s a pity.
Are there some plugins that are needed? I have a couple of weeks to spare and I will be happy to help the community (for free obviously.)
Have a nice day.
P.S. I have also a 100% complete italian translation if you need it. I have translated it from scratch cause the GlotPress one is poor.
This will be fixed in 2.2. It’s fixed already in /trunk.
The User Roles are not translated on the current version of bbpress. How can I translate them? Can I change the Names on the DB?
I had problem getting this working. Here is my solution.
I had old translation files in the plugin directory (/wp-content/plugins/bbpress/bbp-languages/). bbPress was using theses instead of those in the good directory(/wp-content/languages/bbpress/). Remove files from the plugin folder, since the good place to put them is in the language folder(/wp-content/languages/bbpress/).
**Hi Admin Team . Please Put A New Translation Project In Glot Press As Persian Name ( Persian Language In Iran ) .Thanks a lot . **
Please do add a proper search function here on bbPress.org!
Currently it’s a pain in the ass to find older topics that are not tagged or just to find certain replies. The topic list and tag cloud are nice but really not enough!
Example: I am regularly searching for “german” here to find users searching for translations and help. It’s so difficult currently to find older stuff that is about 4 weeks old.
So, please come on and add a nice search box in the sidebar or header here with full text search!
THANKS!
-Dave 🙂
@HansRuedi Keller:
These strings are from the template files for bbPress that this theme as bundled – so you need to contact the theme author that he updates his stuff – obviously he has not updated to 2.1+ compatibility yet.
You can also update this yourself:
1st alternative: delete the packaged bbPress template files from the theme and use bbPress “Theme Compat” (in bbPress settings)
2nd alternative: edit the template files yourself, use the theme’s textdomain for all strings and make your own translations/language files then.
This should work then.
@netweb:
User @HansRuedi Keller is already aware of this using/installing stuff 🙂
Thanks, Dave 🙂
Hi, I need some help with the translation in bbPress 2.1.2 as well. I’ve tried everything (well, obviously not) so I would be thankful for some guidance with this one!
Hello. I never found a solution on how to make bbPress Danish at Raspberry Pi forum. Can you help me out?
I want to switch from 10 years old forum to bbPress.
This forum is only in german language.
Do you have any translation plugin or let me how to translate it?