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

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