Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ problems with the day of posted on (news) :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Indexi18n - l10n (languages)

Archived ⇒ problems with the day of posted on (news)


Hello!

I have a problem with the module News. Where the code have to print “Posted by TouchDown on Saturday 10 of june….” in Spanish “Enviado por TouchDown el Sábado, 10 de junio…” it prints “Enviado por TouchDown el Sᢡdo, 10 junio…”. Anyone can help me? I think that can be a wrong translation or encoding of the date of the php version of the WAMP Server (program that have Apache, MySql and Php for Windows in localhost). Because all others words that have accent (unfortunately in spanish we have this Sad ) work fine in all over the page (at the moment).

And the code that get the date in the news is this:
define('_DATESTRING','%A, %d %B a las %H:%M:%S');

Many thanks!

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD/Apache 2.0.59/MySQL 5.0.33/PHP 5.2.3/CPGNuke 9.1.2.1


Solved!

Thanks to senzacionale, the 2nd post of the page

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD/Apache 2.0.59/MySQL 5.0.33/PHP 5.2.3/CPGNuke 9.1.2.1


You will find most language answers in this forum - where possible, we try to move anything language related to here.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Ok Phoenix, but I have been searching in this forum but nothing that I founded has made that work correctly, until I've found that post.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
FreeBSD/Apache 2.0.59/MySQL 5.0.33/PHP 5.2.3/CPGNuke 9.1.2.1


senzacionale wrote
You can try for news changing

Code:$datetime = formatDateTime($row['time'], _DATESTRING);

to

Code:$datetime = utf8_encode(formatDateTime($row['time'], _DATESTRING));



in file modules/news/index.php


But as Djmaze said thats a problem with the languages installed on your server.

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC