1<HTML> 2<HEAD> 3<TITLE>GNU.Gettext.GettextResourceManager Class</TITLE> 4</HEAD> 5<BODY BGCOLOR="#FFFFFF"> 6<H3>GNU.Gettext.GettextResourceManager Class</H3> 7 8<BLOCKQUOTE> 9<TABLE COLS="1" ROWS="1" WIDTH="100%"> 10<TR><TD BGCOLOR="#C0C0C0"><PRE>public class GettextResourceManager: System.Resources.ResourceManager</PRE></TD></TR> 11</TABLE> 12</BLOCKQUOTE> 13 14<H4>Base Types</H4> 15 16<BLOCKQUOTE> 17System.Resources.ResourceManager<BR> 18 GettextResourceManager<P> 19 20</BLOCKQUOTE> 21 22<H4>Library</H4> 23 24<BLOCKQUOTE> 25GNU.Gettext 26</BLOCKQUOTE> 27 28<H4>Summary</H4> 29 30<BLOCKQUOTE> 31 32Each instance of this class can be used to lookup translations for a 33given resource name. For each <CODE>CultureInfo</CODE>, it performs the lookup 34in several assemblies, from most specific over territory-neutral to 35language-neutral. 36</BLOCKQUOTE> 37 38<H4>See Also</H4> 39 40<BLOCKQUOTE> 41<A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 42</BLOCKQUOTE> 43 44<H4>Members</H4> 45 46<BLOCKQUOTE> 47<P> 48 49GettextResourceManager Constructors<P> 50 51<A HREF="#GettextResourceManager%28System.String%29%20Constructor" TARGET="contents">GettextResourceManager(System.String) Constructor</A><BR> 52<A HREF="#GettextResourceManager%28System.String%2C%20System.Reflection.Assembly%29%20Constructor" TARGET="contents">GettextResourceManager(System.String, System.Reflection.Assembly) Constructor</A><BR> 53<P> 54 55GettextResourceManager Methods<P> 56 57<A HREF="#GettextResourceManager.GetPluralString%28System.String%2C%20System.String%2C%20long%2C%20System.Globalization.CultureInfo%29%20Method" TARGET="contents">GettextResourceManager.GetPluralString(System.String, System.String, long, System.Globalization.CultureInfo) Method</A><BR> 58<A HREF="#GettextResourceManager.GetPluralString%28System.String%2C%20System.String%2C%20long%29%20Method" TARGET="contents">GettextResourceManager.GetPluralString(System.String, System.String, long) Method</A><BR> 59<A HREF="#GettextResourceManager.GetString%28System.String%2C%20System.Globalization.CultureInfo%29%20Method" TARGET="contents">GettextResourceManager.GetString(System.String, System.Globalization.CultureInfo) Method</A><BR> 60<A HREF="#GettextResourceManager.GetString%28System.String%29%20Method" TARGET="contents">GettextResourceManager.GetString(System.String) Method</A><BR> 61</BLOCKQUOTE> 62 63<HR> 64 65<A NAME="GettextResourceManager%28System.String%29%20Constructor"><H3>GettextResourceManager(System.String) Constructor</H3> 66 67<BLOCKQUOTE> 68<TABLE COLS="1" ROWS="1" WIDTH="100%"> 69<TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceManager(System.String baseName);</PRE></TD></TR> 70</TABLE> 71</BLOCKQUOTE> 72 73<H4>Summary</H4> 74 75<BLOCKQUOTE> 76 77Constructor. 78</BLOCKQUOTE> 79 80<H4>Parameters</H4> 81 82<BLOCKQUOTE> 83<DL> 84<DT>baseName</DT> 85<DD>the resource name, also the assembly base 86 name</DD> 87</DL> 88</BLOCKQUOTE> 89 90<H4>See Also</H4> 91 92<BLOCKQUOTE> 93<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 94</BLOCKQUOTE> 95 96<HR> 97 98<A NAME="GettextResourceManager%28System.String%2C%20System.Reflection.Assembly%29%20Constructor"><H3>GettextResourceManager(System.String, System.Reflection.Assembly) Constructor</H3> 99 100<BLOCKQUOTE> 101<TABLE COLS="1" ROWS="1" WIDTH="100%"> 102<TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceManager(System.String baseName, System.Reflection.Assembly assembly);</PRE></TD></TR> 103</TABLE> 104</BLOCKQUOTE> 105 106<H4>Summary</H4> 107 108<BLOCKQUOTE> 109 110Constructor. 111</BLOCKQUOTE> 112 113<H4>Parameters</H4> 114 115<BLOCKQUOTE> 116<DL> 117<DT>baseName</DT> 118<DD>the resource name, also the assembly base 119 name</DD> 120</DL> 121</BLOCKQUOTE> 122 123<H4>See Also</H4> 124 125<BLOCKQUOTE> 126<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 127</BLOCKQUOTE> 128 129<HR> 130 131<A NAME="GettextResourceManager.GetPluralString%28System.String%2C%20System.String%2C%20long%2C%20System.Globalization.CultureInfo%29%20Method"><H3>GettextResourceManager.GetPluralString(System.String, System.String, long, System.Globalization.CultureInfo) Method</H3> 132 133<BLOCKQUOTE> 134<TABLE COLS="1" ROWS="1" WIDTH="100%"> 135<TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n, System.Globalization.CultureInfo culture);</PRE></TD></TR> 136</TABLE> 137</BLOCKQUOTE> 138 139<H4>Summary</H4> 140 141<BLOCKQUOTE> 142 143Returns the translation of <I>msgid</I> and 144<I>msgidPlural</I> in a given culture, choosing the right 145plural form depending on the number <I>n</I>. 146</BLOCKQUOTE> 147 148<H4>Parameters</H4> 149 150<BLOCKQUOTE> 151<DL> 152<DT>msgid</DT> 153<DD>the key string to be translated, an ASCII 154 string</DD> 155<DT>msgidPlural</DT> 156<DD>the English plural of <I>msgid</I>, 157 an ASCII string</DD> 158<DT>n</DT> 159<DD>the number, should be >= 0</DD> 160</DL> 161</BLOCKQUOTE> 162 163<H4>Return Value</H4> 164 165<BLOCKQUOTE> 166the translation, or <I>msgid</I> or 167 <I>msgidPlural</I> if none is found 168</BLOCKQUOTE> 169 170<H4>See Also</H4> 171 172<BLOCKQUOTE> 173<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 174</BLOCKQUOTE> 175 176<HR> 177 178<A NAME="GettextResourceManager.GetPluralString%28System.String%2C%20System.String%2C%20long%29%20Method"><H3>GettextResourceManager.GetPluralString(System.String, System.String, long) Method</H3> 179 180<BLOCKQUOTE> 181<TABLE COLS="1" ROWS="1" WIDTH="100%"> 182<TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n);</PRE></TD></TR> 183</TABLE> 184</BLOCKQUOTE> 185 186<H4>Summary</H4> 187 188<BLOCKQUOTE> 189 190Returns the translation of <I>msgid</I> and 191<I>msgidPlural</I> in the current culture, choosing the 192right plural form depending on the number <I>n</I>. 193</BLOCKQUOTE> 194 195<H4>Parameters</H4> 196 197<BLOCKQUOTE> 198<DL> 199<DT>msgid</DT> 200<DD>the key string to be translated, an ASCII 201 string</DD> 202<DT>msgidPlural</DT> 203<DD>the English plural of <I>msgid</I>, 204 an ASCII string</DD> 205<DT>n</DT> 206<DD>the number, should be >= 0</DD> 207</DL> 208</BLOCKQUOTE> 209 210<H4>Return Value</H4> 211 212<BLOCKQUOTE> 213the translation, or <I>msgid</I> or 214 <I>msgidPlural</I> if none is found 215</BLOCKQUOTE> 216 217<H4>See Also</H4> 218 219<BLOCKQUOTE> 220<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 221</BLOCKQUOTE> 222 223<HR> 224 225<A NAME="GettextResourceManager.GetString%28System.String%2C%20System.Globalization.CultureInfo%29%20Method"><H3>GettextResourceManager.GetString(System.String, System.Globalization.CultureInfo) Method</H3> 226 227<BLOCKQUOTE> 228<TABLE COLS="1" ROWS="1" WIDTH="100%"> 229<TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid, System.Globalization.CultureInfo culture);</PRE></TD></TR> 230</TABLE> 231</BLOCKQUOTE> 232 233<H4>Summary</H4> 234 235<BLOCKQUOTE> 236 237Returns the translation of <I>msgid</I> in a given culture. 238</BLOCKQUOTE> 239 240<H4>Parameters</H4> 241 242<BLOCKQUOTE> 243<DL> 244<DT>msgid</DT> 245<DD>the key string to be translated, an ASCII 246 string</DD> 247</DL> 248</BLOCKQUOTE> 249 250<H4>Return Value</H4> 251 252<BLOCKQUOTE> 253the translation of <I>msgid</I>, or 254 <I>msgid</I> if none is found 255</BLOCKQUOTE> 256 257<H4>See Also</H4> 258 259<BLOCKQUOTE> 260<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 261</BLOCKQUOTE> 262 263<HR> 264 265<A NAME="GettextResourceManager.GetString%28System.String%29%20Method"><H3>GettextResourceManager.GetString(System.String) Method</H3> 266 267<BLOCKQUOTE> 268<TABLE COLS="1" ROWS="1" WIDTH="100%"> 269<TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid);</PRE></TD></TR> 270</TABLE> 271</BLOCKQUOTE> 272 273<H4>Summary</H4> 274 275<BLOCKQUOTE> 276 277Returns the translation of <I>msgid</I> in the current 278culture. 279</BLOCKQUOTE> 280 281<H4>Parameters</H4> 282 283<BLOCKQUOTE> 284<DL> 285<DT>msgid</DT> 286<DD>the key string to be translated, an ASCII 287 string</DD> 288</DL> 289</BLOCKQUOTE> 290 291<H4>Return Value</H4> 292 293<BLOCKQUOTE> 294the translation of <I>msgid</I>, or 295 <I>msgid</I> if none is found 296</BLOCKQUOTE> 297 298<H4>See Also</H4> 299 300<BLOCKQUOTE> 301<A HREF="GNU_Gettext_GettextResourceManager.html" TARGET="contents">GNU.Gettext.GettextResourceManager Class</A>, <A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 302</BLOCKQUOTE> 303 304</BODY> 305</HTML> 306