G1 - mixed translation

Andy77

Joined: 2006-03-08
Posts: 2
Posted: Wed, 2006-03-08 11:30

I recently installed G1 for the first time and i'm experiencing some problems with the installed languagepacks. When choosing german most of the overview albums show mixed translation like

Quote:
Created on 06.03.2006, last changed on 07.03.2006. Dieses Album enthält 135 Elemente

But when i allow zip-archive-downloading the translation is ok:

Quote:
Angelegt am 06.03.2006, letzte Änderung am 07.03.2006. Dieses Album enthält 102 Elemente

Same if i'm logged in as administrator.

Other statements, like when looking at subalbum summarys are always untranslated (logged in or not)

Quote:
(highlight)
Album: 20. Hasslocher Schachtage 2005 Download entire album as archive
Last change: 07.03.2006
Contains: 55 Elemente

Other languages (french, dutch, polish) fail the same way.

I am using Gallery 1.52-pl2 and de-DE 1.5.2. I've looked through the .po-files and the mentioned statements are translated. Any idea?

Link to my gallery

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-03-08 13:01

DAMN,

open albums.php
find

 if($creationDate) {
                printf(_("Created on %s, last changed on %s."), $creationDate, $lastModifiedDate);
        }

Change to

 if($creationDate) {
                printf(gTranslate('core', "Created on %s, last changed on %s."), $creationDate, $lastModifiedDate);
        }

Jens
--
Last Gallery v1 developer and translation manager.

 
Andy77

Joined: 2006-03-08
Posts: 2
Posted: Wed, 2006-03-08 13:22

Thanks, this worked out good!

Same error in view_album.php in lines 775, 798 and 801.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2006-03-08 14:22

Same solution ;)

Jens
--
Last Gallery v1 developer and translation manager.

 
Yuan

Joined: 2003-12-03
Posts: 144
Posted: Thu, 2006-03-09 09:07

Thanks a lot, Tim_j. I've been struggling for three days since upgrading to 1.5.2, trying to get my zh_CN translation to work. (Much worked in 1.4.4.) Only tonight I went into the PHP source and suspected problem. (To verify, I installed zh_TW, fr_FR.)

In addition to that line, there are others I noticed:
view_album.php" line 782
view_album.php" line 817

Strangely, the one reported in albums.php line 422 does not show up in zh_TW stock language pack, nor in my zh_CN translation. (I made suggested change anyway - didn't seem to hurt.)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-03-09 09:32

Hello Yuan,
The zh_CN translation is VERY outdated and incomplete.
See http://jems.de/gallery-1.5.2/tools/g1-report.php

Thats the reason i didnt release a language Pack.
You can download the latest Version of zh_CN pack from http://jems.de/archive/1.5.2/langpacks/

I would be glad to get an update :) :)

Jens
--
Last Gallery v1 developer and translation manager.

 
Yuan

Joined: 2003-12-03
Posts: 144
Posted: Thu, 2006-03-09 10:21

Jens,

Here's an interim zh_CN update for 1.5.2pl2 gallery_core. It probably attained 90% coverage, although I'm only 70% satisfied. I notice that zh_TW's still has lots of 1.5-specific blanks due to version change but mine is not a good base to fill them, because of wording habits. I'll try to get at least 100% coverage in core, then work on common, and lastly on config.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-03-09 10:37

Please email it to me. -> jens AT peino DOT de

Jens
P.S.: Try to avoid hijacking other peoples thread :)

--
Last Gallery v1 developer and translation manager.