mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Optimize wording and translations
This commit is contained in:
@@ -783,10 +783,10 @@ class Lotw extends CI_Controller {
|
||||
if ($content) {
|
||||
if(curl_errno($ch)) {
|
||||
$ret['status']='failed';
|
||||
$ret['details']== __("LoTW check failed for user ").$data['user_lotw_name'].": ".curl_strerror(curl_errno($ch))." (".curl_errno($ch).").";
|
||||
$ret['details']== __("LoTW login failed for user ").$data['user_lotw_name'].": ".curl_strerror(curl_errno($ch))." (".curl_errno($ch).").";
|
||||
} else if (str_contains($content,"Username/password incorrect</I>")) {
|
||||
$ret['status']='failed_wrong_creds';
|
||||
$ret['details']= __("LoTW check failed for user ").$data['user_lotw_name'].__(": Username/password incorrect");
|
||||
$ret['details']= __("LoTW login failed for user ").$data['user_lotw_name'].": ". __("Username/password incorrect");
|
||||
} else {
|
||||
$ret['status']='OK';
|
||||
}
|
||||
|
||||
@@ -715,7 +715,7 @@
|
||||
<div class="input-group">
|
||||
<input class="form-control" type="password" id="user_lotw_password" name="user_lotw_password" value="<?php if(isset($user_lotw_password)) { echo $user_lotw_password; } ?>" />
|
||||
<span class="input-group-btn"><button class="btn btn-default btn-pwd-showhide" type="button"><i class="fa fa-eye-slash"></i></button></span>
|
||||
<button class="btn btn-secondary" type="button" id="lotw_test_btn">Test LoTW</button>
|
||||
<button class="btn btn-secondary" type="button" id="lotw_test_btn"><?= __("Test Login"); ?></button>
|
||||
</div>
|
||||
<div class="alert mt-3" style="display: none;" id="lotw_test_txt"></div>
|
||||
<?php if(isset($lotwpassword_error)) {
|
||||
|
||||
@@ -75,7 +75,7 @@ $(document).ready(function(){
|
||||
if(res.status == 'OK') {
|
||||
btn_div.addClass('alert-success');
|
||||
msg_div.addClass('alert-success');
|
||||
msg_div.text('LoTW OK!');
|
||||
msg_div.text('LoTW login OK!');
|
||||
msg_div.show();
|
||||
btn_div.show();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user