コード例 #1
0
        // ~~

        public override TRANSLATION Swords(
            TRANSLATION count_translation
            )
        {
            TRANSLATION
                result_translation = new TRANSLATION();

            if (count_translation.GetEnglishCardinalPlurality() == PLURALITY.One)
            {
                result_translation.AddText("sword");
            }
            else
            {
                result_translation.AddText("swords");
            }

            result_translation.SetQuantity(count_translation.Quantity);

            return(result_translation);
        }
コード例 #2
0
        // -- INQUIRIES

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