LOCALES problem! Solution?!

joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Thu, 2004-10-07 15:39

Hi!
I have BIG problems with language packs! If i choose any of the installed locales, it ONLY changes PARTS of the text. What can be the problem? I use gettext.
Any help would be very thanksfull.

----
Gallery URL (optional but very useful): http://wgallery.site.hu
Gallery version: 1.4.4
PHP version: 4.1.2
Operating system: debian

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2004-10-08 05:06

Probably because the Hungarian translation is terribly out of date!

cf. http://gallery.menalto.com/modules/GalleryDocs/g1/localization.html

If you would like to help out with translation, please visit the Translation forums. We could use all the help we can get.

-Beckett (

)

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2004-10-08 05:07

Moving to translation forum for better visibility.

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Fri, 2004-10-08 07:14
beckett wrote:
Probably because the Hungarian translation is terribly out of date!

NO!
It happens with ALL of the locales, .DE for example, etc.! :(

It should be something gallery/system specified problem/bug :(

But i found this error with couple of gallery users, posting all around the net, and no solution anywhere..
what the heck :(

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2004-10-08 07:27

HI

WHY DO YOU USE CAPITALS ?
_i_ personally dont like the use.
it make me think that YOUR problem is the BIGGEST. and YOUR gallery does NOT WORK at all. and Gallery coder are DUMP or something.

Okay, lets calm done.

You use Gallery 1.4.4.
But e.g. your de_DE langpack is 1_4_5-cvs

I suggest you use Gallery 1.4.4-pl2 with langpacks for 1.4.4-pl2.
On http://www.jems.de/gallery-1.4.4/tools/g1-report.php
you can see the Status of Gallery 1.4.4 translations.

Another thing is that you use PHP prior 4.2.0 (4.1.2)
The problem ist that PHP 4.1.2 does not support ngettext, which handles the new plurals in 1.4.4 and later.
I wrote a substituion function but in 1.4.4 is a bit poor as it only works for plural forms that are similar to english.
Othe languages, e.g. hungarian, chinese or russian use different plural (or no plural at all).
So in this cases the translation is still in english.

I hope this helps you.

Regards,

Jens

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Fri, 2004-10-08 10:01
Tim_j wrote:
You use Gallery 1.4.4.
But e.g. your de_DE langpack is 1_4_5-cvs

I suggest you use Gallery 1.4.4-pl2 with langpacks for 1.4.4-pl2.
On http://www.jems.de/gallery-1.4.4/tools/g1-report.php
you can see the Status of Gallery 1.4.4 translations.

Another thing is that you use PHP prior 4.2.0 (4.1.2)
The problem ist that PHP 4.1.2 does not support ngettext, which handles the new plurals in 1.4.4 and later.
I wrote a substituion function but in 1.4.4 is a bit poor as it only works for plural forms that are similar to english.
Othe languages, e.g. hungarian, chinese or russian use different plural (or no plural at all).
So in this cases the translation is still in english.
Jens

1. The problem exists with 1.4.4-pl2 language packs too (an other installation)
2.So I should update php on the system to >1.4.2..
Im gonna try this.
thanks in advance

(sorry for capitals, but this "bug" was very flustsrating now:)

 
joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Fri, 2004-10-08 10:04
Tim_j wrote:
HI

WHY DO YOU USE CAPITALS ?
_i_ personally dont like the use.
it make me think that YOUR problem is the BIGGEST. and YOUR gallery does NOT WORK at all. and Gallery coder are DUMP or something.

Okay, lets calm done.

You use Gallery 1.4.4.
But e.g. your de_DE langpack is 1_4_5-cvs

I suggest you use Gallery 1.4.4-pl2 with langpacks for 1.4.4-pl2.
On http://www.jems.de/gallery-1.4.4/tools/g1-report.php
you can see the Status of Gallery 1.4.4 translations.

Another thing is that you use PHP prior 4.2.0 (4.1.2)
The problem ist that PHP 4.1.2 does not support ngettext, which handles the new plurals in 1.4.4 and later.
I wrote a substituion function but in 1.4.4 is a bit poor as it only works for plural forms that are similar to english.
Othe languages, e.g. hungarian, chinese or russian use different plural (or no plural at all).
So in this cases the translation is still in english.
Jens

1. The problem exists with 1.4.4-pl2 language packs too (another installation)
2.So i should update to php >4.2.0..i'm gonna try this.,.
thanks in advance

(0.sorry for capitals, this "bug" was very annoying, though tried everything to figure out what the hell can be..for long time now)

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2004-10-08 10:56

Hi,

yes, try to update to update to >= 4.2.0, with gettext.
Using a new Version without gettext would result in the same.

If you cant upgrade, then you need to wait till 1.4.5. I will make a better substitution for ngettext ;)

if you could upgrade, but it still does not work, please write again here.

For testing Gallery in Magyar go to http://www.jems.de/gallery-1.4.4/?newlang=hu_HU
Login as gallery/gallery.

Regards,

Jens

 
henkabma

Joined: 2002-12-13
Posts: 15
Posted: Wed, 2004-10-13 13:36

Hello,
maybe it doesn't belong here, bu although I use php 4.3.9 and gallery 1.4.4-PL@ with latest lang pack for dutch I have strange translation
problems that I can't explain. e.g. 'This albums has been viewed 3 times' is translated in the PO file as:
'Dit album is %s bekeken' However when viewing my gallery the entire word 'bekeken' is lost. You can view it at: http://brankie.xs4all.nl/klokhuiscrea/gallery/index.php

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Wed, 2004-10-13 15:19

Hello henkabma,

it looks like a cache problem on serverside or something. Or maybe something with Virtual Hosts. Because after reloading a few times it works fine here.

Jens

 
henkabma

Joined: 2002-12-13
Posts: 15
Posted: Thu, 2004-10-14 06:03
Tim_j wrote:
Hello henkabma,

it looks like a cache problem on serverside or something. Or maybe something with Virtual Hosts. Because after reloading a few times it works fine here.

Jens

Hello Jens,
after reloading it several more times, the problem reappeared. In the end I discovered that I was running php 4.3.8, because I hadn't restarted apache after installing 4.3.9.
After recompiling turck-mmcache for php 4.3.9 and restarting apache, everything seems fine all the time.
Thanks!
Henk,