1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00

fix translation test

This commit is contained in:
Adrien Waksberg 2017-02-22 19:23:55 +01:00
parent c63d91facc
commit 50d88fc970
2 changed files with 2 additions and 2 deletions

View file

@ -538,7 +538,7 @@ class Cli
File.open(file, 'w') {|f| f << data.to_yaml}
puts "#{I18n.t('export.valid', file)}".green
puts "#{I18n.t('form.export.valid', file)}".green
rescue Exception => e
puts "#{I18n.t('display.error')} #17: #{e}".red
end

View file

@ -11,7 +11,7 @@ class TestTranslate < Test::Unit::TestCase
lang = File.basename(yaml, '.yml')
translate = YAML.load_file(yaml)
`grep -r -o "I18n.t('.*')" bin/ lib/ | cut -d"'" -f2`.each_line do |line|
`grep -r -o "I18n.t('.*)" bin/ lib/ | cut -d"'" -f2`.each_line do |line|
begin
t = translate[lang]
line.strip.split('.').each do |v|