// -- CONSTRUCTORS public ENGLISH_LANGUAGE( ) : base() { Name = "English"; DotCharacter = '.'; TranslationDictionary["princess"] = new TRANSLATION("princess", "1", GENRE.Female); TranslationDictionary["NewGame"] = new TRANSLATION("New game"); }
// -- 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; }
// ~~ public void AddText( TRANSLATION translation ) { if (Text == null || Text.Length == 0) { Text = translation.Text; } else { Text = Text + translation.Text; } }
// ~~ 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); }
// ~~ public virtual PLURALITY GetOrdinalPlurality( TRANSLATION translation ) { return(PLURALITY.Zero); }
// ~~ public override PLURALITY GetOrdinalPlurality( TRANSLATION translation ) { return(translation.GetGermanOrdinalPlurality()); }
// -- INQUIRIES public override PLURALITY GetCardinalPlurality( TRANSLATION translation ) { return(translation.GetFrenchCardinalPlurality()); }