-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 0.1.0 target #1
Comments
(originally in smarty-gettext/smarty-gettext#18 (comment)) geekwright/po - looks like it already has smarty parser: https://github.com/geekwright/Po/blob/master/src/PoInitSmarty.php it uses $smarty->getTags, but that returns just tag, and tag attributes, what's between the attribute is not known. |
Have you seen https://github.com/oscarotero/Gettext ? |
FWIW: because this project isn't finished yet, I currently use this work-around:
Then I do something like this on the shell to get my .po(t) file: This approach actually works quite good. Unfortunately, the comment for each msgid references a line in the compiled template instead of the actual template. (Which isn't an issue for me at this moment). If the latter would be an issue for the end-user, there might be a way to hook into the smarty compiler and keep track of a compiled_file -> template_file map. |
i have full cycle working with for smarty parser, it's commited, waiting for #2 to be merged. |
0.1.0 has been released. providing |
rewrite tsmarty2c to something maintainable.
(originally in smarty-gettext/smarty-gettext#18)
.po
files: implement .pot writer #4:maxakawizard/po-parserwrite interface is only via arraysThe text was updated successfully, but these errors were encountered: