Skip to content

elcreator/tempot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

tempot

Template POT extractor. Currently supported Twig.

Main idea behind this is to provide alternative solution for translation key extraction without needs to install php and twig parser.

Package depends on GNU gettext which should be installed before running it. Just download, chmod +x tempot.sh and put it somewhere in your project.

Usage example:

tempot.sh --php "./modules ./www" --twig "./views" --output "./dict.pot" --output-json "./dict.json"

it assumes your php files in ./modules and ./www contain translatable strings in format __('some key') and also you have some of them like {{ __('another key') }} in your .twig files located in ./views directory. It will generate ./dict.pot POT file and ./dict.json file with alphabetically sorted translation keys and empty values. It's useful to keep both for better traceability of missing translations.

About

Template POT extractor. Currently supported Twig.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages