logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tsmarty2c - Rip translation strings from smarty template files and convert them to gettext calls in C.

Author

       This manual has been written for the Debian project (and may be used by others) by Mike Gabriel
       <mike.gabriel@das-netzwerkteam.de>.

Version 1.0                                         July 2012                                       tsmarty2c(1)

Description

tsmarty2c rips the translation strings from smarty template files, and converts them to gettext calls in
       C.

       The C output may later be used with the standard gettext tools (see xgettext).

       If one of the parameters is a directory, the template files within will be parsed, recursively.

       The output also contains comments that point to the location of the file that the string has been ripped
       from.

       You can use the '--add-comments' parameter of xgettext to make it include these comments inside the PO
       file (suggested by Mike van Lammeren).

Name

       tsmarty2c - Rip translation strings from smarty template files and convert them to gettext calls in C.

See Also

xgettext(1)

Synopsis

tsmarty2c <templ-file1-or-dir1> \
                 [<templ-file2-or-dir2>] \
                 [... <templ-fileN-or-dirN>]

See Also