ZenphotoCMS Forum
Date Error German - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Date Error German (/thread-3241.html)

Pages: 1 2


Date Error German - hallo - 2008-07-06

Can anyone tell me how i can fix it? THX!

http://s4.directupload.net/file/d/1482/dmpzcqic_jpg.htm

März is written very badly...




Date Error German - fetard - 2008-07-06

Is the missing caracter accentuated ? It could be a page-encoding problem.




Date Error German - acrylian - 2008-07-06

I would guess too that this is an encoding problem, since I don't have that problem. Are your theme files saved as utf-8?




Date Error German - sbillard - 2008-07-06

First, be sure you are on zenphoto 1.1.7. Language translation is a work in progress. The beta version (1.1.6) did not properly output the month names it got from PHP.




Date Error German - hallo - 2008-07-07

http://www.testdesignzen.ch.vu/

I saved the file as utf-8... I have also several problems with the umlaut... Any idea how I can fix it?

another problem: my gallery works, but if someone wants to save a photo, the name of the photo is "i.php.jpg"... so how can i fix this problem? By reload the page, the right name is supposed...




Date Error German - hallo - 2008-07-07

push...




Date Error German - acrylian - 2008-07-07

I took a look at your site, I don't encounter any problems with "umlauts". A reason might be the domain redirection you have or the encoding of your database. Did you try to set an default encoding in your browser, too?

Also I don't have any problems downloading a photo under it's name. Sorry, can't




Date Error German - hallo - 2008-07-07

It's because i changed the data format...

Can you take a look now? i changed it...

08 M舐z 2008

I don't know why...

Yes, there is a redirection... Is there a better way to do it? Also without redirection I have this problem...




Date Error German - acrylian - 2008-07-07

I see it on your site, but I can't reproduce it on my 1.1.7 install with the same theme. I am sorry, I have no idea. Does that appear only with your modified stopdesign theme or with the default themes ones, too?




Date Error German - hallo - 2008-07-07

I uploaded the default theme and zp-core also, but the problem is almost there...

So, can anyone tell me where this data definitions are? In which file? So I can change anything and perhabs it will work later...

Yesterday, when I uploaded my folders with the pictures I had also several problems with this umlaute and space keys in my folder names... So i had to rename them to "ae" "oe" and take out the spaces etc and then I renamed the folders in the central administration... And it works...

But I have no idea what the cause of the problem with "März" is...




Date Error German - acrylian - 2008-07-07

The months names are generate by php, there is no string for "März" or any other month name you can change manually. I assume your server has the german locale installed? Maybe try a date setting without a month name for now and maybe you could post your phpinfo(), too?




Date Error German - acrylian - 2008-07-07

Yes, most german hosts do not allow umlauts in file names (even if its theoretically possible). The best is always to rename them before uploading (or uploading via the admin backend, at least for the image names zenphoto should do that for you, the album folder renaming is a little buggy right now).




Date Error German - hallo - 2008-07-07

voilà

http://tinyurl.com/6lote4




Date Error German - sbillard - 2008-07-07

Regards Märtz, did you upgrade to 1.1.7 where it is fixed?




Date Error German - hallo - 2008-07-07

Yes, I did... Tomorrow i will start a new installation and then I'll see if there is a problem with my "old" script or perhabs with the server, who knows...




Date Error German - hallo - 2008-07-08

so, I uploaded a complete new script, I didn't change anything and the problem is almost there. I changed also the theme, but without luck... I looked at my databases and scripts and they're all with "utf-8"... I have no ideas what the problem could be... but is there any possibility to change the date? i mean, there are only 2 albums with this Problem, and März is the only month with a umlaut.. And I want to use this date format "1. März 2008"...




Date Error German - sbillard - 2008-07-08

The date text is being provided by PHP from a call on strftime() in the function zpFormattedDate(). This function can be found in functions.php circa line 744. The string returned is supposed to be converted to UTF-8 by the return utf8::convert($fdate, '', getOption('charset')); line. You can try playing with that line and see if something works.




Date Error German - hallo - 2008-07-09

finally, we could solve this problem...




Date Error German - acrylian - 2008-07-09

And will you let us also know what the problem actually was and how you solved it?..:-)




Date Error German - hallo - 2008-07-09

easy, nP

in the functions.php file, I changed the function zpFormattedDate()... While I want only one date format, even "1. Januar 2008", I changed it in this way (I know it isn't a proper solution):

`function zpFormattedDate($format, $dt) {

$mt = '?';

switch (intval(date('n',$dt))) {

case 1:

$mt='Januar';

break;

case 2:

$mt='Februar';

break;

case 3:

$mt='März';

break;

case 4:

$mt='April';

break;

case 5:

$mt='Mai';

break;

case 6:

$mt='Juni';

break;

case 7:

$mt='Juli';

break;

case 8:

$mt='August';

break;

case 9:

$mt='September';

break;

case 10:

$mt='Oktober';

break;

case 11:

$mt='November';

break;

case 12:

$mt='Dezember';

break;

}

$fdate = date('j. ',$dt).$mt.date(' Y',$dt);

return $fdate;

}`

... And I deleted the old function. And now it works fine!