Created
July 14, 2014 18:53
-
-
Save bertbalcaen/dd3fd5b51e15bd6b2128 to your computer and use it in GitHub Desktop.
Wrap string in Drupal translate tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Where to put this file? | |
In menu: Sublime Text 2 > Preferences > Browse Packages | |
Save file as drupal-translate.sublime-snippet, and place in Packages > User. | |
Key binding: | |
In menu: Sublime Text 2 > Preferences > Key Bindings - User | |
Add inside the array: | |
{ "keys": ["ctrl+t"], "command": "insert_snippet", "args": { "name": "Packages/User/drupal-translate.sublime-snippet" }} | |
--> | |
<snippet> | |
<content><![CDATA[<?php print t('$SELECTION'); ?>]]></content> | |
<description>Drupal: translate selection</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment