Skip to content

pierre-r/GettextParser

 
 

Repository files navigation

gettext parser for poEdit

Supported formats:
JavaScript - for jquery.gettext plugin
_('Text for translation')

Smarty - for block.t plugin
{t}Text for translation{/t}

Smarty3
{_('Text for translation')}
{'Text for translation'|_}
{custom_function('Text for translation')}
{'Text for translation'|custom_function}

Known issues:
- plurals are not supported (planned)
- works only on Windows (via xgettext.exe)

Usage:
Smarty adapter for example, same for other adapters
In poEdit go to File->Preferences->Parsers->New

Enter such params
Parser command: php.exe -f "/path/to/GettextParser/index.php" Smarty %o %C %K %F
List of extensions: *.tpl;*.html;*.htm
An item in keywords list: -k%k
An item in input files list: -%f
Source code charset: --from-code=%c

About

gettext parser for poEdit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%