mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-18 06:37:28 +08:00
feat(i18n): clarify captcha challenge labels
- harmonize challenge prompts across supported locales - reuse shared helper to reduce duplicated translations - ensure login flow references updated label key Signed-off-by: Qi HU <github@spcsky.com>
This commit is contained in:
+12
-5
@@ -1847,16 +1847,23 @@ function show_image_code () {
|
||||
}
|
||||
|
||||
$manager = captcha_manager();
|
||||
$driver = $manager->driver();
|
||||
|
||||
if (!$manager->isEnabled()) {
|
||||
if (!$driver->isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$markup = $manager->render([
|
||||
'labels' => [
|
||||
'image' => $lang_functions['row_security_image'],
|
||||
$labelKey = $driver instanceof \App\Services\Captcha\Drivers\ImageCaptchaDriver
|
||||
? 'row_security_image'
|
||||
: 'row_security_challenge';
|
||||
|
||||
$labels = [
|
||||
'image' => $lang_functions[$labelKey] ?? $lang_functions['row_security_image'],
|
||||
'code' => $lang_functions['row_security_code'],
|
||||
],
|
||||
];
|
||||
|
||||
$markup = $driver->render([
|
||||
'labels' => $labels,
|
||||
'secret' => $_GET['secret'] ?? '',
|
||||
]);
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => '你将获得',
|
||||
'std_by' => '由',
|
||||
'row_security_image' => "验证图片:",
|
||||
'row_security_challenge' => "安全验证:",
|
||||
'row_security_code' => "验证码:",
|
||||
'text_slots' => "连接数:",
|
||||
'text_unlimited' => "无限制",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => '妳將獲得',
|
||||
'std_by' => '由',
|
||||
'row_security_image' => "驗證圖片:",
|
||||
'row_security_challenge' => "安全驗證:",
|
||||
'row_security_code' => "驗證碼:",
|
||||
'text_slots' => "連接數:",
|
||||
'text_unlimited' => "無限制",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Unlimited",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Unbegrenzt",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Unlimited",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Ilimitado",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Illimité",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Unlimited",
|
||||
|
||||
@@ -41,6 +41,7 @@ $lang_functions = array
|
||||
'std_you_will_get' => 'You will get',
|
||||
'std_by' => 'By',
|
||||
'row_security_image' => "Security Image:",
|
||||
'row_security_challenge' => "Security Challenge:",
|
||||
'row_security_code' => "Security Code:",
|
||||
'text_slots' => "Slots:",
|
||||
'text_unlimited' => "Неограниченный",
|
||||
|
||||
Reference in New Issue
Block a user