Created
May 13, 2016 06:57
-
-
Save jlambe/a868d9b63d70902a12254ce47069d0e6 to your computer and use it in GitHub Desktop.
Twig - POEdit configuration
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
Create a Poedit project for your theme if you haven't already, and make sure to add __ on the Sources keywords tab and other gettext functions declared in WordPress: _e, ... | |
Go to Edit->Preferences. | |
On the Parsers tab, add a new parser with these settings: | |
Language: Twig | |
List of extensions: *.twig | |
Parser command: xgettext --language=Python --add-comments=TRANSLATORS --force-po -o %o %C %K %F | |
An item in keyword list: -k%k | |
An item in input files list: %f | |
Source code charset: --from-code=%c | |
Save and Update! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment