Пример #1
0
        // -- CONSTRUCTORS

        public ENGLISH_LANGUAGE(
            ) : base()
        {
            Name         = "English";
            DotCharacter = '.';
            TranslationDictionary["princess"] = new TRANSLATION("princess", "1", GENRE.Female);
            TranslationDictionary["NewGame"]  = new TRANSLATION("New game");
        }
Пример #2
0
        // -- CONSTRUCTORS

        public TRANSLATION(
            TRANSLATION translation
            )
        {
            Text               = translation.Text;
            Quantity           = translation.Quantity;
            HasIntegerQuantity = translation.HasIntegerQuantity;
            HasRealQuantity    = translation.HasRealQuantity;
            IntegerQuantity    = translation.IntegerQuantity;
            RealQuantity       = translation.RealQuantity;
            Genre              = translation.Genre;
        }
Пример #3
0
        // ~~

        public void AddText(
            TRANSLATION translation
            )
        {
            if (Text == null ||
                Text.Length == 0)
            {
                Text = translation.Text;
            }
            else
            {
                Text = Text + translation.Text;
            }
        }
Пример #4
0
        // ~~

        public override string Pears(
            int count
            )
        {
            TRANSLATION
                result_translation = new TRANSLATION();

            result_translation.AddText(GetIntegerText(count) + " ");

            if (count == 1)
            {
                result_translation.AddText("Birne");
            }
            else
            {
                result_translation.AddText("Birnen");
            }

            return(result_translation.Text);
        }
Пример #5
0
        // ~~

        public virtual PLURALITY GetOrdinalPlurality(
            TRANSLATION translation
            )
        {
            return(PLURALITY.Zero);
        }
Пример #6
0
        // ~~

        public override PLURALITY GetOrdinalPlurality(
            TRANSLATION translation
            )
        {
            return(translation.GetGermanOrdinalPlurality());
        }
Пример #7
0
        // -- INQUIRIES

        public override PLURALITY GetCardinalPlurality(
            TRANSLATION translation
            )
        {
            return(translation.GetFrenchCardinalPlurality());
        }