Hello Guys!
I am new on this list, and i am looking for a solution since 2 days ago.
I have a project, where i am using smarty templates.
My main problem is, i can not get out the texts should be translate from .tpl files.
What i did:
I created a new parser as Smarty templates. I am running a win7 box.
The Parser command is:
"php D:\Apache\htdocs\helpdesk\smarty-gettext-0.9.1\tsmarty2c.php %F | D:\Program Files\Poedit\bin\xgettext -LC --add-comments --no-location -"
without quotes.
This is for all the tpl files.
Keyword list: -k%k
Input files list: %f
Source code: --from-code=%c
The source locations are ok (php parser does the job).
Ok, i thought, maybe my smarty gettext script doesnt work.
So i checked it out from CMD:
D:\Apache\htdocs\helpdesk\templates>php D:\Apache\htdocs\helpdesk\smarty-gettext-0.9.1\tsmarty2c.php D:\apache\htdocs\helpdesk\templates\viewticket.tpl
Result:
gettext("My test");
So it should be arrive to the xgettext.exe
But my cataloge doesn't updatet, and this is a brand new catalog.
In the keywords, there are the gettext, ngettext, _gettext.
What am i doing wrong?
Vasó