ОКРЕСТНОСТИ ПЕТЕРБУРГАПутеводители Карты Краеведение Военная история Фотогалерея    Старый сайт
Начало » неГлавный » О сайте и форуме » CMS для сайта ?
Zenphoto and locale :) [сообщение #80168 является ответом на сообщение #80106] ср, 12 августа 2009 16:19 Переход к предыдущему сообщенияПереход к предыдущему сообщения
alexsvar
Пока воюю с локализацией zenphoto. Вылез недокументированный баг, лечить который, похоже, не умеют даже разработчики.

update: похоже, что причина проблемы найдена.

alexsvar
Цитата:

Hi!

Installed zenphoto version 1.2.3 [3427]

Switch languages in the "Admin - Options - Gallery configuration - Language" to any other (Italian, French). In the gallery language switches and displays fine, but the admin panel is ONLY in English.

When installing -
PHP gettext () support - OK
PHP mbstring package - OK

How can I see other (non-English language) in admin panel?



acrylian
Developer
Цитата:

Actually that should switch the languages. Anyway, you should upgrade to the recent 1.2.6 release.



alexsvar
Цитата:

Ugrade to version 1.2.6...

Switch language: Gallery displays a new language, but in the admin panel only English



acrylian
Developer
Цитата:

Please read: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#24


alexsvar
Цитата:

Yes, I read it yesterday.

I do not have bugs, gettext() - enabled, switch the language in the gallery.
All excellent.
Not only switches the language in the admin panel.

What is the difference of language to display the gallery and admin panel?



acrylian
Developer
Цитата:

Well, some themes feature a language selector if the plugin is enabled. That is independend from the backend that has its own selector.



alexsvar
Цитата:

I'm using the default theme.
Non-English language does not appear even when you run setup.php

This is not a problem of mysql?
Incorrect setting of the site?



acrylian
Developer
Цитата:

Have you tried the locale check script from the troubleshooting post? What did it say? The languages have nothing to do with mysql in this case. Have you tried checking the option for using sessions instead of cookies?



sbillard
Chief Developer
Цитата:

There are only a few sources of language not working.

gettext() support is missing as reported by setup

locale functionality does not work on your server. I believe this is also reported by setup.
You have used HTTP Select language set and your browser is reporting the wrong language preference



alexsvar
Цитата:

to acrylian
The locale check script shows the data, meaning that I do not understand:
-------------------------------
Http Accept Languages:
Key code coef morecode fullcode
1.0-ru ru 1.0 ru
0.7-en en 0.7 us en_us
0.3-en en 0.3 en

Supported locales:
-------------------------------

Switches use sessions or cookies - the same result.

to sbillard

function gettext() is supported by my server :

-----------------------------
Systems Check:
PHP version 4.4.8 - Warning! Version 5.2 or greater is strongly recommended.
PHP Safe Mode [is set] - Warning! Zenphoto functionality is reduced when PHP safe mode restrictions are in effect.
PHP magic_quotes_gpc
Graphics support: PHP GD library bundled (2.0.28 compatible)
PHP gettext() support
PHP mbstring package
PHP MySQL support
--------------------------

During installation, it was a warning.
--------------------------
PHP mbstring package Your internal characater set is ISO-8859-1
Warning!
--------------------------

It is fixed on the recommendation
--------------------------
Setting mbstring.internal_encoding to UTF-8 in your php.ini file is
recommended to insure accented and multi-byte characters function properly.
--------------------------

Now set "HTTP Accept Language". No errors and changes.
Сheck in FireFox and MSIE.

On another server without the support of gettext () and utf-8 in mysql. Everything is working almost perfectly in versions 1.2.1, 1.2.2, 1.2.3
See https://www.aroundspb.ru/tmp/zen.jpg

While I can not understand the difference in the settings of these two servers.



sbillard
Chief Developer
Цитата:

The bit you do not understand tells you that your browser prevers (in prioirty order) Russian, US English, then any English. We do not have a Russian translation of Zenphoto, so the only language to be selected by HTTP Accept Languages is English. Likewise, if you have downloaded the Russian translation from the TRAC you need to understand that it is completely out of date, so very little of Zenphoto will be translated.

Perhaps you would be willing to make the Russian translation? If so, please see http://www.zenphoto.org/support/topic.php?id=3184



alexsvar
Цитата:

Russian translation Zenphoto performed at 53% for the version 1.2.1 (works in version 1.2.2).
Link to the page author's translation: http://www.1nc.ru/blog/2008/11/russkiy-perevod-zenphoto-121- 53/

I want to work with version 1.2.3. In this version there is no excess additions (for me), and it fits well with the capabilities of my hosting.

I checked the script "list_locales" for the site, where everything works fine.
Answer:
------------------------------
Http Accept Languages:
Key code coef morecode fullcode
1.0-ru ru 1.0 ru
0.7-en en 0.7 us en_us
0.3-en en 0.3 en

Supported locales:
C
POSIX
af_ZA.ISO8859-1 af_ZA.ISO8859-15 af_ZA.UTF-8
am_ET.UTF-8
...
ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5 ru_RU.KOI8-R ru_RU.UTF-8
...
zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK zh_CN.UTF-8 zh_CN.eucCN zh_HK.Big5HKSCS zh_HK.UTF-8 zh_TW.Big5 zh_TW.UTF-8
---------------------------------
I understand that the problem of my bugs to another site because of the lack of "Supported locales: ru_RU.UTF-8"?



 

[Обновления: чт, 13 августа 2009 11:02]

Известить модератора

 
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Сообщение не прочитано
Предыдущая тема: Пара косяков на форуме
Следующая тема: Карта виновата?
Переход к форуму:
  


Текущее время: пт дек #d 11:04:11 MSK 2024