Optimize wording and translations

This commit is contained in:
phl0
2024-12-19 10:15:04 +01:00
parent 7bcf60ca9c
commit 531c91911b
3 changed files with 4 additions and 4 deletions

View File

@@ -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';
}

View File

@@ -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)) {

View File

@@ -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 {