1resgen(resgen 1.0) resgen(resgen 1.0)
2
3
4
6 resgen, resgen2 - Mono/CLI Resource Generator
7
9 resgen source.ext [dest.ext]
10
11 resgen /compile source.ext[,dest.resources] [...]
12
13 resgen2
14
16 Convert a resource file from one format to another.
17
18 The currently supported formats are text, resources, resx and po.
19
20 .txt, .text
21
22 Used to process text files, the format of the text file is of
23 the form:
24
25 key=value
26
27 The value argument can contain special characters as long as
28 they are escaped. The escape sequences currently supported are
29 \n, \r, \t, \\ (to get the escape sequence itself) and with res‐
30 gen2 unicode escape sequences are supported with the \uXXXX
31 escape sequence, where XXXX is a four digit number.
32
33 Lines that start with the # or ; character are considered com‐
34 ments and ignored.
35
36 '.resources'
37
38 This is the binary file format implemented by the Sys‐
39 tem.Resources.ResourceReader class, part of mscorlib.dll
40
41 '.resx'
42
43 This is the binary file format implemented by the Sys‐
44 tem.Resources.ResXResourceReader class. This class is not part
45 of mscorlib.dll, this class is part of System.Windows.Forms.
46
47 '.po'.
48
49 PO files are the source files used by the Unix gettext infra‐
50 structure that is typically used to internationalize applica‐
51 tions.
52
53 Lines starting with the '#' character are comment lines.
54
55 The file contains many instance of strings like this:
56
57 msgid KEY
58 msgstr VALUE
59
60 The KEY is typically the string to translate and the VALUE is
61 the translation. On PO files instead of using codes as the KEY
62 (as it is customary with resource files) the KEY is typically a
63 complete english message that applications embed in their source
64 code and will be used as a fallback if no translation resources
65 are used.
66
67 Since resources are key value pairs, the extended features in PO
68 files are not supported (plurals and support for N-cases).
69
70 To learn more about the po file format, use your info browser
71 and point it to the "(gettext)PO Files" node.
72
73 If the destination file is not specified, source.resources will be
74 used.
75
76 The /compile option takes a list of .resX or .txt files to convert to
77 the output file name.
78
80 -compile
81
82 This switch instructs resgen to compile multiple files. It must
83 appear before any resources are specified on the command line.
84
85 -usesourcepath
86
87 This option is only available for resgen2, and it instructs res‐
88 gen to resolve relative paths using the directory of the resx
89 file as current directory.
90
92 This program will load referenced assemblies from the Mono assembly
93 cache.
94
96 Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for
97 details.
98
100 Visit: http://www.mono-project.com for details
101
103 mcs(1),[22mmono(1),mono-config(5).
104
105
106
107
108
109 resgen(resgen 1.0)