/sublime-gettext-snippet

Sublime 3 snippet for simple insert gettext in Smarty templates

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.

Install

  1. Open Sublime and go to Preferences - Browse Packages...
  2. Copy all *.sublime-snippet files to packages folder

Usage

  • Select text in Sublime and press Cmd+Shift+P and find Snippet: gettext wrapper... OR
  • Type _ symbol and press Tab