Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, after some timing trying to do in the best way, I ´ve found one solution much easier and fast to implement.</p> <p>Just mapped the routes that I want one-by-one in the global.asax. This will work and will be fast to implement if you have only few pages and languages.</p> <pre><code> routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute("Default-BR", "", new { controller = "Home", action = "Index" }); routes.MapRoute("Default-EN", "en", new { controller = "Home", action = "IndexEN" }); routes.MapRoute("HotelBR", "Hotel", new { controller = "Home", action = "Index" }); routes.MapRoute("HotelEN", "en/Hotel", new { controller = "Home", action = "IndexEN" }); routes.MapRoute("Apartamento", "Apartamento", new { controller = "Home", action = "Apartamentos" }); routes.MapRoute("Apartamentos", "Apartamentos", new { controller = "Home", action = "Apartamentos" }); routes.MapRoute("Apartments", "en/Apartments", new { controller = "Home", action = "ApartamentosEN" }); routes.MapRoute("Localizacao", "Localizacao", new { controller = "Home", action = "Localizacao" }); routes.MapRoute("Location", "en/Location", new { controller = "Home", action = "LocalizacaoEN" }); routes.MapRoute("Tarifa", "Tarifa", new { controller = "Home", action = "Tarifas" }); routes.MapRoute("Tarifas", "Tarifas", new { controller = "Home", action = "Tarifas" }); routes.MapRoute("Rates", "en/Rates", new { controller = "Home", action = "TarifasEN" }); routes.MapRoute("Reserva", "Reserva", new { controller = "Home", action = "Reservas" }); routes.MapRoute("Reservas", "Reservas", new { controller = "Home", action = "Reservas" }); routes.MapRoute("Booking", "en/Booking", new { controller = "Home", action = "ReservasEN" }); routes.MapRoute("Contato", "Contato", new { controller = "Home", action = "Contato" }); routes.MapRoute("Contact", "en/Contact", new { controller = "Home", action = "ContatoEN" }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload