Note that there are some explanatory texts on larger screens.

plurals
  1. POMy Language translation does not work in Google chrome and IE
    text
    copied!<p>I developed a <strong>web application</strong> for the process of <strong>Language translation from English to Arabic.</strong></p> <p>it is a model profile page. Its has two links in the bottom of the page if I click the<br> <strong>"English"</strong> link it will display in English and i have a <strong>"Arabic"</strong> link which will display in Arabic</p> <p>I am able to insert the Non-English values in to the <strong>MySQL DB</strong> and can retrieve it back.</p> <p>I downloaded and changed the <strong>Locale Switcher plugin</strong> in Firefox and also made changes for my computer input language. <strong>Its working fine in Firefox</strong> but it is not working in <strong>GOOGLE CHROME</strong> and <strong>IE</strong>. its not even changing to Arabic language when i click the 'Arabic" link in bottom</p> <p>What is the problem in the other browsers. What should I do to make my Web-App work in all of the browsers. </p> <p><strong>Edit</strong>: My <strong>English page</strong> will Look Like this. <img src="https://i.stack.imgur.com/wG0Jw.png" alt="alt text"></p> <p>When I click the <strong>Arabic Link</strong> it will change as <img src="https://i.stack.imgur.com/EhYLt.png" alt="alt text"> You can see the changes in label. Now i want two things to understand 1. I want see the same changes happening in all the browsers. what should I do? 2. If i am sending this web app to a person who doesnot have a locale installed in his system should be able to access both the links. How should i achieve this? i am clueless.</p> <p><strong>My Server Side code for inserting into DB:</strong></p> <pre><code> try{ con = LanguageTranslation.getConnection(); System.out.println("Inside try"); PreparedStatement pstmt = con.prepareStatement("INSERT INTO TRANSLATE SET NAME= ?, SEX= ?, CITY= ?, COMMENTS= ?, BMONTH= ?, BDATE= ?, BYEAR= ? "); pstmt.setString(1, details.getName()); pstmt.setInt(2, details.getSex()); pstmt.setString(3, details.getCity()); pstmt.setString(4, details.getComment()); pstmt.setString(5, details.getMonth()); pstmt.setString(6, details.getDate()); pstmt.setString(7, details.getYear()); i=pstmt.executeUpdate(); } catch(SQLException e){ e.printStackTrace(); } return details; </code></pre> <p><strong>Update:</strong> My <strong>html</strong> page corresponding to both the links(English and Arabic is)</p> <pre><code> &lt;input type="button" id="clearbutton" value="clear" onclick="clearprofile()"&gt; &lt;input type="button" id="findbutton" value="find" onclick="finddetails()"&gt; &lt;/div&gt; &lt;a id="EnglishLanguageLink" name="en-US" href="#"&gt; English&lt;/a&gt; &amp;nbsp; &lt;a id="ArabicLanguageLink" name="ar-SA" href="#"&gt; Arabic&lt;/a&gt; </code></pre> <p>My <strong>JS</strong> function Intialize(){ $('#EnglishLanguageLink').click(this.changelanguage); $('#ArabicLanguageLink').click(this.changelanguage); }</p> <pre><code> this.changelanguage=function(){ var name = this.name; $(this).translate("languages/UserPortal.json", name); }; </code></pre> <p>Inside the name attribute I will pass the languages en-US and ar-SA. which will see the json file and make the corresponding changes for the language.</p>
 

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