• Salvatore

    (@scapolupogmailcom)


    Is there any way to translate labels and other component inside front-end (i.e Profil Activity privacy, Profil Activity privacy labels) using .po / .mo files? Any alternative for doing it?

Viewing 1 replies (of 1 total)
  • Hi!

    I had the same problem. I use qtranlatex plugin and in the file “/buddypress-activity-privacy/includes/bp-activity-privacy-admin.php” i changed the labels like that:

    if ( bp_is_active( ‘friends’ ) ) {
    $profile_activity_visibility_levels[‘friends’] = array(
    ‘id’ => ‘friends’,
    ‘label’ => ‘[:en]My Friends[:es]Mis Amigos[:]’,
    ‘default’ => ( $pavl_default == ‘friends’) ? true : false,
    ‘position’ => 10*( 1 + array_search(‘friends’, array_keys($pavl))),
    ‘disabled’ => ( $pavl_enabled [‘friends’] ) ? false : true
    );
    }

    Change all the labels that you want and then go to plugin options and save settings.

    This worked me and hope that you also.

Viewing 1 replies (of 1 total)
  • The topic ‘How to translate your plugin?’ is closed to new replies.