Pages (2): 1 2   
Member
Member
cqboy2003   26-08-2008, 11:26
#1

English (US) is not available. The locale en_US is not supported on your server.

what's wrong?

Administrator
Administrator
acrylian   26-08-2008, 14:56
#2

What the message says, your server does not support the english US locale. But that should not really matter since english is the default language you would get to see even if you had no language selected. Please see also here:
http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#24

Under 5. you can download a script to see what locales your server supports.

Member
Member
cqboy2003   27-08-2008, 11:27
#3

infactly,it can be changed to english or other languages,but it will also accord to this error,except my computer language. is that correctly?

in 1.1.7,it will be freely changed to all language without that error.

Administrator
Administrator
acrylian   27-08-2008, 11:57
#4

Do you have the en_US folder (it is okay that it is empty) within the zp-core/locale folder?

Member
Member
cqboy2003   27-08-2008, 16:04
#5

yes,have all defalut language folders

Member
Member
sbillard   27-08-2008, 16:26
#6

Did you run the script acrylian suggested? What language locales does your server support? If your server does not support the locale en_US you will get this error if you select English (US).

Member
Member
cqboy2003   29-08-2008, 14:41
#7

Http Accept Languages:
Key code coef morecode fullcode
1.0-zh zh 1.0 cn zh_cn

Supported locales:

it seems only sopport zh_cn,it depends on computer language?can not be switched freely?

Member
Member
sbillard   29-08-2008, 14:57
#8

That's a server configuration. I don't know what is involved in installing a new locale. In your case, no locales are supported. The first set of output is the prefered language your browser requests.

Administrator
Administrator
acrylian   29-08-2008, 16:18
#9

I would suggest to contact your ISP about that.

Member
Member
cqboy2003   30-08-2008, 17:43
#10

I just test on localhost.it has no error in Ver1.1.7

Member
Member
sbillard   30-08-2008, 19:14
#11

That would be because there was no error message on 1.1.7. The setlocale() still failed. We just did not have any indication of why the language selection did not work.

Member
Member
cqboy2003   31-08-2008, 03:10
#12

It seems depends on computer language ,when change to other language ,it will cause error,but it had be changed,just display that error.

Member
Member
sbillard   31-08-2008, 19:43
#13

Well, it is an error to change to a language which is not supported on the server.

Member
Member
cqboy2003   03-09-2008, 14:20
#14

when do you fix it?

Member
Member
mikeque   03-09-2008, 16:38
#15

I am seeing this error too. Do I need to configure something?

"Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work."

And I cannot set up the language.
I am working with the most current nightly build.

Member
Member
sbillard   03-09-2008, 16:48
#16

See #3 http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#24

The fix is to configure the server correctly. However, you can also ignore the error message.

Member
Member
cqboy2003   05-09-2008, 11:32
#17

I am testing on windows,how to configure it.

Member
Member
sbillard   05-09-2008, 16:35
#18

everything I know about configuring is shown in the link above.

Member
Member
bic   18-04-2009, 10:16
#19

Hi, I'm having the same problem with en_us, i.e.:
Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.

Furthemore I have a warning when I try to change the language (from/to whatever) in amin>options>gallery configuration:
`
Notice: Undefined variable: locale in /home/web/www.*****.it/www/zp-core/admin-options.php on line 226

Warning: Cannot modify header information - headers already sent by (output started at /home/web/www.**.it/www/zp-core/admin-options.php:226) in /home/web/www.antonioranesi.it/www/zp-core/admin-options.php on line 417
`
but after a refresh in browser everything goes ok (?)

I tryed to run the list_locales.php script but I received the following warning:
Warning: system() has been disabled for security reasons in /home/web/www.*******.it/www/list_locales.php on line 4

Anyway everything works fine for the languages with their own .po files and, of course, english still works after the error message.
I suppose that a workaround could be to disable these warnings, at least in the front end, to allow visitors to change language.
Am I true? If so what is the best way to disable warnings?

Ciao
bic

Member
Member
sbillard   18-04-2009, 15:47
#20

It would seem you are not using a current version of Zenphoto since the above line has no reference to the variable locale nor does any line nearby. Perhaps you should upgrade.

But anyway, without the locale functionality on your server other language based things will not work such as PHP based strings like dates. So, the best solution is to work with your provider to get their configuration straightened out.

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