Advertisement:

Author Topic: Changing strings in the calendar  (Read 14971 times)

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Changing strings in the calendar
« on: September 12, 2004, 12:50:28 AM »
somebody told me that i didn't translate the text strings in the calendar, which are the date and months. i dont know why i didn't and don't remember seeing the text strings for those..... so if i want to change the date and months to chinese, do i change the strings in here:
Code: [Select]
$days = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
$days_short = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
// Months must start with 1 => 'January'. (or translated, of course.)
$months = array(1 => 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
$months_short = array(1 => 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');

maybe it's because they're in array so i skipped them. but those are the right place to change them right?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Changing strings in the calendar
« Reply #1 on: September 12, 2004, 01:17:25 AM »
Yes, that's the right place.

-[Unknown]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: Changing strings in the calendar
« Reply #2 on: September 12, 2004, 02:14:00 AM »
thank you

Offline Alrescha

  • Newbie
  • *
  • Posts: 6
Re: Changing strings in the calendar
« Reply #3 on: November 10, 2004, 07:35:43 AM »
Just bumping in on this topic.

Sometimes the date formats are all wrong (or at the very best out-right weird) with these date pieces.

Date formats are just another thing translators (and programmers?) should watch out for.

Things like "12 十一月, 2004", where the middle part means November, is just plain wrong because nobody writes dates like that in Chinese. The same kind of problem exists with days of the week, too.

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: Changing strings in the calendar
« Reply #4 on: November 10, 2004, 12:02:31 PM »
where do you see those formats at? dates seem to work for my forum.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Changing strings in the calendar
« Reply #5 on: November 10, 2004, 12:12:05 PM »
No one writes them like that here in the US either.  Only in ye old England do they do it like that :P.

-[Unknown]

Offline Alrescha

  • Newbie
  • *
  • Posts: 6
Re: Changing strings in the calendar
« Reply #6 on: November 11, 2004, 12:06:39 AM »
Ooops, I did learn my English with an English slant to it. :D

No, it was more of a note that I wanted to drop, not to point out anything wrong.