File: deepin-desktop-ts-convert.1

package info (click to toggle)
deepin-gettext-tools 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 192 kB
  • sloc: python: 324; perl: 297; makefile: 13
file content (103 lines) | stat: -rw-r--r-- 2,763 bytes parent folder | download | duplicates (4)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.\"                                      Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2017 Boyuan Yang <073plan@gmail.com>,
.\"
.TH "DEEPIN-DESKTOP-TS-CONVERT" "1" "2017-08-11" "Deepin Gettext Tools"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
deepin-desktop-ts-convert \- convert between .desktop file and .ts file to ease translation
.SH SYNOPSIS
.B deepin-desktop-ts-convert init
\fIdesktopFile outputTsDir\fR
.br
.B deepin-desktop-ts-convert desktop2ts
\fIdesktopFile outputTsDir\fR
.br
.B deepin-desktop-ts-convert ts2desktop
\fIdesktopFile tsDir outputDesktopFile\fR
.SH DESCRIPTION
This manual page documents briefly the
.B deepin-desktop-ts-convert
command as provided by
.B deepin-gettext-tools
package.
.PP
\fBdeepin-desktop-ts-convert\fP is a utility that helps developers convert
translatable strings in desktop files into ts files to ease translation
work. Translated strings in ts files can be merged back to original
desktop file too with the help of this utility.
.PP
Such workflow is adopted by most Deepin software.
.SH USAGE
.PP
To initialise conversion, use \fIdeepin-desktop-ts-convert init\fR subcommand.
In which case source ts file will be put into \fIoutputTsDir/desktop.ts\fR
and translation ts files should be named as \fIoutputTsDir/desktop_\<lang\>.ts\fR.
.sp
.if n \{\
.RS 4
.\}
.nf
deepin-desktop-ts-convert init desktopFile outputTsDir
.fi
.if n \{\
.RE
.\}
.PP
To update ts files from a new version of desktop file, use
\fIdeepin-desktop-ts-convert desktop2ts\fR subcommand.
The updated ts file given as outputTsDir/desktop.ts file.
.sp
.if n \{\
.RS 4
.\}
.nf
deepin-desktop-ts-convert desktop2ts desktopFile outputTsDir
.fi
.if n \{\
.RE
.\}
.PP
To generate translated desktop files, use
\fIdeepin-desktop-ts-convert ts2desktop\fR subcommand.
.sp
.if n \{\
.RS 4
.\}
.nf
deepin-desktop-ts-convert ts2desktop desktopFile tsDir outputDesktopFile
.fi
.if n \{\
.RE
.\}
.SH SEE ALSO
.PP
.BR deepin-update-pot (1),
.BR deepin-generate-mo (1),
.BR deepin-policy-ts-convert (1).
.PP
The programs are further documented in the
.IR README.md
as provided with this debian package under
.IR /usr/share/doc/deepin-gettext-tools/
directory.
.SH AUTHOR
.PP
.B deepin-gettext-tools
is written by Deepin Technology Co., Ltd.
.PP
This manual page was written by
.MT 073plan@\:gmail.com
Boyuan Yang
.ME
for the Debian Project (but may be used by others).