- # When running some plug-in, the file was not found
- when /No file was found when using (.+)./
- puts "files.error.no-file-was-found-when-using.#{$1}: 1"
=> No-file-was-found-when-using-...
别搞一堆花样出来。 尽量保持原始形式,仅仅替换掉" "等特殊字符。
$1 里的特殊字符需要转义!
- puts "files.error.no-file-was-found-when-using.#{$1}.message: #{@ansible_failed_info}"
ditto for all other error messages.
Thanks, Fengguang