converted site to Italian, but blog's date stays in English. (1 post)

  1. Francesco Scinico
    Posted 7 years ago #

    on scinico.org, I'm using revolution news 2.1 theme (from revolutiontheme.com) on WP 2.5.1. I installed the Italian .mo WPLANG file and converted the site to Italian. All works except the date on the top-right side of the blog, which stays in English (and with PST time zone, even though I set the wp preferences to UTC +1 (Rome, Italy time zone). I have the following javascript controlling that date.

    <script type="text/javascript" src="http://scinico.org/wp-content/themes/revolution_news-21/js/date.js">
    1var mydate=new Date()
    2var year=mydate.getYear()
    3if (year < 1000)
    5var day=mydate.getDay()
    6var month=mydate.getMonth()
    7var daym=mydate.getDate()
    8if (daym<10)
    10var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
    11var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
    12document.write("<p>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</p>")

    Do I have to go in and manually change those days and months from English to Italian? Or do something else? on the theme's forum page, they told me that the date should have changed to Italian when settin the WPlang file, but it didn't, and they are at a loss of ideas.
    thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 7 years ago by Francesco Scinico
  • This topic is not resolved
  • WordPress version: 2.5.1