protected virtual System.Resources.ResourceSet InternalCreateResourceSet(Stream resourcePath)
        {
            object[]           args = new object[] { resourcePath };
            GettextResourceSet rs   = new GettextResourceSet(resourcePath);

            return((System.Resources.ResourceSet)rs);
        }
Beispiel #2
0
        public virtual String GetParticularPluralString(String msgctxt, String msgid, String msgidPlural, long n, CultureInfo culture)
        {
            GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet;

            {
                String translation = rs.GetPluralString(msgid, msgidPlural, n);
                if (translation != null)
                {
                    return(translation);
                }
            }

            return(n == 1 ? msgid : msgidPlural);
        }
Beispiel #3
0
        public virtual String GetParticularString(String msgctxt, String msgid, CultureInfo culture)
        {
            GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet;

            {
                String translation = rs.GetString(msgid);
                if (translation != null)
                {
                    return(translation);
                }
            }

            return(msgid);
        }
Beispiel #4
0
        public override String GetString(String msgid, CultureInfo culture)
        {
            GettextResourceSet rs = InternalGetResourceSet(culture, true, true) as GettextResourceSet;

            {
                String translation = rs.GetString(msgid);
                if (translation != null)
                {
                    return(translation);
                }
            }

            return(msgid);
        }