forked from MAXakaWIZARD/GettextParser
-
Notifications
You must be signed in to change notification settings - Fork 0
pierre-r/GettextParser
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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=%cAbout
gettext parser for poEdit
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%