BuddyDev

Search

Branded Login mail adjustment


  • Keymaster
    (BuddyDev Team)
    Posts: 13067
    Brajesh Singh on #26691

    Hi Ralf,
    For now, Please feel free to modify the file. I am adding translation support and in future, you can use PoEdit or any other translator to change it.

    Regards
    Brajesh


  • Participant
    Level: Enlightened
    Posts: 24
    rabb on #26695

    Hi Brajesh,

    thanks for your reply. I will modify the mentioned files to adjust the mail content.

    A translator like PoEdit would not solve my problem as it only translates the given text strings. My goal is to completely rewrite the mail content to change its layout and add more text or links.

    With best regards

    Ralf


  • Keymaster
    (BuddyDev Team)
    Posts: 13067
    Brajesh Singh on #26701

    Hi Ralf,
    Thank you for sharing the details.
    I believe that we should provide a settings for it then(the subject/message) in the admin. That will resolve it.

    Regards
    Brajesh


  • Participant
    Level: Enlightened
    Posts: 24
    rabb on #26712

    Hi Brajesh,

    that would be great. I’m looking forward to an updated version that includes this functionality.

    All the best

    Ralf


  • Keymaster
    (BuddyDev Team)
    Posts: 13067
    Brajesh Singh on #26727

    Thank you.


  • Participant
    Level: Enlightened
    Posts: 24
    rabb on #26803

    Hi Brajesh,

    I’ve just translated the language file ‘bp-branded-login-en_US’ with Poedit but as a result not all strings were translated in the browser. I’ve noticed in the source code that the strings refer to different translation files: ‘bl-branded-login’, ‘bp-branded-login’ and ‘bl_branded_login’.

    Examples:

    File: class-bl-actions-handler.php:

    $info_message['success'] = __( 'New password has been sent to your registered email address.', 'bl-branded-login' );

    File: class-bl-actions-handler.php:

    $message = __( 'Password reset link has been sent on your register email address. Please check.', 'bp-branded-login' );

    File: bl-functions.php:

    'empty_password' => __( 'Your Password is empty. Please enter correct password.', 'bl_branded_login' ),

    It works when I add another po and mo file with the prefix ‘bl_branded_login-‘ or ‘bl-branded-login-‘ in the filename. But I can’t imagine that this is the best way.

    So the question is if this is done intentionally or if this is a bug?

    Regards

    Ralf


  • Keymaster
    (BuddyDev Team)
    Posts: 13067
    Brajesh Singh on #26809

    Hi Ralf,
    This plugin does have many issue with translation. Please wait till Monday. There will be a fully translatable version available.

    Regards
    Brajesh


  • Keymaster
    (BuddyDev Team)
    Posts: 13067
    Brajesh Singh on #26832

    Hi Ralf,
    Please upgrade to 1.4.0

    You can translate all strings now.

    Please do let me know if it works for you or not?

    Regards
    Brajesh


  • Participant
    Level: Enlightened
    Posts: 24
    rabb on #26857

    Hi Brajesh,

    thanks for the update. I’ve translated the language file
    /wp-content/plugins/bp-branded-login/languages/bp-branded-login-en_US.po
    and saved it as
    /wp-content/languages/bp-branded-login-xx_XX.po and
    /wp-content/languages/bp-branded-login-xx_XX.mo
    where xx = country abbreviation.

    Unfortunately it is still not working. So I searched in the complete plugin folder for the strings mentioned in post #26803 (bl-branded-login, bp-branded-login and bl_branded_login).
    All strings are still used. That would explain why it is not working completely.

    Is that correct?

    Regards

    Ralf

    p.s. Here’s the result of the search for the strings :

    \wp-content\plugins\bp-branded-login\core\bl-components-helper.php (1 hit)
    Line 23: add_action( 'bp_setup_components', 'bl_register_components', 8 );
    
    \wp-content\plugins\bp-branded-login\core\bl-functions.php (15 hits)
    Line 154: 		$errors->add( 'empty_username', __( '<strong>ERROR</strong>: Enter a username or email address.', 'bp-branded-login' ) );
    Line 158: 			$errors->add( 'invalid_email', __( '<strong>ERROR</strong>: There is no user registered with that email address.', 'bp-branded-login' ) );
    Line 174: 		$errors->add( 'invalidcombo', __( '<strong>ERROR</strong>: Invalid username or email.', 'bp-branded-login' ) );
    Line 234: 	$title = sprintf( __( '[%s] Password Reset', 'bp-branded-login' ), $blogname );
    Line 256: 		wp_die( __( 'The email could not be sent.', 'bp-branded-login' ) . '<br />' . __( 'Possible reason: your host may have disabled the mail() function.', 'bp-branded-login' ) );
    Line 256: 		wp_die( __( 'The email could not be sent.', 'bp-branded-login' ) . '<br />' . __( 'Possible reason: your host may have disabled the mail() function.', 'bp-branded-login' ) );
    Line 272: 		'empty_password'     => __( 'Your Password is empty. Please enter correct password.', 'bl_branded_login' ),
    Line 273: 		'empty_email'        => __( 'Your Email is empty. Please enter your Email.', 'bl_branded_login' ),
    Line 274: 		'invalid_email'      => __( 'Invalid email!', 'bl_branded_login' ),
    Line 275: 		'invalidcombo'       => __( 'Invalid username or email.', 'bl_branded_login' ),
    Line 276: 		'empty_username'     => __( 'Your Username is empty. Please enter your Username.', 'bl_branded_login' ),
    Line 277: 		'invalid_username'   => __( 'The username is Invalid!', 'bl_branded_login' ),
    Line 278: 		'incorrect_password' => __( 'Password is Invalid!', 'bl_branded_login' ),
    Line 284: 		return __( 'Invalid Request', 'bl_branded_login' );
    Line 321: 		'username_blacklisted' => __( 'Too many failed login attempts.', 'bl_branded_login' ),
    
    \wp-content\plugins\bp-branded-login\core\bl-hooks.php (6 hits)
    Line 43: add_filter( 'login_url', 'bl_filter_login_url' );
    Line 63: add_filter( 'lostpassword_url', 'bl_filter_reset_url' );
    Line 96: add_filter( 'logout_url', 'bl_filter_logout_url' );
    Line 133: add_action( 'bp_screens', 'bl_screens_handler', 1 );
    Line 166: add_action( 'init', 'bl_redirect_wp_login_page' );
    Line 194: add_filter( 'site_url', 'bl_modify_login_post_url', 10, 4 );
    
    \wp-content\plugins\bp-branded-login\core\classes\class-bl-actions-handler.php (6 hits)
    Line 129: 			$message = __( 'You have logged in successfully.', 'bl-branded-login' );
    Line 172: 			$info_message['error'] = __( 'Either key is invalid or login name is invalid.', 'bl-branded-login' );
    Line 191: 			$subject = sprintf( __( '[%s] New generated password', 'bl-branded-login' ), $blogname );
    Line 226: 				$info_message['success'] = __( 'New password has been sent to your registered email address.', 'bl-branded-login' );
    Line 251: 				$message = __( 'Password reset link has been sent on your registered email address.', 'bp-branded-login' );
    Line 273: 		bp_core_add_message( __( 'You have successfully logged out!', 'bl-branded-login' ) );
    
    \wp-content\plugins\bp-branded-login\core\classes\class-bl-login-component.php (1 hit)
    Line 23: 			__( 'Login', 'bl-branded-login' ),
    
    \wp-content\plugins\bp-branded-login\core\classes\class-bl-logout-component.php (1 hit)
    Line 23: 			__( 'Logout', 'bl-branded-login' ),
    
    \wp-content\plugins\bp-branded-login\core\classes\class-bl-pass-reset-component.php (1 hit)
    Line 23: 			__( 'Password Reset', 'bl-branded-login' ),
    
    \wp-content\plugins\bp-branded-login\core\classes\class-bl-theme-compat.php (3 hits)
    Line 78: 			$title = __( 'Login', 'bl-branded-login' );
    Line 80: 			$title = __( 'Reset Password', 'bl-branded-login' );
    Line 82: 			$title = __( 'Thank You', 'bl-branded-login' );
    
    \wp-content\plugins\bp-branded-login\templates\blogin\login.php (3 hits)
    Line 37: 				<?php _e( 'Username', 'bl' ) ?><br/>
    Line 43: 		<label for="bp-login-widget-user-pass"><?php _e( 'Password', 'bp-branded-login' ); ?></label>
    Line 70: 			<?php $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( bp_get_signup_page() ), __( 'Register', 'bp-branded-login' ) );
    
    \wp-content\plugins\bp-branded-login\templates\blogin\resetpass.php (2 hits)
    Line 36: 			<label for="user_login" ><?php _e( 'Username or Email', 'bl-branded-login' ) ?><br />
    Line 44: 			<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Get New Password', 'bl-branded-login' ); ?>" />

You must be logged in to reply to this topic.

This topic is: not resolved
Subscribe