Note that there are some explanatory texts on larger screens.

plurals
  1. POalert message in Multilingual website
    primarykey
    data
    text
    <p>i am using resource files for showing html content(like label names ) in my multilingual website.The resource files are different for different countries.The website is built on Asp.Net MVC3.</p> <p>I am showing a javascript alert whose message is picked from a resource file as shown below: alert('@Resources.Areas.Admin.Views.Program.Local.Create.msgDate3'); Now in the resource file for msgDate3 i have text in french as "La fecha de inicio deberá ser menor que la fecha de término" This alert on the website gets displayed as "La fecha de inicio deber&#225; ser menor que la fecha de t&#233;rmino" where the "á" and "é" are not getting displayed properly. How to display these special charcters?</p> <p>I also have data in other languages where similar issue comes up with these characters.How to display them?</p> <p>EDIT:-</p> <p>(In my app english resource files are named as "cshtmlfilename.resx" e.g. create.resx and other culture resource files are named as "cshtmlfilename.culturename.resx" e.g. create.es-MX.resx)</p> <p>I found out that the javascript code of my page breaks on the alerts that i have placed in the page in the format<code>alert('@Html.Raw(Resources.Areas.Admin.Views.Program.Local.Create.msgDate2)');</code> where 'Create.msgDate2' refers to the resource file Create.resx's key msgDate2. The break msg in firebug comes up as `</p> <blockquote> <p>unterminated string literal [Break On This Error] alert('ควรจะลงวันที่ที่เริ่มก่อนวันสุดท้ายของการสิ้นสุด (this is the msg i get for thailand (th-th) when i am modifying the translation for msgDate2 then the script is working fine.I am sure some issue is happenning with the characters of this language which are making the javascript to stop. Any solutions for this??</p> </blockquote>
    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.
 

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