Translation de_DE problems at startpage
|
joern42
Joined: 2008-08-13
Posts: 17 |
Posted: Wed, 2008-08-13 09:27
|
|
Hi, some translations work at the startpage, others do not... e.g. "Angelegt am 13.08.2008, letzte Änderung am 13.08.2008. This album contains 1 item. The code looks good: -> /galerie/locale/de_DE-gallery_core.po +587 -> /galerie/albums.php echo gTranslate('core', Gallery URL: http://www.sobota-naturfoto.de/galerie/ Has somebody a clue? regards and thanks, joern42 |
|

Posts: 6811
de Translation 1.5.8 is not released. And 1.5.7 translation is not sufficient.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
Hi Tim_j,
yes, that was the problem.
I just changed the de_DE-gallery_core.po
line 586 to "#: ../albums.php:471"
line 593:
#: ../albums.php:488
#, php-format
msgid "This album has been viewed 1 time since %s."
msgid_plural "This album has been viewed %d times since %s."
msgstr[0] "Dieses Album wurde 1 mal angeschaut seit dem %s."
msgstr[1] "Dieses Album wurde %d mal angeschaut seit dem %s."
and albums.php line 489-490 to
"This album has been viewed 1 time since %s.",
"This album has been viewed %d times since %s.",
and ran " sh ../po/make_mo_files.sh -po de_DE" in the dir /galerie/locale and ran a apachectl graceful.
now its working, thanks for your help
regards, joern
Posts: 17
Hi again,
this was too fast.. its not working, or better to say, sometimes its working, sometimes not... i hate it, if such a thing happens..
if i make a "apachectl graceful", it works for exactly 1 time, if i (shift-) click reload (firefox 2.0.0.14, windows), its in english again... arghhhhh
do you have an explanation for this behaviour?
regards, joern
Posts: 6811
Hi,
yes. Its simply a caching issue. Either your apache, or your browser.
Btw: A 100% 1.5.8 de_DE langpack is available from http://jems.de/archive/1.5.8/langpacks
After releasing 1.5.8-pl1 i'll put it also on sourceforge.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
Hi,
thanks for the url.
its not a browser caching thing.. i can restart firefox and have the same effect, i can press ctrl-shift-r .
so it must be an apache issue.. but i kill apache completly so its not in memory (ps aux |grep apache).
the first time its working, but on reload its not... ?? does apache / php have some caching files on the disk that i could remove?
thanks again + regards, joern
Posts: 17
me again,
i just looked in my php.ini, there are some caching / session files in /tmp and the timout is 180 minutes... so i will take a look later (there are more customers on this machine and i dont want to destroy their sessions..)
/joern
Posts: 17
hi,
i think its a problem with my php4 apc settings:
zend_extension=/usr/lib/php4/extensions/zend/php_apc.so
apc.mode=shm
apc.check_mtime=1
if i dont use apc, its working fine with reload.
if i use apc, its working one time and then i have the old translation...
do you have a hint howto clear the shared memory apc is using?
omg, i thought i would install gallery within 1 hour or so... ;-)
regards, joern
ps: i found apcinfo.php, but if i delete the regarding keys it does not work... ?
edit: i will simply reboot the vserver at night, seems to be the easiest way.. ;)
Thank you very much for your help!!
Posts: 6811
REBOOT? Kanonen, wenn nicht Flugzeugträger auf Spatzen!
You can either let the cache expire, or delete the apc files, or use the apc.php webfrontend to delete the cache.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
Viel hilft viel ;-)
Posts: 17
hmpf, rebooting didnt fix it
i really hate php...
Posts: 6811
Here its english all the time.
Are you using my langpack?
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 6811
I use also APC and have no problems at all.
But my PHP is newer and my APC also.
PHP 4.1.2 is ...OLD ;-)
Version 4.1.2
27-Feb-2002
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
yes, i think i will move it to a newer system.. but not tonight.
i will be back tomorrow, good night 8-}
Posts: 17
so, i changed the system to debian etch 4.0 with php5...
but i also changed the gallery version to 2.3.5..
installation was pretty simple, but i didnt test it.. and i wont test it, but my collegue )
regards, joern
Posts: 6811
Have fun with Gallery 2 then.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
thanx..
my job is the installation, but im using gallery 1.5.? on my private pages, debian 3.1.. installation was no problem at all, so i was really confused with the errors i had with this installation...
anyway, thanx a lot again, you guys are doing a great job with gallery1 and probably with gallery2 (which i dont know)
regards, joern
Posts: 6811
I have also no idea about G2.
I am sure if the cache expires, then your Gallery will be fully in german.
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 17
the neverending story....
> ICH komme (nach ca. 1 h Einarbeitung) mit der 2er-Version klar. Aber
> darum geht es nicht. Es geht darum, dass Herr xyz damit klarkommt.
> Und ich denke, dass die alte Version an mehreren Stellen
> benutzerfreundlicher und übersichtlicher ist als die neue.
so, i installed 1.5.8 again ...