TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 247
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 196
  • Total: 196

Howto translate date

Started by fak3, May 03, 2009, 01:25:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fak3

http://www.mysammy.it I don't know if it's only with posts in frontpage, I don't use articles.

bbTURK

i think that tp uses php date functions. i could not find date string in tp source and lang files.

ZarPrime

OK, I just wanted to see if the date was shown properly in your posts inside the Forum.  OK, can you attach your Italian Language files to your next post here so that I can look at them.  There are 7 files I want to look at (TP*.italian-utf8.php) where the asterisk is different for each file.  Please put all 7 files into a zip file and attach it here.

ZarPrime

fak3

It's the translation I downloaded from tinyportal.co.uk. Btw thanks for the help. :)

ZarPrime

OK, give me a little time to look at these as I'm doing 14 things at once.  :idiot2:

NP on the help.  That's what we're here for.  I'll be back in a little bit.

ZP

Dark-Wolf

Hi!
I have same problem and i think is in this code part (TPortal.template.php):
$ntime='
<span class="tp_month">' . date("M",$story['timestamp']). '</span><span class="tp_thindivider">  </span><span class="tp_day">'. date("d",$story['timestamp']) . '</span> <span class="tp_year"> '. date("Y",$story['timestamp']) . '</span>';
but i don't have found any way to fix :)

ZarPrime

OK, well, I've checked the language files and they appear to be right, or at least very close what the ones we have in the download section are (only a few small differences), so there is something else going on here.  Dark Wolf, you may be right but I think I'm going to have to have Mr. Bloc take a look at this.

I have a theory.  It may have something to do with an issue I brought up on the team board last week regarding shortened dates.  Since Bloc will have to look, it's going to take me a while to see if this can be sorted out or whether it might be a bug.  Bear with me for awhile, like more than a couple of days but hopefully less than a week.  :)

ZarPrime

fak3


ZarPrime

fak,

OK, Bloc is looking at this and he immediately thought he knew what it was.  You won't be able to read the message but according to him ...

Quote from: Bloc on May 03, 2009, 03:06:34 PM
I know what this is..the date function needs "setlocale" to be set, to get the correct language.I'll add and test asap.

I'll get back to this as soon as he finishes looking at it to see if it's an easy fix or whether you'll have to wait for the next beta.

ZarPrime

fak3


This website is proudly hosted on Crocweb Cloud Website Hosting.