Last post Jul 12, 2007 11:25 PM by xuanvu
Jul 06, 2007 06:54 PM|xuanvu|LINK
This is my the code that I've setup on my Post.aspx
<asp:label id="intro" runat="server" meta:resourcekey="introMessage">Your Emergenetics Profile has been saved successfully. Feel free to answer these OPTIONAL survey questions.</asp:label>
<asp:label id="intro2" runat="server" meta:resourcekey="introMessage2">Optional Emergenetics Questionnaire</asp:label>
I have a local resource plage as Post.aspx.TH.resx (where TH is the Thai language that will be translater if the page was access like Post.aspx?lang=th)
The problem is I don't know what was wrong with the code, the first label got translated (label id = intro), while the 2nd one (label id=intro2) somehow didn't pickup the translation... I've tried setup couple more labels and none of them got translated.
Any idea why?
Thank you very much,
Jul 07, 2007 07:13 AM|e_screw|LINK
Do you have the resourceKey "introMessage2" in Post.aspx.resx ?
Jul 07, 2007 09:38 PM|xuanvu|LINK
Of course I do have introMessage.Text, introMessage2.Text, etc... in my .resx page, that's why I don't understand, they are particularly the same code, only the ID is different but I don't know why only the first one (introMessage) got translated.
Jul 12, 2007 10:00 AM|xuanvu|LINK
Any take on this? No matter how I try to name them, only the first one got translated!
Jul 12, 2007 11:25 PM|xuanvu|LINK
Solved... I thought that for the English, I can put the text within the .aspx page, but it turns out I have to create a resource file for the English language as well... So I need two resources files total.