Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ News article header :: Archived


News article header :: Archived
Want a language pack or convertor? Have feedback on either of these? Are you a developer of one of these? Here is the place to post. Read the announcements here first!
Go to page Previous  1, 2
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  i18n - l10n (languages)

Topic Archived View previous topic :: View next topic  
Author Message
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Mon Nov 29, 2004 7:18 pm
Post subject: Re: News article header

saved as datetime, tho this is handled differently in the next release - I was thinking varchar when I asked you to check, then checked myself, hence dumb request.

The datetime is utf formatted by the formatDateTime function in the News module. This should be passed onto your theme in the same format, so I'm not sure why it doesn't display correctly.

I'm not sure if this will work, but try inserting this line just below the global line in function newsindex of theme.php,

$time=formatDateTime($time, _DATESTRING);


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Mon Nov 29, 2004 7:27 pm
Post subject: Re: News article header

I did this and I got another date, from year 1969 Very happy


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b
Back to top
View user's profile
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Mon Nov 29, 2004 7:35 pm
Post subject: Re: News article header

Laughing not much use - did it have the correct format?

oh well, I'm out of ideas - perhaps Akamu can help when he pops in


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Mon Nov 29, 2004 7:40 pm
Post subject: Re: News article header

Actually, the new date [name of the day] doesn't have any of ş,ţ,â,î in it [in my language] so I'm not able to really tell if is wright or wrong.


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b
Back to top
View user's profile
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Mon Nov 29, 2004 7:45 pm
Post subject: Re: News article header

This kind of "view" is happening when I edit something in ISO-8859-2 and the editor is set in Windows-1252 [western encoding].
The UTF-8 part is ok I think!

Thanks anyway, Phoenix, for trying.


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b
Back to top
View user's profile
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Thu Dec 09, 2004 5:13 pm
Post subject: Re: News article header

Confused Confused Confused Confused Confused Confused Confused Confused


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b
Back to top
View user's profile
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Sat Dec 18, 2004 10:45 pm
Post subject: Re: News article header

Maybe here is the problem.
I checked the php manual for utf8_encode function
and it says
Quote::
utf8_encode -- Encodes an ISO-8859-1 string to UTF-8

so $datetime is converted in UTF-8 from ISO-8859-1 [but mai input is in ISO-8859-2 as it should].
So actually what I see on my page is an UTF-8 output of an ISO-8859-2 text "seen" as ISO-8859-1.
Is there a function to convert a string from ISO-8859-2 to ISO-8859-1 before encoding the text in UTF-8 or what should I do.

Even here on this site doesn't appear right.
It is "DuminicĂ" instead of "Duminică" as it should be or "SîmbĂtĂ" instead "Sâmbătă" [and it's not a translation error, I assure you].


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b


Last edited by Aikon on Sun Mar 20, 2005 1:23 am; edited 1 time in total
Back to top
View user's profile
Aikon
Newbie
Newbie

Offline Offline
Joined: Jul 25, 2004
Posts: 31
Location: România
PostPosted: Sat Feb 05, 2005 2:51 pm
Post subject: Re: News article header

Entered the server specs.


Aikon's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Unix/Apache 1.3.31/MySQL 4.0.22/PHP 4.3.9./CPG Nuke82b
Back to top
View user's profile
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  i18n - l10n (languages)
Page 2 of 2
All times are GMT
Go to page Previous  1, 2

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

читај повеќе...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy