Menu

#2 edit smarty2c.php --> smarty2php.php

1.1.0
closed
None
5
2014-04-08
2008-06-06
Mark van S
No

Alter smarty2c.php, add the following lines:

echo '<?php';
//The for ($ac=1; $ac < $_SERVER['argc']; $ac++) { stuff goes here
echo '?>';

Rename the file/add it as smarty2php.php. This is usefull if you want to output a php file instead of c. I found this to be handy in combination with poedit, searching trough my .php files for gettext() tags, and extracting the {t} tags with smarty2c to a php file so i could do 1 'update' to get al new gettext() declarations in poedit.

Discussion

  • Elan Ruusamäe

    Elan Ruusamäe - 2013-11-22

    https://github.com/glensc/smarty-gettext solves this issue by producing .pot file

     
  • bilbo-the-hobbit

    Hello,

    you may have not noticed by the project just go a new owner :)

    its forge is here https://forge.fusiondirectory.org/projects/smarty3-i18n and i was about to look at all the patches and include them if worthwhile.

    Could i ask you to take an account there and submit all your patches so we can include it.

    We already published a 1.0 with some of the patches we collected

    Cheers

     
  • Elan Ruusamäe

    Elan Ruusamäe - 2014-04-08
    • status: open --> closed
    • assigned_to: Elan Ruusamäe
     

Log in to post a comment.

MongoDB Logo MongoDB