forked from smarty-gettext/smarty-gettext
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsmarty2c.1
37 lines (36 loc) · 1.2 KB
/
tsmarty2c.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'\" -*- coding: utf-8 -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH tsmarty2c 1 "July 2012" "Version 1.0" "Smarty Gettext Translation String Ripper"
.SH NAME
tsmarty2c \- Rip translation strings from smarty template files and convert them to gettext calls in C.
.SH SYNOPSIS
'nh
.fi
.ad l
\fBtsmarty2c\fR <templ-file1-or-dir1> \\
[<templ-file2-or-dir2>] \\
[... <templ-fileN-or-dirN>]
.SH DESCRIPTION
.PP
\fBtsmarty2c\fR rips the translation strings from smarty template files,
and converts them to gettext calls in C.
.PP
The C output may later be used with the standard gettext tools (see xgettext).
.PP
If one of the parameters is a directory, the template files within will
be parsed, recursively.
.PP
The output also contains comments that point to the location of the file
that the string has been ripped from.
.PP
You can use the '--add-comments' parameter of xgettext to make it include
these comments inside the PO file (suggested by Mike van Lammeren).
.SH SEE ALSO
xgettext(1)
.SH AUTHOR
This manual has been written for the Debian project (and may be used by others) by Mike Gabriel <[email protected]>.