Sublime 3 snippet for gettext and Smarty templates.
Use this for quick insert: {_("i18n string")}
or {_("i18n %s string")|sprintf:"string"}
for with sprintf modifier.
- Open Sublime and go to Preferences - Browse Packages...
- Copy all
*.sublime-snippet
files to packages folder
- Select text in Sublime and press
Cmd+Shift+P
and find Snippet: gettext wrapper... OR - Type
_
symbol and press Tab