Forums / Templates, Stylesheets, Page Layout / How to set the locale on admin pages? - for Hebrew

How to set the locale on admin pages? - for Hebrew

Locked

Started by makover on 14 Jul 2008, 6:28 PM · Views: 2,390

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
14 Jul 2008, 6:28 PM
#1
makover avatar

makover

New Zenner

Join Date:
Mar 2008
Location:
Israel
Posts:
59
Plugin Contributions:
0

How to set the locale on admin pages? - for Hebrew

Hi,

We went from ZC 1.2.5 to 1.3.8a. Among other problems we've encountered, the admin area displays Gybrish instead of Hebrew. On the frontend the Hebrew is displayed correctly. The data is correctly retrieved form the DB, I believe - If we change the encoding via the browsers setting, it is displayed correctly.

Is there a separate locale setting for the admin pages? Any clue will be appreciated.

Thank you,
Alon :smile:

15 Jul 2008, 1:17 AM
#2
pelasgos avatar

pelasgos

New Zenner

Join Date:
Dec 2006
Location:
Athens - Greece
Posts:
71
Plugin Contributions:
0

Re: How to set the locale on admin pages? - for Hebrew

Hi!

Locate your language file (something like english.php or hebrew.php) in admin/includes/languages folder open it with an editor and set the correct locale settings.

15 Jul 2008, 1:39 AM
#3
makover avatar

makover

New Zenner

Join Date:
Mar 2008
Location:
Israel
Posts:
59
Plugin Contributions:
0

Re: How to set the locale on admin pages? - for Hebrew

Hi,

Thanks for the answer.

I tried now to copy the locale setting from *includes/languages/hebrew.php *to admin/includes/languages/hebrew.php:

@setlocale(LC_ALL, 'he_IL', 'he', 'hebrew');

but still the problem remains. In the original 1.2.5 ZC it was set to the locale above. What am I missing?

Alon

15 Jul 2008, 6:21 PM
#4
makover avatar

makover

New Zenner

Join Date:
Mar 2008
Location:
Israel
Posts:
59
Plugin Contributions:
0

Re: How to set the locale on admin pages? - for Hebrew

Found the solution and would like to update for future use - set the encoding under the admin/includes/languages/hebrew.php as follows:

define('CHARSET', 'windows-1255');

15 Jul 2008, 6:33 PM
#5
pelasgos avatar

pelasgos

New Zenner

Join Date:
Dec 2006
Location:
Athens - Greece
Posts:
71
Plugin Contributions:
0

Re: How to set the locale on admin pages? - for Hebrew

Hi,

Open admin/includes/languages/hebrew.php again, and a few lines below locale (around line 62 for me) you will find ```
// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

Change that to 'iso-8859-8'
15 Jul 2008, 6:37 PM
#6
pelasgos avatar

pelasgos

New Zenner

Join Date:
Dec 2006
Location:
Athens - Greece
Posts:
71
Plugin Contributions:
0

Re: How to set the locale on admin pages? - for Hebrew

I think that I was a little bit late :blush:.
Anyway, I'm glad you find it.