5 ) { // 試行回数多すぎる時 $result_type = 'warning'; $result = __( 'There are too many authentication requests. Please wait a while and try again.', 'arkhe' ); } elseif ( $licence_data ) { if ( $is_error ) { // エラーが帰ってきた場合 $result_type = 'error'; $result = $licence_data['message']; } elseif ( 0 === $the_status ) { // エラーではないがライセンスが停止中だった時 $result_type = 'error'; $result = __( 'This license is currently suspended.', 'arkhe' ); } elseif ( 1 === $the_status ) { // 個人ライセンスが確認できた時 $result_type = 'ok'; $result = __( 'Your license key is valid.', 'arkhe' ); // translators: %s is email; $result .= __( 'This is a "personal license",', 'arkhe' ) . sprintf( __( 'and the owner is %s .', 'arkhe' ), $the_email ); } elseif ( 2 === $the_status ) { // 制作ライセンスが確認できた時 $result_type = 'ok'; $result = __( 'Your license key is valid.', 'arkhe' ); // translators: %s is owner; $result .= __( 'This is a "developer license",', 'arkhe' ) . sprintf( __( 'and the owner is %s .', 'arkhe' ), $the_owner ?: $the_email ); } } ?>