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

            return((System.Resources.ResourceSet)rs);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }