This topic has 9 replies, 2 voices, and was last updated 11 years by mpitka.

  • Author
  • #7178
     mpitka
    Participant

    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.

    #7266
     SQadmin
    Keymaster

    Hi,
    Those strings should come up in Buddypress plugin translation. You can use Codestyling Localization to translate it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7458
     mpitka
    Participant

    I have translated those, but no effect :/

    #7499
     SQadmin
    Keymaster

    Those 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 solution
    #7516
     mpitka
    Participant

    Here’s a screenshot. 🙂
    https://www.dropbox.com/s/ytszia1lgkq7pzj/slugs.png

    #7580
     mpitka
    Participant

    ideas? 🙂

    #7593
     SQadmin
    Keymaster

    Hi, 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.txt

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7687
     mpitka
    Participant

    Fatal error: Call to undefined function kleo_breadcrumb() in /homez.755/boorntdk/www/wp-content/themes/sweetdate/functions.php on line 1177

    #7689
     SQadmin
    Keymaster

    You 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
    #7693
     mpitka
    Participant

    woooohooo. Magic happens. Thanks!

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?