Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Define this route:</p> <pre><code>routing.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional, lang = "en" } ); </code></pre> <p>All your flags at the top should be done like:</p> <pre><code>&lt;a href="&lt;%= Url.Action(this.ViewContext.RouteData.Values["action"], this.ViewContext.RouteData.Values["controller"], new { lang = "de" }) %&gt;"&gt; &lt;img scr="..." /&gt; &lt;/a&gt; </code></pre> <p>so they will always point to the current page in a different language. This is useful if your language variations are 1:1. But if your language pages are different, you should always point to home page in a particular language.</p> <p>Regarding translations you can either use resources or you can store them in the DB. I used both in my past although lately I save static interface string in resource files. Not just one, because it become way too overwhelming, but rather one resource file per file if it needs it. This way I do get some repeated definitions (like OK, Cancel etc), but its much easier to maintain it this way. Because if you have only one resource file it become very unpredictable where do things change.</p> <p>So all my <code>*.cs</code> files that need strings (ie. exception messages) have their <code>*.resx</code> companion. The same goes with my views. Views almost all have their own acompanying <code>*.resx</code> that defines all static content.</p> <p>If you have more than one language, you'd have to provide <code>*.lang.resx</code> for every language you need.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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