[Plugin: BuddyPress Wiki Component] iconv returns nothing for russian posts titles
-
Hello!
Thank you for this plugin!
I have some problem with creating wiki pages. It works only for English titles, but my website is in russian and I have to set russian titles to pages. When I try to do so, the url to the new page looks like “1-” or “16-“. And then, after “cutting” off the group id from the slug it becomes completely blank. So the links to wiki pages are just links to wiki tab.I investigated this case and found that problem appear on line 313 in bp-wiki-core.php in this function: $text = iconv( ‘utf-8’, ‘us-ascii//TRANSLIT’, $text );
It is enabled on my servers, but doesn’t work for russian language.Actualy we have a separate plugin to translate russian slugs and it is hooked up to native function sanitize_title( $title, $fallback_title ) wich does clean up the url like your function bp_wiki_slugified_title().
May be you could use native function in next versions? Or mske it possible to edit page slug before saving page?
I will put a russian word here, so you will be able to check your script:
“Проверка: Этот текст написан на русском языке”
- The topic ‘[Plugin: BuddyPress Wiki Component] iconv returns nothing for russian posts titles’ is closed to new replies.