Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Languages and alternative language support ⇒ i18n - l10n (languages) :: Archives ⇒ php date function language problem - web_links :: Archived


php date function language problem - web_links :: 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
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Tue Nov 30, 2004 8:29 am
Post subject: Re: date language still problem

or line 263 of Web_Links/index.php you have
PHP:
$newlinkView = date("F d, Y", $newlinkdatRaw);
replace with
PHP:
$newlinkView = formatDateTime($newlinkdayRaw, "%B %d, %T");

from php date F is equal to a full textual representation of a month, such as January or March BUT for some reason its not working with formaDateTime.
%B instead will do the same work!

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed


Last edited by NanoCaiordo on Tue Nov 30, 2004 8:33 am; edited 1 time in total
Back to top
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: Tue Nov 30, 2004 8:29 am
Post subject: Re: date language still problem

akumu and you poldo are genious.

thnx 100000 times

_________________
Juventus the champion!

senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
Back to top
View user's profile Visit poster's website MSN Messenger
poldo
Dragonfly addicted
Dragonfly addicted

Offline Offline
Joined: Oct 20, 2004
Posts: 381
Location: Philippines
PostPosted: Tue Nov 30, 2004 8:32 am
Post subject: Re: date language still problem

senzacionale wrote:
akumu and you poldo are genious.

thnx 100000 times

the credit all goes to Akamu Applause

_________________
12715014116404015116304016415014
5040042115141164162151170042077

poldo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.31 (Unix)/4.0.22-standard/4.3.9/CVS
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
Lualah
Heavy poster
Heavy poster

Offline Offline
Joined: Nov 14, 2004
Posts: 244

PostPosted: Tue Nov 30, 2004 8:39 am
Post subject: Re: date language still problem

nice akumu.

i need that too.

and i vhange D, Y but i can get right combination. How i can make that day will be before months like 30 november 2004.

thnx


Lualah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
WIN/Apache 2/4.1.16/5.1.1/9.0.6.1
Back to top
View user's profile Visit poster's website
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: Tue Nov 30, 2004 8:41 am
Post subject: Re: php date function language problem - web_links

i send him PM too and thnx to him. Big grin

_________________
Juventus the champion!

senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
Back to top
View user's profile Visit poster's website MSN Messenger
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: Tue Nov 30, 2004 8:57 am
Post subject: download module months

i want to chnage module months too.

i open index.php in downloads module but i can not find date that i will change it with akumu's one.

thnx

_________________
Juventus the champion!

senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly


Last edited by senzacionale on Tue Nov 30, 2004 9:08 am; edited 1 time in total
Back to top
View user's profile Visit poster's website MSN Messenger
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Nov 30, 2004 9:02 am
Post subject: Re: download module months

I'll move this onto the existing thread - you really need to stop doing this and think about making new topics.

Also, please change your avatar - animation not allowed.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: Tue Nov 30, 2004 9:06 am
Post subject: Re: php date function language problem - web_links

sorry and i delete my avatar. why is not allowed. I know that i can't make 2 posts, sorry.

_________________
Juventus the champion!

senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
Back to top
View user's profile Visit poster's website MSN Messenger
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Tue Nov 30, 2004 9:18 am
Post subject: Re: php date function language problem - web_links

avatars are fine, just not animated (moving) Smile
same rule for signatures.

cpgnuke.com/Forums/vie...c/t=1.html section 2 and 3.


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
senzacionale
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Sep 26, 2004
Posts: 582
Location: Slovenija
PostPosted: Tue Nov 30, 2004 11:47 am
Post subject: Re: php date function language problem - web_links

ok i read this.

can you help me with my last problem.

thnx

_________________
Juventus the champion!

senzacionale's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows XP/2.0.53/4.1.16/5.1.1/Dragonfly....Gentoo Linux/2.0.52-r1/4.1.16/5.1.1/Dragonfly
Back to top
View user's profile Visit poster's website MSN Messenger
fesja
Newbie
Newbie

Offline Offline
Joined: Apr 24, 2004
Posts: 49
Location: Madrid - Spain
PostPosted: Sat Jan 08, 2005 8:31 pm
Post subject: Re: php date function language problem - web_links

I've the a similar problem with spanish,

i have this code:
PHP:
strftime("%A, %d de %B del %Y", $dia)

and it shows for example this:

Quote::
teisip�ev, 11 de jaanuar del 2005

this is totally wrong, I've searched on the code and I changed in the file includes/functions/language.php line 205, from

PHP:
'spanish'    => array('es_ES', 'es, spa, ISO-8859-1, 28591'),
to
PHP:
'spanish'    => array('es_ES', 'sp, spa, ISO-8859-1, 28591'),

now it works a bit, because it appears:
Quote::
s�bado, 08 de enero del 2005

but as you can see it sábado is wrong, and it should be Sábado and Enero with the first letter in uppercase.

it could be a problem with my serve and utf8,

any help please?

thanks


fesja's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Ubuntu Hoary / 2.0.53 / 4.1.10 / 4.3.10/ 9.0.3
Back to top
View user's profile Visit poster's website
hardlocke
Nice poster
Nice poster

Offline Offline
Joined: Jan 06, 2005
Posts: 149
Location: Switzerland
PostPosted: Mon Jan 17, 2005 11:55 am
Post subject: Re: php date function language problem - web_links

how can i set this language settings in the news module??


hardlocke's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
W2003/Apache 2.0.5/MYSQL4.0.22/PHP5.1/CGPNuke 9.1.1
Back to top
View user's profile Visit poster's website
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