1*946379e7Schristos<HTML> 2*946379e7Schristos<HEAD> 3*946379e7Schristos<TITLE>GNU.Gettext.GettextResourceSet Class</TITLE> 4*946379e7Schristos</HEAD> 5*946379e7Schristos<BODY BGCOLOR="#FFFFFF"> 6*946379e7Schristos<H3>GNU.Gettext.GettextResourceSet Class</H3> 7*946379e7Schristos 8*946379e7Schristos<BLOCKQUOTE> 9*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 10*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public class GettextResourceSet: System.Resources.ResourceSet</PRE></TD></TR> 11*946379e7Schristos</TABLE> 12*946379e7Schristos</BLOCKQUOTE> 13*946379e7Schristos 14*946379e7Schristos<H4>Base Types</H4> 15*946379e7Schristos 16*946379e7Schristos<BLOCKQUOTE> 17*946379e7SchristosSystem.Resources.ResourceSet<BR> 18*946379e7Schristos GettextResourceSet<P> 19*946379e7Schristos 20*946379e7Schristos</BLOCKQUOTE> 21*946379e7Schristos 22*946379e7Schristos<H4>Library</H4> 23*946379e7Schristos 24*946379e7Schristos<BLOCKQUOTE> 25*946379e7SchristosGNU.Gettext 26*946379e7Schristos</BLOCKQUOTE> 27*946379e7Schristos 28*946379e7Schristos<H4>Summary</H4> 29*946379e7Schristos 30*946379e7Schristos<BLOCKQUOTE> 31*946379e7Schristos 32*946379e7SchristosEach instance of this class encapsulates a single PO file. 33*946379e7Schristos<P> 34*946379e7Schristos 35*946379e7Schristos 36*946379e7SchristosThis API of this class is not meant to be used directly; use 37*946379e7Schristos<CODE>GettextResourceManager</CODE> instead. 38*946379e7Schristos<P> 39*946379e7Schristos 40*946379e7Schristos</BLOCKQUOTE> 41*946379e7Schristos 42*946379e7Schristos<H4>See Also</H4> 43*946379e7Schristos 44*946379e7Schristos<BLOCKQUOTE> 45*946379e7Schristos<A HREF="GNU_Gettext.html" TARGET="members">GNU.Gettext Namespace</A> 46*946379e7Schristos</BLOCKQUOTE> 47*946379e7Schristos 48*946379e7Schristos<H4>Members</H4> 49*946379e7Schristos 50*946379e7Schristos<BLOCKQUOTE> 51*946379e7Schristos<P> 52*946379e7Schristos 53*946379e7SchristosGettextResourceSet Constructors<P> 54*946379e7Schristos 55*946379e7Schristos<A HREF="#GettextResourceSet%28%29%20Constructor" TARGET="contents">GettextResourceSet() Constructor</A><BR> 56*946379e7Schristos<A HREF="#GettextResourceSet%28System.Resources.IResourceReader%29%20Constructor" TARGET="contents">GettextResourceSet(System.Resources.IResourceReader) Constructor</A><BR> 57*946379e7Schristos<A HREF="#GettextResourceSet%28System.IO.Stream%29%20Constructor" TARGET="contents">GettextResourceSet(System.IO.Stream) Constructor</A><BR> 58*946379e7Schristos<A HREF="#GettextResourceSet%28System.String%29%20Constructor" TARGET="contents">GettextResourceSet(System.String) Constructor</A><BR> 59*946379e7Schristos<P> 60*946379e7Schristos 61*946379e7SchristosGettextResourceSet Methods<P> 62*946379e7Schristos 63*946379e7Schristos<A HREF="#GettextResourceSet.GetPluralString%20Method" TARGET="contents">GettextResourceSet.GetPluralString Method</A><BR> 64*946379e7Schristos<A HREF="#GettextResourceSet.GetString%28System.String%29%20Method" TARGET="contents">GettextResourceSet.GetString(System.String) Method</A><BR> 65*946379e7Schristos<A HREF="#GettextResourceSet.GetString%28System.String%2C%20bool%29%20Method" TARGET="contents">GettextResourceSet.GetString(System.String, bool) Method</A><BR> 66*946379e7Schristos<A HREF="#GettextResourceSet.PluralEval%20Method" TARGET="contents">GettextResourceSet.PluralEval Method</A><BR> 67*946379e7Schristos<P> 68*946379e7Schristos 69*946379e7SchristosGettextResourceSet Properties<P> 70*946379e7Schristos 71*946379e7Schristos<A HREF="#GettextResourceSet.Keys%20Property" TARGET="contents">GettextResourceSet.Keys Property</A><BR> 72*946379e7Schristos</BLOCKQUOTE> 73*946379e7Schristos 74*946379e7Schristos<HR> 75*946379e7Schristos 76*946379e7Schristos<A NAME="GettextResourceSet%28%29%20Constructor"><H3>GettextResourceSet() Constructor</H3> 77*946379e7Schristos 78*946379e7Schristos<BLOCKQUOTE> 79*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 80*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>protected GettextResourceSet();</PRE></TD></TR> 81*946379e7Schristos</TABLE> 82*946379e7Schristos</BLOCKQUOTE> 83*946379e7Schristos 84*946379e7Schristos<H4>Summary</H4> 85*946379e7Schristos 86*946379e7Schristos<BLOCKQUOTE> 87*946379e7Schristos 88*946379e7SchristosCreates a new message catalog. When using this constructor, you 89*946379e7Schristosmust override the <CODE>ReadResources</CODE> method, in order to initialize 90*946379e7Schristosthe <CODE>Table</CODE> property. The message catalog will support plural 91*946379e7Schristosforms only if the <CODE>ReadResources</CODE> method installs values of type 92*946379e7Schristos<CODE>String[]</CODE> and if the <CODE>PluralEval</CODE> method is overridden. 93*946379e7Schristos</BLOCKQUOTE> 94*946379e7Schristos 95*946379e7Schristos<H4>See Also</H4> 96*946379e7Schristos 97*946379e7Schristos<BLOCKQUOTE> 98*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 100*946379e7Schristos 101*946379e7Schristos<HR> 102*946379e7Schristos 103*946379e7Schristos<A NAME="GettextResourceSet%28System.Resources.IResourceReader%29%20Constructor"><H3>GettextResourceSet(System.Resources.IResourceReader) Constructor</H3> 104*946379e7Schristos 105*946379e7Schristos<BLOCKQUOTE> 106*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 107*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.Resources.IResourceReader reader);</PRE></TD></TR> 108*946379e7Schristos</TABLE> 109*946379e7Schristos</BLOCKQUOTE> 110*946379e7Schristos 111*946379e7Schristos<H4>Summary</H4> 112*946379e7Schristos 113*946379e7Schristos<BLOCKQUOTE> 114*946379e7Schristos 115*946379e7SchristosCreates a new message catalog, by reading the string/value pairs from 116*946379e7Schristosthe given <I>reader</I>. The message catalog will support 117*946379e7Schristosplural forms only if the reader can produce values of type 118*946379e7Schristos<CODE>String[]</CODE> and if the <CODE>PluralEval</CODE> method is overridden. 119*946379e7Schristos</BLOCKQUOTE> 120*946379e7Schristos 121*946379e7Schristos<H4>See Also</H4> 122*946379e7Schristos 123*946379e7Schristos<BLOCKQUOTE> 124*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 126*946379e7Schristos 127*946379e7Schristos<HR> 128*946379e7Schristos 129*946379e7Schristos<A NAME="GettextResourceSet%28System.IO.Stream%29%20Constructor"><H3>GettextResourceSet(System.IO.Stream) Constructor</H3> 130*946379e7Schristos 131*946379e7Schristos<BLOCKQUOTE> 132*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 133*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.IO.Stream stream);</PRE></TD></TR> 134*946379e7Schristos</TABLE> 135*946379e7Schristos</BLOCKQUOTE> 136*946379e7Schristos 137*946379e7Schristos<H4>Summary</H4> 138*946379e7Schristos 139*946379e7Schristos<BLOCKQUOTE> 140*946379e7Schristos 141*946379e7SchristosCreates a new message catalog, by reading the string/value pairs from 142*946379e7Schristosthe given <I>stream</I>, which should have the format of 143*946379e7Schristosa <CODE>.resources</CODE> file. The message catalog will not support plural 144*946379e7Schristosforms. 145*946379e7Schristos</BLOCKQUOTE> 146*946379e7Schristos 147*946379e7Schristos<H4>See Also</H4> 148*946379e7Schristos 149*946379e7Schristos<BLOCKQUOTE> 150*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 152*946379e7Schristos 153*946379e7Schristos<HR> 154*946379e7Schristos 155*946379e7Schristos<A NAME="GettextResourceSet%28System.String%29%20Constructor"><H3>GettextResourceSet(System.String) Constructor</H3> 156*946379e7Schristos 157*946379e7Schristos<BLOCKQUOTE> 158*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 159*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public GettextResourceSet(System.String fileName);</PRE></TD></TR> 160*946379e7Schristos</TABLE> 161*946379e7Schristos</BLOCKQUOTE> 162*946379e7Schristos 163*946379e7Schristos<H4>Summary</H4> 164*946379e7Schristos 165*946379e7Schristos<BLOCKQUOTE> 166*946379e7Schristos 167*946379e7SchristosCreates a new message catalog, by reading the string/value pairs from 168*946379e7Schristosthe file with the given <I>fileName</I>. The file should 169*946379e7Schristosbe in the format of a <CODE>.resources</CODE> file. The message catalog will 170*946379e7Schristosnot support plural forms. 171*946379e7Schristos</BLOCKQUOTE> 172*946379e7Schristos 173*946379e7Schristos<H4>See Also</H4> 174*946379e7Schristos 175*946379e7Schristos<BLOCKQUOTE> 176*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 178*946379e7Schristos 179*946379e7Schristos<HR> 180*946379e7Schristos 181*946379e7Schristos<A NAME="GettextResourceSet.GetPluralString%20Method"><H3>GettextResourceSet.GetPluralString Method</H3> 182*946379e7Schristos 183*946379e7Schristos<BLOCKQUOTE> 184*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 185*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.String GetPluralString(System.String msgid, System.String msgidPlural, long n);</PRE></TD></TR> 186*946379e7Schristos</TABLE> 187*946379e7Schristos</BLOCKQUOTE> 188*946379e7Schristos 189*946379e7Schristos<H4>Summary</H4> 190*946379e7Schristos 191*946379e7Schristos<BLOCKQUOTE> 192*946379e7Schristos 193*946379e7SchristosReturns the translation of <I>msgid</I> and 194*946379e7Schristos<I>msgidPlural</I>, choosing the right plural form 195*946379e7Schristosdepending on the number <I>n</I>. 196*946379e7Schristos</BLOCKQUOTE> 197*946379e7Schristos 198*946379e7Schristos<H4>Parameters</H4> 199*946379e7Schristos 200*946379e7Schristos<BLOCKQUOTE> 201*946379e7Schristos<DL> 202*946379e7Schristos<DT>msgid</DT> 203*946379e7Schristos<DD>the key string to be translated, an ASCII 204*946379e7Schristos string</DD> 205*946379e7Schristos<DT>msgidPlural</DT> 206*946379e7Schristos<DD>the English plural of <I>msgid</I>, 207*946379e7Schristos an ASCII string</DD> 208*946379e7Schristos<DT>n</DT> 209*946379e7Schristos<DD>the number, should be >= 0</DD> 210*946379e7Schristos</DL> 211*946379e7Schristos</BLOCKQUOTE> 212*946379e7Schristos 213*946379e7Schristos<H4>Return Value</H4> 214*946379e7Schristos 215*946379e7Schristos<BLOCKQUOTE> 216*946379e7Schristosthe translation, or <CODE>null</CODE> if none is found 217*946379e7Schristos</BLOCKQUOTE> 218*946379e7Schristos 219*946379e7Schristos<H4>See Also</H4> 220*946379e7Schristos 221*946379e7Schristos<BLOCKQUOTE> 222*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 224*946379e7Schristos 225*946379e7Schristos<HR> 226*946379e7Schristos 227*946379e7Schristos<A NAME="GettextResourceSet.GetString%28System.String%29%20Method"><H3>GettextResourceSet.GetString(System.String) Method</H3> 228*946379e7Schristos 229*946379e7Schristos<BLOCKQUOTE> 230*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 231*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid);</PRE></TD></TR> 232*946379e7Schristos</TABLE> 233*946379e7Schristos</BLOCKQUOTE> 234*946379e7Schristos 235*946379e7Schristos<H4>Summary</H4> 236*946379e7Schristos 237*946379e7Schristos<BLOCKQUOTE> 238*946379e7Schristos 239*946379e7SchristosReturns the translation of <I>msgid</I>. 240*946379e7Schristos</BLOCKQUOTE> 241*946379e7Schristos 242*946379e7Schristos<H4>Parameters</H4> 243*946379e7Schristos 244*946379e7Schristos<BLOCKQUOTE> 245*946379e7Schristos<DL> 246*946379e7Schristos<DT>msgid</DT> 247*946379e7Schristos<DD>the key string to be translated, an ASCII 248*946379e7Schristos string</DD> 249*946379e7Schristos</DL> 250*946379e7Schristos</BLOCKQUOTE> 251*946379e7Schristos 252*946379e7Schristos<H4>Return Value</H4> 253*946379e7Schristos 254*946379e7Schristos<BLOCKQUOTE> 255*946379e7Schristosthe translation of <I>msgid</I>, or <CODE>null</CODE> if 256*946379e7Schristos none is found 257*946379e7Schristos</BLOCKQUOTE> 258*946379e7Schristos 259*946379e7Schristos<H4>See Also</H4> 260*946379e7Schristos 261*946379e7Schristos<BLOCKQUOTE> 262*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 264*946379e7Schristos 265*946379e7Schristos<HR> 266*946379e7Schristos 267*946379e7Schristos<A NAME="GettextResourceSet.GetString%28System.String%2C%20bool%29%20Method"><H3>GettextResourceSet.GetString(System.String, bool) Method</H3> 268*946379e7Schristos 269*946379e7Schristos<BLOCKQUOTE> 270*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 271*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public override System.String GetString(System.String msgid, bool ignoreCase);</PRE></TD></TR> 272*946379e7Schristos</TABLE> 273*946379e7Schristos</BLOCKQUOTE> 274*946379e7Schristos 275*946379e7Schristos<H4>Summary</H4> 276*946379e7Schristos 277*946379e7Schristos<BLOCKQUOTE> 278*946379e7Schristos 279*946379e7SchristosReturns the translation of <I>msgid</I>, with possibly 280*946379e7Schristoscase-insensitive lookup. 281*946379e7Schristos</BLOCKQUOTE> 282*946379e7Schristos 283*946379e7Schristos<H4>Parameters</H4> 284*946379e7Schristos 285*946379e7Schristos<BLOCKQUOTE> 286*946379e7Schristos<DL> 287*946379e7Schristos<DT>msgid</DT> 288*946379e7Schristos<DD>the key string to be translated, an ASCII 289*946379e7Schristos string</DD> 290*946379e7Schristos</DL> 291*946379e7Schristos</BLOCKQUOTE> 292*946379e7Schristos 293*946379e7Schristos<H4>Return Value</H4> 294*946379e7Schristos 295*946379e7Schristos<BLOCKQUOTE> 296*946379e7Schristosthe translation of <I>msgid</I>, or <CODE>null</CODE> if 297*946379e7Schristos none is found 298*946379e7Schristos</BLOCKQUOTE> 299*946379e7Schristos 300*946379e7Schristos<H4>See Also</H4> 301*946379e7Schristos 302*946379e7Schristos<BLOCKQUOTE> 303*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 305*946379e7Schristos 306*946379e7Schristos<HR> 307*946379e7Schristos 308*946379e7Schristos<A NAME="GettextResourceSet.PluralEval%20Method"><H3>GettextResourceSet.PluralEval Method</H3> 309*946379e7Schristos 310*946379e7Schristos<BLOCKQUOTE> 311*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 312*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>protected virtual long PluralEval(long n);</PRE></TD></TR> 313*946379e7Schristos</TABLE> 314*946379e7Schristos</BLOCKQUOTE> 315*946379e7Schristos 316*946379e7Schristos<H4>Summary</H4> 317*946379e7Schristos 318*946379e7Schristos<BLOCKQUOTE> 319*946379e7Schristos 320*946379e7SchristosReturns the index of the plural form to be chosen for a given number. 321*946379e7SchristosThe default implementation is the Germanic plural formula: 322*946379e7Schristoszero for <I>n</I> == 1, one for <I>n</I> != 1. 323*946379e7Schristos</BLOCKQUOTE> 324*946379e7Schristos 325*946379e7Schristos<H4>See Also</H4> 326*946379e7Schristos 327*946379e7Schristos<BLOCKQUOTE> 328*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 330*946379e7Schristos 331*946379e7Schristos<HR> 332*946379e7Schristos 333*946379e7Schristos<A NAME="GettextResourceSet.Keys%20Property"><H3>GettextResourceSet.Keys Property</H3> 334*946379e7Schristos 335*946379e7Schristos<BLOCKQUOTE> 336*946379e7Schristos<TABLE COLS="1" ROWS="1" WIDTH="100%"> 337*946379e7Schristos<TR><TD BGCOLOR="#C0C0C0"><PRE>public virtual System.Collections.ICollection Keys { get; }</PRE></TD></TR> 338*946379e7Schristos</TABLE> 339*946379e7Schristos</BLOCKQUOTE> 340*946379e7Schristos 341*946379e7Schristos<H4>Summary</H4> 342*946379e7Schristos 343*946379e7Schristos<BLOCKQUOTE> 344*946379e7Schristos 345*946379e7SchristosReturns the keys of this resource set, i.e. the strings for which 346*946379e7Schristos<CODE>GetObject()</CODE> can return a non-null value. 347*946379e7Schristos</BLOCKQUOTE> 348*946379e7Schristos 349*946379e7Schristos<H4>See Also</H4> 350*946379e7Schristos 351*946379e7Schristos<BLOCKQUOTE> 352*946379e7Schristos<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*946379e7Schristos</BLOCKQUOTE> 354*946379e7Schristos 355*946379e7Schristos</BODY> 356*946379e7Schristos</HTML> 357