Exemplo n.º 1
0
        // -- CONSTRUCTORS

        public ENGLISH_LANGUAGE(
            ) : base()
        {
            Name         = "English";
            DotCharacter = '.';
            TranslationDictionary["princess"] = new TRANSLATION("princess", "1", GENRE.Female);
            TranslationDictionary["NewGame"]  = new TRANSLATION("New game");
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
        // ~~

        public void AddText(
            TRANSLATION translation
            )
        {
            if (Text == null ||
                Text.Length == 0)
            {
                Text = translation.Text;
            }
            else
            {
                Text = Text + translation.Text;
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
        // ~~

        public virtual PLURALITY GetOrdinalPlurality(
            TRANSLATION translation
            )
        {
            return(PLURALITY.Zero);
        }
Exemplo n.º 6
0
        // ~~

        public override PLURALITY GetOrdinalPlurality(
            TRANSLATION translation
            )
        {
            return(translation.GetGermanOrdinalPlurality());
        }
Exemplo n.º 7
0
        // -- INQUIRIES

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