WordPress.org

Ready to get started?Download WordPress

Forums

Urgent: I need Japanese Kanji characters in wp-login.php or the mo/po working (1 post)

  1. a4jp.com
    Member
    Posted 2 years ago #

    I need to put Japanese Kanji characters in the wp-login.php file. Please help. At the moment, they just come out as weird diamonds.

    Code from line 481

    <?php
    login_footer('user_pass');
    break;
    
    case 'register' :
    	if ( is_multisite() ) {
    		// Multisite uses wp-signup.php
    		wp_redirect( apply_filters( 'wp_signup_location', site_url('wp-signup.php') ) );
    		exit;
    	}
    
    	if ( !get_option('users_can_register') ) {
    		wp_redirect( site_url('wp-login.php?registration=disabled') );
    		exit();
    	}
    
    	$user_login = '';
    	$user_email = '';
    	if ( $http_post ) {
    		$user_login = $_POST['user_login'];
    		$user_email = $_POST['user_email'];
    		$errors = register_new_user($user_login, $user_email);
    		if ( !is_wp_error($errors) ) {
    			$redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
    			wp_safe_redirect( $redirect_to );
    			exit();
    		}
    	}
    
    	$redirect_to = apply_filters( 'registration_redirect', !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '' );
    	login_header(__('Registration Form'), '<p class="message register">' . __('登録 | Register For This Site') . '</p>', $errors);
    ?>

    I need to add some Japanese kanji ( 登録 ) next to the "Register For This Site" text please help... Or tell me how to get the po/mo language file working on wp-login.php please.

    Glen

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.