Click here to Skip to main content
16,020,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am working on Classic ASP Project for which i need to implement Localization. Can you pls let us know how to implement. Any help is much appreciated.


Regards,

ManiKandan
Posted

Here, have a look at this: Resource files for Classic ASP[^]
 
Share this answer
 
Comments
Member 4286351 12-Jul-12 7:31am    
Thanks sandeep for your support will verify.
Sandeep Mewara 13-Jul-12 2:19am    
Welcome.
Member 4286351 13-Jul-12 6:38am    
Sample XML: This is created coz, once i am able to read the xml file then all my localizing files will be moved to xml. e.g. for english or french etc.

XML: Read as < for (lt) and > (gt)
(lt)States(gt)
(lt)State ref="FL"(gt)
(lt)name(gt)Florida(lt)/name(gt)
(lt)capital(gt)Tallahassee(lt)/capital(gt)
(lt)/State(gt)
(lt)State ref="IA"(gt)
(lt)name(gt)Iowa(lt)/name(gt)
(lt)capital(gt)Des Moines(lt)/capital(gt)
(lt)/State(gt)
(lt)/States(gt)

VBScript:

Now my code is:
<html>
<head>

First Page
<%

sub readxml()



Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
objXMLDoc.async = False
objXMLDoc.load("states.xml")

Dim objChildNodes, strNode
Set objChildNodes = objXMLDoc.documentElement.childNodes(lt)State(gt)

For Each strNode In objChildNodes
document.write(strNode.nodeName & "(lt)br(gt)")
Next

end sub


%>



<body>
<p>Result: <% call readxml%></p>

</body>

</head>
</html>

I am getting error
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/login/mypages.asp, line 14, column 63
Set objChildNodes = objXMLDoc.documentElement.childNodes

can u pls help me!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900