I'm not a programmer -- I don't even know what a "class" is -- but I usually manage to get by, thanks to this website. And I'm learning! Still, I'm looking for any shortcut I can possibly take. I'm using Visual Studio 2010 and I'm in the process of adding
5 general languages (not dialects) to my company's website, following the MSDN tutorial on implicit and explicit localization
Is this wrong? I added a string to LocalizedText.resx and named it:
aboutus
And then gave the string the value:
** I put my entire aboutus page's coding in here **
Then, on my aboutus.aspx page, where the coding used to be, somewhere in the asp:content, I put:
I tried this, and everything looked fine. The idea is that I would just now translate, and put the exact same code, translated, into my LocalizedText.fr.resx for French, and so on. I would only need 1 or 2 strings per resx file!
1 problem was that the asp:HyperLinks I had in the aboutus page didn't show up as links. But the page, table formats, and layout was fine. I would need to find a way to get the hyperlinks working.
Am I going about this the wrong way? Do I just have to STOP the string at a hyperlink, and then start a new one? Is it normal to have 30 strings on an .resx page?
Thank you for your time in reading this, and any suggestions or guidance would be greatly appreciated!
jpweber
Member
69 Points
53 Posts
Wrong to include all of aboutus.aspx page coding in LocalizedText.resx file?
Jan 16, 2012 11:17 AM|LINK
I'm not a programmer -- I don't even know what a "class" is -- but I usually manage to get by, thanks to this website. And I'm learning! Still, I'm looking for any shortcut I can possibly take. I'm using Visual Studio 2010 and I'm in the process of adding 5 general languages (not dialects) to my company's website, following the MSDN tutorial on implicit and explicit localization
Is this wrong? I added a string to LocalizedText.resx and named it:
And then gave the string the value:
Then, on my aboutus.aspx page, where the coding used to be, somewhere in the asp:content, I put:
I tried this, and everything looked fine. The idea is that I would just now translate, and put the exact same code, translated, into my LocalizedText.fr.resx for French, and so on. I would only need 1 or 2 strings per resx file!
1 problem was that the asp:HyperLinks I had in the aboutus page didn't show up as links. But the page, table formats, and layout was fine. I would need to find a way to get the hyperlinks working.
Am I going about this the wrong way? Do I just have to STOP the string at a hyperlink, and then start a new one? Is it normal to have 30 strings on an .resx page?
Thank you for your time in reading this, and any suggestions or guidance would be greatly appreciated!
Jason Weber
Globalization localization visual-studio asp.net