New Ruby on Rails translation snippet by graudeejs (graudeejs)

This commit is contained in:
Holger Rapp 2011-10-20 09:20:32 +02:00
parent aae12ec39c
commit 5f04f3e0cf
2 changed files with 5 additions and 0 deletions

View File

@ -893,4 +893,8 @@ setup do
end
endsnippet
snippet trans "Translation snippet"
I18n.t('`!v substitute(substitute(substitute(@%, substitute(getcwd() . "/", "\/", "\\\\/", "g"), "", ""), "\\(\\.\\(html\\|js\\)\\.\\(haml\\|erb\\)\\|\\(_controller\\)\\?\\.rb\\)$", "", ""), "/", ".", "g")`.${2:${1/[^\w]/_/g}}${3}', :default => "${1:some_text}"${4})${5:$0}
endsnippet
# vim:ft=snippets:

View File

@ -780,6 +780,7 @@ Contributers are listed in chronological order:
Jan Mollowitz (phux)
Georgi Valkov (gvalkov)
Miek Gieben (miek)
graudeejs (graudeejs)