-
Author
-
November 24, 2013 at 20:49 #7178mpitkaParticipant
Hi,
Everyone who’s translating theme, will face one problem. How to translate URL Slugs?Easy ones are basic Buddypress slugs:
define ( ‘BP_ACTIVITY_SLUG’, ‘streams’ );
define ( ‘BP_BLOGS_SLUG’, ‘journals’ );
define ( ‘BP_MEMBERS_SLUG’, ‘users’ );
define ( ‘BP_FRIENDS_SLUG’, ‘peeps’ );
define ( ‘BP_GROUPS_SLUG’, ‘gatherings’ );
define ( ‘BP_FORUMS_SLUG’, ‘discussions’ );
define ( ‘BP_MESSAGES_SLUG’, ‘notes’ );
define ( ‘BP_WIRE_SLUG’, ‘pinboard’ );
define ( ‘BP_XPROFILE_SLUG’, ‘info’ );
define ( ‘BP_REGISTER_SLUG’, ‘signup’ );
define ( ‘BP_ACTIVATION_SLUG’, ‘enable’ );
define ( ‘BP_SEARCH_SLUG’, ‘find’ );
define ( ‘BP_HOME_BLOG_SLUG’, ‘news’ );But how to translate slugs like:
“Group directory”
“Profile Directory”
“My Groups”
“Friends”
“My Friends”
“Public”
“Messages”
“Inbox”And so on….
If someone has figured out easy way, please share it with us.
November 26, 2013 at 15:03 #7266SQadminKeymasterHi,
Those strings should come up in Buddypress plugin translation. You can use Codestyling Localization to translate itHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 30, 2013 at 15:33 #7499SQadminKeymasterThose strings appear in the breadcrumb or in what section?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 30, 2013 at 23:25 #7516mpitkaParticipantHere’s a screenshot. 🙂
https://www.dropbox.com/s/ytszia1lgkq7pzj/slugs.pngDecember 2, 2013 at 23:08 #7593SQadminKeymasterHi, We modified buddypress breadcrumb logic to take pages names and simplified it a bit since buddypress components can’t be translated.
Please replace this file until v2.3 wp-content/themes/sweetdate/framework/functions/breadcrumb.php with this one: https://archived.seventhqueen.com/files/breadcrumb.txtHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 4, 2013 at 10:49 #7687mpitkaParticipantFatal error: Call to undefined function kleo_breadcrumb() in /homez.755/boorntdk/www/wp-content/themes/sweetdate/functions.php on line 1177
December 4, 2013 at 11:05 #7689SQadminKeymasterYou just need to take the content out of the text file and replace the one in your php file.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.