Help i can install french language ?

jacqueslevert
jacqueslevert's picture

Joined: 2003-10-23
Posts: 14
Posted: Thu, 2009-10-01 10:15

Hello, could you help me to install french language on my Gallery2. I have selected French language in the Admin (language settings) and (multilanguage). I also have read the support and i have upgrade the module language but it doesn't work. (http://codex.gallery2.org/Gallery2:Language_Settings)

I give you my msn adress : jacqueslevert(at)hotmail.com for your help.

Thanks you very much.

Jacques.

 
xxstarline

Joined: 2005-11-19
Posts: 1
Posted: Thu, 2009-11-26 15:08

Well here is a workaround, wich helped me solve the exact same problem.
I couldn't switch the Gallery to german so i digged deeper for about a complete day to solve this.

I wrote this peace of code to make it work, because my language needed @euro wich gallery2 didn't respect.

Maybe you need the same fix.
Find this file: [gallerydir]/modules/core/classes/GalleryTranslator.class

at the _setlocale function (wich should be at line 326) i added these lines:

Quote:
function _setlocale($category, $locale) {
global $gallery;

//hack by Dennis Decker
//German Lang needs @euro after de_DE what so ever....
if( $locale == 'de_DE' ){
$locale = $locale.'@euro';
}

...

so whenever I select my language it adds the @euro to the $locale var and that was it.

btw my system infos:

Quote:
Gallery-Version = 2.3 Kern 1.3.0
API = Core 7.54, Modul 3.9, Motiv 2.6, Eingebettet 1.5
PHP-Version = 4.4.4-8+etch4 apache2handler
Webserver = Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch4 mod_ssl/2.2.3 OpenSSL/0.9.8c
Datenbank = mysqlt 5.0.32-Debian_7etch1, lock.system=database
Werkzeuge = Gd, Exif
Beschleunigung = none/0, none/0
Betriebssystem = Linux webserver 2.6.8-3-686-smp #1 SMP Tue Dec 5 23:17:50 UTC 2006 i686
Standard-Motiv = matrix
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Zeilen in der GalleryAccessMap Tabelle = 12
Zeilen in der GalleryAccessSubscriberMap Tabelle = 1
Zeilen in der GalleryUser Tabelle = 2
Zeilen in der GalleryItem Tabelle = 1
Zeilen in der GalleryAlbumItem Tabelle = 1
Zeilen in der GalleryCacheMap Tabelle = 0