New Ruby on Rails translation snippet by graudeejs (graudeejs)
This commit is contained in:
parent
aae12ec39c
commit
5f04f3e0cf
@ -893,4 +893,8 @@ setup do
|
|||||||
end
|
end
|
||||||
endsnippet
|
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:
|
# vim:ft=snippets:
|
||||||
|
@ -780,6 +780,7 @@ Contributers are listed in chronological order:
|
|||||||
Jan Mollowitz (phux)
|
Jan Mollowitz (phux)
|
||||||
Georgi Valkov (gvalkov)
|
Georgi Valkov (gvalkov)
|
||||||
Miek Gieben (miek)
|
Miek Gieben (miek)
|
||||||
|
graudeejs (graudeejs)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user