First I have to say that the new v2 is stunning sweet
After migrating (without a hinch) almost 6000 photos which took me about 30 minutes everything is operating smoothly now.
Okay, to the point: An album contains 2 items, but is being translated as single (in dutch, 2 item -> which should be 2 items).
The po-mo file it says:
msgid "(album containing %d item)"
msgid_plural "(album containing %d items)"
msgstr[0] "(album bevat %d item)"
msgstr[1] "(album bevat %d items)"
As far as I can see this is all right, but he still takes the [0].
1st Am I looking in the wrong direction, or is it something else?
2nd How can I fix it?
Gallery versie = 2.0 core 1.0.0
PHP versie = 4.1.2 apache
Web server = Apache
Database = mysql 4.0.20-standard
Toolkits = ArchiveUpload, Exif, NetPBM
Besturingssysteem = Linux stripples.devel.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 i686 unknown
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Posts: 32509
works in english, french and german, so it probably is a translation / translator error.
or your gettext doesn't work correctly.
i can't test nederlands, since i don't have it installed.
Posts: 6
Hmm, tried several versions of gettext now and other languages (almost lost site-admin in russian, haha) but no effect. I also sneeked back to gallery v1.5, which does know the difference between 1 item and 2 items :S
Guess the gettext part does work, but not in v2
Posts: 32509
did you try french or german? do they display the plural correctly?
Posts: 6
Tried several languages (dutch, uk, us, french, german, russian) they all don't work right.
But I found something else: The Themes have a different way of showing the total of photos inside an album.
examples:
The Matrix theme [album.tpl] (this one doesn't work)
{g->block type="core.ItemInfo"
item=$child
showDate=false
showOwner=$showOwner
showSize=true
showViewCount=false
showSummaries=true
class="giInfo"}
------
The Seriux Theme [album.tpl] (DOES work)
<div class="meta">
{if ($child.childCount > 0)}
{g->text text="%d Images" arg1=$child.descendentCount}
{/if}
</div>
----
I can't find the block of code Matrix has in Seriux.
It works when I paste the code from Seriux in Matrix, but since my knowledge of VB isn't going to help me here, I can't find a way to combine it and make everything look as 'cool' as it supposed to be
Could anyone give me a hint ?
Posts: 32509
modules/core/templates/blocks/ItemInfo.tpl
and that's the correct way for doing it. it works.
if it doesn't work for you, it's your gettext.