Member
Member
castuo   23-05-2009, 19:08
#1

At the moment I'm setting up a ZenPhoto in a Windows Server 2003 (IIS6) and I was having problems with the setlocale. After few workarounds I found an easy solution for that, the only thing you have to do is to add a null as a last value of the function:

file: zp-core/functions-i18n.php
line: 245
updated line: $result = setlocale(LC_ALL, $locale.'.'.$encoding, $locale, null);

I hope you enjoy the fix.

Member
Member
sbillard   23-05-2009, 19:34
#2

What problems were you having? Have you tried to change languages after using this work-around?

Member
Member
castuo   24-05-2009, 01:30
#3

Before I couldn't change the languages, I was getting and error with any of the languages, after that changes everything works fine and I can change to any language.

Member
Member
sbillard   24-05-2009, 16:54
#4

Not sure why this fixed things, but it seems to be an innocuous change. But we are close to the next release of Zenphoto so I would prefer to wait until after that to make the change just to be sure we don't break things for the majority of folks.

Member
Member
bic   25-05-2009, 07:59
#5

Thanks, My own PC runs XP and now I can work with locales on my local server too!

Member
Member
castuo   25-05-2009, 21:52
#6

I'm glad is working for you!! I'm not sure why is working but I'm pretty sure that little change will work and like sbillard says is innocuous.

Member
Member
Blue Dragonfly   26-02-2010, 05:30
#7

I'll have to add here that I had the same mysterious problem using 1.2.8 - I got the error that the language wasn't supported by the server, and that warning in Setup.php about lack of support also. Adding that final null parameter fixed it for me as well.

Member
Member
sbillard   26-02-2010, 06:00
#8

So, here is a good example of why it is important to create tickets. Unfortunatley, this change has not been made in the development stream. And again, we are close to the release date, so again it will have to wait. Hope we remember it for the 1.3 release.

Member
Member
kagutsuchi   26-02-2010, 16:10
#9

Figured I would make a ticket for this just in case it was forgotten again.

http://www.zenphoto.org/trac/ticket/1414

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.