SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation searching for US English to Canadian English auto translation tool.

    Hi,
    I have several scripts (Java and VB) that I need translated from US to Canadian English! Please help if you can......

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did not realize that there was that much of a difference between the two that you would need to translate.

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only difference I can think of is date format...

    For VBScript, I normally do this:
    Code:
    <%
    SetLocale "en-ca" ' this should be the default locale of the server, if not leave this line here
    
    sDate = "3/11/2005" ' nasty american date =)
    sLocale = SetLocale("en-us") ' temporarily change the locale of the server to american, store the existing locale in sLocale
    dDate = CDate(sDate) ' convert the date string to a date variable
    SetLocale sLocale ' change back to original locale
    Response.Write FormatDateTime(dDate, vbShortDate) ' display date
    %>
    It should display
    11/03/2005


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •