Skip to content

Instantly share code, notes, and snippets.

@sairion
Created November 12, 2015 14:48
Show Gist options
  • Save sairion/981c23c98ba7928c991c to your computer and use it in GitHub Desktop.
Save sairion/981c23c98ba7928c991c to your computer and use it in GitHub Desktop.
trans block -> gettext
\{% trans ([^\{%]+?) %\}
{gettext($1)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment