diff --git a/include/functions.php b/include/functions.php
index 27641fae..3ed7512e 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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'],
- 'code' => $lang_functions['row_security_code'],
- ],
+ $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'] ?? '',
]);
diff --git a/lang/chs/lang_functions.php b/lang/chs/lang_functions.php
index e869a348..ab9236ac 100644
--- a/lang/chs/lang_functions.php
+++ b/lang/chs/lang_functions.php
@@ -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' => "无限制",
diff --git a/lang/cht/lang_functions.php b/lang/cht/lang_functions.php
index 4b5a67e5..058fa452 100644
--- a/lang/cht/lang_functions.php
+++ b/lang/cht/lang_functions.php
@@ -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' => "無限制",
diff --git a/lang/da/lang_functions.php b/lang/da/lang_functions.php
index 5ca76e4b..8d0ffd09 100644
--- a/lang/da/lang_functions.php
+++ b/lang/da/lang_functions.php
@@ -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",
diff --git a/lang/de/lang_functions.php b/lang/de/lang_functions.php
index 62425920..f8bdcd80 100644
--- a/lang/de/lang_functions.php
+++ b/lang/de/lang_functions.php
@@ -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",
diff --git a/lang/en/lang_functions.php b/lang/en/lang_functions.php
index f936a931..c75b564a 100644
--- a/lang/en/lang_functions.php
+++ b/lang/en/lang_functions.php
@@ -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",
diff --git a/lang/en/lang_login.php b/lang/en/lang_login.php
index 996b32c7..1e809685 100644
--- a/lang/en/lang_login.php
+++ b/lang/en/lang_login.php
@@ -11,7 +11,7 @@ $lang_login = array
'p_remaining_tries' => "remaining tries.",
'p_no_account_signup' => "Don't have an account? Sign up right now!",
'p_forget_pass_recover' => "Forget your password? Recover your password via email",
- 'p_account_banned' => "Account banned? view reason onuser ban log",
+ 'p_account_banned' => "Account banned? view reason on user ban log",
'p_resend_confirm' => "Did not receive confirmation mail or confirmation link is broken? Send confirmation mail again",
'rowhead_username' => "Username:",
'rowhead_password' => "Password:",
diff --git a/lang/es/lang_functions.php b/lang/es/lang_functions.php
index b0f277bc..1afd5269 100644
--- a/lang/es/lang_functions.php
+++ b/lang/es/lang_functions.php
@@ -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",
diff --git a/lang/fr/lang_functions.php b/lang/fr/lang_functions.php
index b4efb9c4..7e74cccb 100644
--- a/lang/fr/lang_functions.php
+++ b/lang/fr/lang_functions.php
@@ -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é",
diff --git a/lang/ja/lang_functions.php b/lang/ja/lang_functions.php
index eb61c945..6fb874fc 100644
--- a/lang/ja/lang_functions.php
+++ b/lang/ja/lang_functions.php
@@ -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",
diff --git a/lang/ru/lang_functions.php b/lang/ru/lang_functions.php
index 6d4b1ded..20a6732d 100644
--- a/lang/ru/lang_functions.php
+++ b/lang/ru/lang_functions.php
@@ -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' => "Неограниченный",