Pages (2): 1 2   
Member
Member
hallo   2008-07-06, 11:02
#1

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...

Member
Member
fetard   2008-07-06, 14:42
#2

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

Administrator
Administrator
acrylian   2008-07-06, 16:47
#3

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?

Member
Member
sbillard   2008-07-06, 17:45
#4

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.

Member
Member
hallo   2008-07-07, 06:03
#5

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...

Member
Member
hallo   2008-07-07, 08:37
#6

push...

Administrator
Administrator
acrylian   2008-07-07, 09:18
#7

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

Member
Member
hallo   2008-07-07, 09:49
#8

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...

Administrator
Administrator
acrylian   2008-07-07, 10:20
#9

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?

Member
Member
hallo   2008-07-07, 11:30
#10

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...

Administrator
Administrator
acrylian   2008-07-07, 11:35
#11

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?

Administrator
Administrator
acrylian   2008-07-07, 11:37
#12

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).

Member
Member
hallo   2008-07-07, 11:45
#13

voilà

http://tinyurl.com/6lote4

Member
Member
sbillard   2008-07-07, 17:17
#14

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

Member
Member
hallo   2008-07-07, 18:38
#15

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...

Member
Member
hallo   2008-07-08, 06:26
#16

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"...

Member
Member
sbillard   2008-07-08, 15:32
#17

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.

Member
Member
hallo   2008-07-09, 07:22
#18

finally, we could solve this problem...

Administrator
Administrator
acrylian   2008-07-09, 08:52
#19

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

Member
Member
hallo   2008-07-09, 09:08
#20

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!

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.