/SQL/scripts/inc/mla_sql_lang.asp

http://github.com/khaneh/Orders · ASP · 29 lines · 25 code · 4 blank · 0 comment · 0 complexity · e55b0428c9a03655af5309f23bdc8055 MD5 · raw file

  1. <%
  2. Dim gTArray(1000)
  3. Class mla_sql_lang
  4. Dim gCurrentLng
  5. Public Property Let lng (pLng)
  6. gCurrentLng = pLng
  7. InitTranslation()
  8. End Property
  9. Public Function getTerm(pId)
  10. getTerm = gTArray(pId)
  11. End Function
  12. Private Sub InitTranslation()
  13. Select Case gCurrentLng
  14. Case "FR" :
  15. %>
  16. <!-- #INCLUDE FILE="../lng/french.asp" -->
  17. <%
  18. Case Else :
  19. %>
  20. <!-- #INCLUDE FILE="../lng/english.asp" -->
  21. <%
  22. End Select
  23. End Sub
  24. End Class
  25. %>