Problem using other languages

kaupanger
kaupanger's picture

Joined: 2005-04-20
Posts: 17
Posted: Tue, 2005-11-15 09:18

Hi,

yesterday I installed Gallery 2.0.1. Because I'm Dutch I used the Dutch language pack during installation. All went OK. However when I use the LanguageSelector dropdown-list and I select another language (e.g. German) I get the original English translation. This is also the case when I select other languages. So only the English and the Dutch languagepacks seem to work.
I have debugged the problem. You can see a part of the result below. The de_DE.po-file and the de_DE directory are present in /modules/core/.
Does anyone have an idea how to solve this problem?

getParameter permissions.file for core plugin file_exists(/home/hassing-online.nl/www/gallery/foto/cache/module/core/0/0/0.inc) file_exists(/home/hassing-online.nl/www/gallery/foto/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator file_exists(/home/hassing-online.nl/www/gallery/foto/sessions/8268c12c9033b3f759f25f4449926f59) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin stat(/home/hassing-online.nl/www/gallery/foto/sessions/8268c12c9033b3f759f25f4449926f59) file_exists(/home/hassing-online.nl/www/gallery/foto/sessions/8268c12c9033b3f759f25f4449926f59) getParameter cookie.domain for core plugin getParameter cookie.path for core plugin Warning: Unable to select locale de_DE Loading plugin core Class not defined, trying to include it. file_exists(/home/hassing-online.nl/www/gallery/modules/core/classes/helpers/../../../../modules/core/module.inc) realpath(/home/hassing-online.nl/www/gallery/modules/core/classes/../../..) Binding text domain: modules_core -> /home/hassing-online.nl/www/gallery/modules/core/locale core plugin successfully instantiated file_exists(/home/hassing-online.nl/www/gallery/foto/versions.dat) file(/home/hassing-online.nl/www/gallery/foto/versions.dat, ) [1132044184] can't guarantee 5 -- extending! file_exists(/home/hassing-online.nl/www/gallery/foto/cache/entity/0/0/5.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/home/hassing-online.nl/www/gallery/foto/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/home/hassing-online.nl/www/gallery/modules/core/classes/../../../modules/core/ChangeLanguage.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok rename(/home/hassing-online.nl/www/gallery/foto/sessions/8268c12c9033b3f759f25f4449926f59WrXG3d, /home/hassing-online.nl/www/gallery/foto/sessions/8268c12c9033b3f759f25f4449926f59)

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.0 apache
Webserver = Apache release 10333100
Database = mysql 4.0.25-log
Toolkits = Exif, NetPBM
Operating system = Linux web03 2.6.11.11-pcx-web-opteron-lvs-rsbac #1 SMP Mon Jul 18 12:13:48 CEST 2005 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.7.12) Gecko/20050919 Firefox/1.0.7

 
kaupanger
kaupanger's picture

Joined: 2005-04-20
Posts: 17
Posted: Tue, 2005-11-15 13:46

I've found this on the Gallery2 FAQ pages: I changed the language but nothing happens, what's wrong? (See below). This means that other languages will not be available if the system doesn't support them. My question now is: are there possibilities to use the locale-files of other languages. In Gallery1 this is possible; in g1 you can assign one locale to several different languages.

__________________________________
G2 depends on the system it runs on to switch to other languages than English. G2 needs php with gettext support and each language you want to switch to in G2 needs to be installed on your system. If you have command line access (ssh / telnet) to the (unix, linux) server, you can query for supported languages by `locale -a`. If only "C/POSIX" is returned, no other languages are supported and you need to reconfigure the locales and then restart apache. When configuring locales on your system, choose languages in ISO format, e.g. de_DE and not languages in UTF8 format, e.g. de_DE.utf8.

Link: http://codex.gallery2.org/index.php/Gallery2:FAQ#I_changed_the_language_but_nothing_happens.2C_what.27s_wrong.3F