G1 - mixed translation
Andy77
Joined: 2006-03-08
Posts: 2 |
![]() |
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) 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? |
|
Tim_j
![]()
Joined: 2002-08-15
Posts: 6818 |
![]() |
DAMN, open albums.php 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 |
|
Andy77
Joined: 2006-03-08
Posts: 2 |
![]() |
Thanks, this worked out good! Same error in view_album.php in lines 775, 798 and 801. |
|
Tim_j
![]()
Joined: 2002-08-15
Posts: 6818 |
![]() |
Same solution ;) Jens |
|
Yuan
Joined: 2003-12-03
Posts: 144 |
![]() |
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: 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
![]()
Joined: 2002-08-15
Posts: 6818 |
![]() |
Hello Yuan, Thats the reason i didnt release a language Pack. I would be glad to get an update Jens |
|
Yuan
Joined: 2003-12-03
Posts: 144 |
![]() |
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
![]()
Joined: 2002-08-15
Posts: 6818 |
![]() |
Please email it to me. -> jens AT peino DOT de Jens -- |
|