Install gettext-0.18.1.1.tar.gz
[msysgit.git] / mingw / share / doc / gettext / csharpdoc / GNU_Gettext_GettextResourceSet.html
blob64869c9973a04a3d2e9c89c5680f690153e3225f
1 <HTML>
2 <HEAD>
3 <TITLE>GNU.Gettext.GettextResourceSet Class</TITLE>
4 </HEAD>
5 <BODY BGCOLOR="#FFFFFF">
6 <H3>GNU.Gettext.GettextResourceSet Class</H3>
8 <BLOCKQUOTE>
9 <TABLE COLS="1" ROWS="1" WIDTH="100%">
10 <TR><TD BGCOLOR="#C0C0C0"><PRE>public class GettextResourceSet: System.Resources.ResourceSet</PRE></TD></TR>
11 </TABLE>
12 </BLOCKQUOTE>
14 <H4>Base Types</H4>
16 <BLOCKQUOTE>
17 System.Resources.ResourceSet<BR>
18 &nbsp;&nbsp;GettextResourceSet<P>
20 </BLOCKQUOTE>
22 <H4>Library</H4>
24 <BLOCKQUOTE>
25 GNU.Gettext
26 </BLOCKQUOTE>
28 <H4>Summary</H4>
30 <BLOCKQUOTE>
32 Each instance of this class encapsulates a single PO file.
33 <P>
36 This API of this class is not meant to be used directly; use
37 <CODE>GettextResourceManager</CODE> instead.
38 <P>
40 </BLOCKQUOTE>
42 <H4>See Also</H4>
44 <BLOCKQUOTE>
45 <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
46 </BLOCKQUOTE>
48 <H4>Members</H4>
50 <BLOCKQUOTE>
51 <P>
53 GettextResourceSet Constructors<P>
55 <A HREF="#GettextResourceSet%28%29%20Constructor" TARGET="contents">GettextResourceSet() Constructor</A><BR>
56 <A HREF="#GettextResourceSet%28System.Resources.IResourceReader%29%20Constructor" TARGET="contents">GettextResourceSet(System.Resources.IResourceReader) Constructor</A><BR>
57 <A HREF="#GettextResourceSet%28System.IO.Stream%29%20Constructor" TARGET="contents">GettextResourceSet(System.IO.Stream) Constructor</A><BR>
58 <A HREF="#GettextResourceSet%28System.String%29%20Constructor" TARGET="contents">GettextResourceSet(System.String) Constructor</A><BR>
59 <P>
61 GettextResourceSet Methods<P>
63 <A HREF="#GettextResourceSet.GetPluralString%20Method" TARGET="contents">GettextResourceSet.GetPluralString Method</A><BR>
64 <A HREF="#GettextResourceSet.GetString%28System.String%29%20Method" TARGET="contents">GettextResourceSet.GetString(System.String) Method</A><BR>
65 <A HREF="#GettextResourceSet.GetString%28System.String%2C%20bool%29%20Method" TARGET="contents">GettextResourceSet.GetString(System.String, bool) Method</A><BR>
66 <A HREF="#GettextResourceSet.PluralEval%20Method" TARGET="contents">GettextResourceSet.PluralEval Method</A><BR>
67 <P>
69 GettextResourceSet Properties<P>
71 <A HREF="#GettextResourceSet.Keys%20Property" TARGET="contents">GettextResourceSet.Keys Property</A><BR>
72 </BLOCKQUOTE>
74 <HR>
76 <A NAME="GettextResourceSet%28%29%20Constructor"><H3>GettextResourceSet() Constructor</H3>
78 <BLOCKQUOTE>
79 <TABLE COLS="1" ROWS="1" WIDTH="100%">
80 <TR><TD BGCOLOR="#C0C0C0"><PRE>protected GettextResourceSet();</PRE></TD></TR>
81 </TABLE>
82 </BLOCKQUOTE>
84 <H4>Summary</H4>
86 <BLOCKQUOTE>
88 Creates a new message catalog. When using this constructor, you
89 must override the <CODE>ReadResources</CODE> method, in order to initialize
90 the <CODE>Table</CODE> property. The message catalog will support plural
91 forms only if the <CODE>ReadResources</CODE> method installs values of type
92 <CODE>String[]</CODE> and if the <CODE>PluralEval</CODE> method is overridden.
93 </BLOCKQUOTE>
95 <H4>See Also</H4>
97 <BLOCKQUOTE>
98 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
99 </BLOCKQUOTE>
101 <HR>
103 <A NAME="GettextResourceSet%28System.Resources.IResourceReader%29%20Constructor"><H3>GettextResourceSet(System.Resources.IResourceReader) Constructor</H3>
105 <BLOCKQUOTE>
106 <TABLE COLS="1" ROWS="1" WIDTH="100%">
107 <TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.Resources.IResourceReader reader);</PRE></TD></TR>
108 </TABLE>
109 </BLOCKQUOTE>
111 <H4>Summary</H4>
113 <BLOCKQUOTE>
115 Creates a new message catalog, by reading the string/value pairs from
116 the given <I>reader</I>. The message catalog will support
117 plural forms only if the reader can produce values of type
118 <CODE>String[]</CODE> and if the <CODE>PluralEval</CODE> method is overridden.
119 </BLOCKQUOTE>
121 <H4>See Also</H4>
123 <BLOCKQUOTE>
124 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
125 </BLOCKQUOTE>
127 <HR>
129 <A NAME="GettextResourceSet%28System.IO.Stream%29%20Constructor"><H3>GettextResourceSet(System.IO.Stream) Constructor</H3>
131 <BLOCKQUOTE>
132 <TABLE COLS="1" ROWS="1" WIDTH="100%">
133 <TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.IO.Stream stream);</PRE></TD></TR>
134 </TABLE>
135 </BLOCKQUOTE>
137 <H4>Summary</H4>
139 <BLOCKQUOTE>
141 Creates a new message catalog, by reading the string/value pairs from
142 the given <I>stream</I>, which should have the format of
143 a <CODE>.resources</CODE> file. The message catalog will not support plural
144 forms.
145 </BLOCKQUOTE>
147 <H4>See Also</H4>
149 <BLOCKQUOTE>
150 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
151 </BLOCKQUOTE>
153 <HR>
155 <A NAME="GettextResourceSet%28System.String%29%20Constructor"><H3>GettextResourceSet(System.String) Constructor</H3>
157 <BLOCKQUOTE>
158 <TABLE COLS="1" ROWS="1" WIDTH="100%">
159 <TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.String fileName);</PRE></TD></TR>
160 </TABLE>
161 </BLOCKQUOTE>
163 <H4>Summary</H4>
165 <BLOCKQUOTE>
167 Creates a new message catalog, by reading the string/value pairs from
168 the file with the given <I>fileName</I>. The file should
169 be in the format of a <CODE>.resources</CODE> file. The message catalog will
170 not support plural forms.
171 </BLOCKQUOTE>
173 <H4>See Also</H4>
175 <BLOCKQUOTE>
176 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
177 </BLOCKQUOTE>
179 <HR>
181 <A NAME="GettextResourceSet.GetPluralString%20Method"><H3>GettextResourceSet.GetPluralString Method</H3>
183 <BLOCKQUOTE>
184 <TABLE COLS="1" ROWS="1" WIDTH="100%">
185 <TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n);</PRE></TD></TR>
186 </TABLE>
187 </BLOCKQUOTE>
189 <H4>Summary</H4>
191 <BLOCKQUOTE>
193 Returns the translation of <I>msgid</I> and
194 <I>msgidPlural</I>, choosing the right plural form
195 depending on the number <I>n</I>.
196 </BLOCKQUOTE>
198 <H4>Parameters</H4>
200 <BLOCKQUOTE>
201 <DL>
202 <DT>msgid</DT>
203 <DD>the key string to be translated, an ASCII
204 string</DD>
205 <DT>msgidPlural</DT>
206 <DD>the English plural of <I>msgid</I>,
207 an ASCII string</DD>
208 <DT>n</DT>
209 <DD>the number, should be &gt;= 0</DD>
210 </DL>
211 </BLOCKQUOTE>
213 <H4>Return Value</H4>
215 <BLOCKQUOTE>
216 the translation, or <CODE>null</CODE> if none is found
217 </BLOCKQUOTE>
219 <H4>See Also</H4>
221 <BLOCKQUOTE>
222 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
223 </BLOCKQUOTE>
225 <HR>
227 <A NAME="GettextResourceSet.GetString%28System.String%29%20Method"><H3>GettextResourceSet.GetString(System.String) Method</H3>
229 <BLOCKQUOTE>
230 <TABLE COLS="1" ROWS="1" WIDTH="100%">
231 <TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid);</PRE></TD></TR>
232 </TABLE>
233 </BLOCKQUOTE>
235 <H4>Summary</H4>
237 <BLOCKQUOTE>
239 Returns the translation of <I>msgid</I>.
240 </BLOCKQUOTE>
242 <H4>Parameters</H4>
244 <BLOCKQUOTE>
245 <DL>
246 <DT>msgid</DT>
247 <DD>the key string to be translated, an ASCII
248 string</DD>
249 </DL>
250 </BLOCKQUOTE>
252 <H4>Return Value</H4>
254 <BLOCKQUOTE>
255 the translation of <I>msgid</I>, or <CODE>null</CODE> if
256 none is found
257 </BLOCKQUOTE>
259 <H4>See Also</H4>
261 <BLOCKQUOTE>
262 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
263 </BLOCKQUOTE>
265 <HR>
267 <A NAME="GettextResourceSet.GetString%28System.String%2C%20bool%29%20Method"><H3>GettextResourceSet.GetString(System.String, bool) Method</H3>
269 <BLOCKQUOTE>
270 <TABLE COLS="1" ROWS="1" WIDTH="100%">
271 <TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid, bool ignoreCase);</PRE></TD></TR>
272 </TABLE>
273 </BLOCKQUOTE>
275 <H4>Summary</H4>
277 <BLOCKQUOTE>
279 Returns the translation of <I>msgid</I>, with possibly
280 case-insensitive lookup.
281 </BLOCKQUOTE>
283 <H4>Parameters</H4>
285 <BLOCKQUOTE>
286 <DL>
287 <DT>msgid</DT>
288 <DD>the key string to be translated, an ASCII
289 string</DD>
290 </DL>
291 </BLOCKQUOTE>
293 <H4>Return Value</H4>
295 <BLOCKQUOTE>
296 the translation of <I>msgid</I>, or <CODE>null</CODE> if
297 none is found
298 </BLOCKQUOTE>
300 <H4>See Also</H4>
302 <BLOCKQUOTE>
303 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
304 </BLOCKQUOTE>
306 <HR>
308 <A NAME="GettextResourceSet.PluralEval%20Method"><H3>GettextResourceSet.PluralEval Method</H3>
310 <BLOCKQUOTE>
311 <TABLE COLS="1" ROWS="1" WIDTH="100%">
312 <TR><TD BGCOLOR="#C0C0C0"><PRE>protected virtual long PluralEval(long n);</PRE></TD></TR>
313 </TABLE>
314 </BLOCKQUOTE>
316 <H4>Summary</H4>
318 <BLOCKQUOTE>
320 Returns the index of the plural form to be chosen for a given number.
321 The default implementation is the Germanic plural formula:
322 zero for <I>n</I> == 1, one for <I>n</I> != 1.
323 </BLOCKQUOTE>
325 <H4>See Also</H4>
327 <BLOCKQUOTE>
328 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
329 </BLOCKQUOTE>
331 <HR>
333 <A NAME="GettextResourceSet.Keys%20Property"><H3>GettextResourceSet.Keys Property</H3>
335 <BLOCKQUOTE>
336 <TABLE COLS="1" ROWS="1" WIDTH="100%">
337 <TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.Collections.ICollection Keys { get; }</PRE></TD></TR>
338 </TABLE>
339 </BLOCKQUOTE>
341 <H4>Summary</H4>
343 <BLOCKQUOTE>
345 Returns the keys of this resource set, i.e. the strings for which
346 <CODE>GetObject()</CODE> can return a non-null value.
347 </BLOCKQUOTE>
349 <H4>See Also</H4>
351 <BLOCKQUOTE>
352 <A HREF="GNU_Gettext_GettextResourceSet.html" TARGET="contents">GNU.Gettext.GettextResourceSet Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A>
353 </BLOCKQUOTE>
355 </BODY>
356 </HTML>