Make error message translatable

This commit is contained in:
phl0
2025-05-02 14:26:16 +02:00
parent fd4d55fcee
commit 10445783ee
2 changed files with 2 additions and 2 deletions

View File

@@ -187,7 +187,7 @@ class Station extends CI_Controller
if ($this->qra->validate_grid($grid)) {
return true;
} else {
$this->form_validation->set_message('check_locator', 'Please check value for grid locator ('.strtoupper($grid).').');
$this->form_validation->set_message('check_locator', sprintf(__("Please check value for grid locator (%s)"), strtoupper($grid)));
return false;
}
}

View File

@@ -1408,7 +1408,7 @@ class User extends CI_Controller {
if ($this->qra->validate_grid($grid)) {
return true;
} else {
$this->form_validation->set_message('check_locator', 'Please check value for grid locator ('.strtoupper($grid).').');
$this->form_validation->set_message('check_locator', sprintf(__("Please check value for grid locator (%s)"), strtoupper($grid)));
return false;
}
}