File: tsmarty2c.1

package info (click to toggle)
smarty-gettext 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 84 kB
  • sloc: php: 298; makefile: 7
file content (37 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (3)
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 <mike.gabriel@das-netzwerkteam.de>.