Exemplo n.º 1
0
 public override string TraducirForma(int cantidad, Idioma idioma)
 {
     if (idioma.GetType() == typeof(Castellano))
     {
         return(cantidad == 1 ? "Trapecio" : "Trapecios");
     }
     else if (idioma.GetType() == typeof(Ingles))
     {
         return(cantidad == 1 ? "Trapeze" : "Trapezoids");
     }
     else
     {
         return(cantidad == 1 ? "Trapézio" : "Trapézios");
     }
 }
Exemplo n.º 2
0
 public override string TraducirForma(int cantidad, Idioma idioma)
 {
     if (idioma.GetType() == typeof(Castellano))
     {
         return(cantidad == 1 ? "Círculo" : "Círculos");
     }
     else if (idioma.GetType() == typeof(Ingles))
     {
         return(cantidad == 1 ? "Circle" : "Circles");
     }
     else
     {
         return(cantidad == 1 ? "Círculo" : "círculos");
     }
 }