1ZANATA_ZANATA_XML_MAKE(U1s)er Contributed Perl DocumentatZiAoNnATA_ZANATA_XML_MAKE(1)
2
3
4

NAME

6       zanata_zanata_xml_make - Make a zanata.xml for using Zanata
7

SYNOPSIS

9       zanata_zanata_xml_make -h | --help
10
11       zanata_zanata_xml_make [options] <ZanataURL> [<project> [
12       <project-version> ] ]
13

DESCRIPTION

15       This program makes zanata.xml according to project information, server
16       supported locales and local supplied locales.
17
18   Project Information
19       Project information such as project, project-version and project-type
20       are choose from following order:
21
22       1. Command line options
23
24       2. zanata.xml from project page if ZanataURL, project and project-
25       version are all given
26
27       2. Existing local zanata.xml file
28
29   Server supported locales
30       Server supported locales, are obtain from sources in following order:
31
32       1. zanata.xml from project page if ZanataURL, project and project-
33       version are all given
34
35       2. Existing local zanata.xml file
36
37       3. Language list page from Zanata server if ZanataURL is given
38
39       If none are available, the <locales> will not be written to zanata.xml
40
41   Local provided locales
42       Local provided locales are determined by following:
43
44       1. 'locale -a' if --mapFromLocale (-m) is given
45
46       2. Local translated file by default
47
48       If none are availale, the map-from attribute of <locale> will not be
49       written.
50
51       The original file will be backed up with '.bak' by default.
52

ARGUMENTS

54       ZanataUrl
55           The URL of zanata server, such as 'http://translate.zanata.org/'
56
57       project
58           Set project ID.
59
60       project-version
61           Set version of the project.
62

OPTIONS

64       -h, --help:
65           Print brief help message and exits.
66
67       -m, --mapFromLocale
68           Use 'locale -a' for locale mapping instead of finding existing
69           translated files.
70
71           This is useful for projects that use the same locale format as
72           'locale -a', or new projects that do not have much translation
73           coverge yet.
74
75       -p, --projectType=STRING
76           Set the project-type. Valid values are: 'podir', 'gettext',
77           'properties', 'utf8properties', 'xliff'.
78
79       -b, --baseDir=DIR
80           Set the base directory as working directory.  zanata.xml by default
81           is made in this directory, srcDir and transDir should also related
82           to this directory.
83
84           Default is '.'.
85
86       -s, --srcDir=DIR
87           Set the source directory.  Source directory is need for some
88           project type (like podir and project-type) to identify the genuine
89           locale translation files.  Usually this is a directory that
90           contains .pot files.
91
92           Either an absolute path or related to the $baseDir
93
94           Default is '$baseDir'.
95
96       -t, --transDir=DIR
97           Set the translation directory.  Local translation files are
98           searched under this directory and its subdirectories.  Usually this
99           is a directory that contains .po files.
100
101           Either an absolute path or related to the $baseDir
102
103           Default is '$baseDir'.
104
105       -o, --backupSuffix=STRING
106           Set the suffix for backup file.
107
108           Default is '.bak'
109
110       -z, --zanataXml=FILE
111           Set the output zanata.xml.  Default: ($baseDir/zanata.xml)
112

FILES

114       zanata.cfg
115           Configure file for this program.  Directories will be visited in
116           following order: '~/.config', '/etc', 'etc' and '.'
117
118           See 'man zanata_zanata_xml_make' for more infomation.
119

POD ERRORS

121       Hey! The above document had some coding errors, which are explained
122       below:
123
124       Around line 137:
125           '=item' outside of any '=over'
126
127           =over without closing =back
128
129
130
131perl v5.30.0                      2019-07-27         ZANATA_ZANATA_XML_MAKE(1)
Impressum