From b7d7b6e9aec155f09bbb247d2098c33edb00db7b Mon Sep 17 00:00:00 2001 From: rulingcom Date: Thu, 13 Oct 2022 14:25:58 +0800 Subject: [PATCH] Add alt title for audio button. --- config/locales/rucaptcha.en.yml | 1 + config/locales/rucaptcha.zh-CN.yml | 1 + config/locales/zh_tw.yml | 3 ++- lib/rucaptcha/view_helpers.rb | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/locales/rucaptcha.en.yml b/config/locales/rucaptcha.en.yml index 474305b..2cd8a0c 100644 --- a/config/locales/rucaptcha.en.yml +++ b/config/locales/rucaptcha.en.yml @@ -3,3 +3,4 @@ en: invalid: "The captcha code is incorrect (if you can't read, you can click image to refresh it)" placeholder: please fill in the identifying code captcha: Captcha + play_captcha_voice: "Play Captcha Voice" \ No newline at end of file diff --git a/config/locales/rucaptcha.zh-CN.yml b/config/locales/rucaptcha.zh-CN.yml index 76ccd80..1f63c2c 100644 --- a/config/locales/rucaptcha.zh-CN.yml +++ b/config/locales/rucaptcha.zh-CN.yml @@ -1,3 +1,4 @@ 'zh-CN': rucaptcha: invalid: "验证码不正确(如无法识别,可以点击刷新验证码)" + play_captcha_voice: "播放验证码的语音" \ No newline at end of file diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index 18b8595..2c92845 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,4 +1,5 @@ zh_tw: rucaptcha: placeholder: 請填寫驗證碼 - captcha: 驗證碼 \ No newline at end of file + captcha: 驗證碼 + play_captcha_voice: 播放驗證碼語音 \ No newline at end of file diff --git a/lib/rucaptcha/view_helpers.rb b/lib/rucaptcha/view_helpers.rb index 8314014..75b3a57 100644 --- a/lib/rucaptcha/view_helpers.rb +++ b/lib/rucaptcha/view_helpers.rb @@ -22,7 +22,7 @@ module RuCaptcha tag(:img, opts) end def rucaptcha_audio_tag() - "".html_safe + "".html_safe end def gotcha(opts = {}) if opts[:placeholder].blank?