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?