[Translation error: Array ( [one] => (%d item total) [many] => (%d items total) [count] => [arg1] => ) ] after installing Ebony

Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Mon, 2008-06-09 19:47

Obviously this problem is not yet solved, as I admittedly could find some postings, but any solution.

This message is shown under some, not all, thumbs:

[Translation error: Array ( [one] => (%d item total) [many] => (%d items total) [count] => [arg1] => ) ]

The error seems to have something to do in all likelihood with (or to be caused by) the theme "Ebony" - http://gallery.menalto.com/node/74978 - I just installed, I had have never before. After switching to another theme immediatly after the installation of "Ebony", e.g. "Matrix" the error message was displayed (not before, so not while "Ebony" was activated and any time while "Ebony" is activated) under some thumbs. Switching back to "Ebony" the error, respectivly the error message disappeared, switching to another theme the message was displayed, again.

Nice greetings, Dirk.

P.S. For verifying I have tried to reconstruct the error: I installed on another fresh Gallery installation the "Ebony" theme without its modules and all seems to work. After installing then the themes modules the error occurred immediately.

-----------

Gallery version 2.2.4 / full package
PHP version 5.2.6 apache2handler
Webserver Apache
Database mysqlt 5.0.51a-community-log
Toolkits Thumbnail, Gd
Operating system Linux dd5036 2.6.24.4-nmm2 #2 SMP Tue Apr 15 18:13:27 CEST 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

---------


Gallery-Version = 2.2.4 Kern 1.2.0.6
PHP-Version = 5.2.6 apache2handler
Webserver = Apache
Datenbank = mysqlt 5.0.51a-community-log, lock.system=flock
Werkzeuge = Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Beschleunigung = none/900, none/900
Betriebssystem = Linux dd5036 2.6.24.4-nmm2 #2 SMP Tue Apr 15 18:13:27 CEST 2008 i686
Standard-Motiv = matrix_dirk
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Zeilen in der GalleryAccessMap Tabelle = 96
Zeilen in der GalleryAccessSubscriberMap Tabelle = 18
Zeilen in der GalleryUser Tabelle = 3
Zeilen in der GalleryItem Tabelle = 16
Zeilen in der GalleryAlbumItem Tabelle = 7
Zeilen in der GalleryCacheMap Tabelle = 0

----------------------------------
www.galerie-der-fotos.de

 
squibly

Joined: 2008-05-11
Posts: 2
Posted: Fri, 2008-06-13 02:57

I had the same problem having swapped from Ebony to Carbon - however have just found my answer from http://gallery.menalto.com/node/75956

Quote:
valiant : Posted: Thu, 2008-03-27 23:44
your case is clear. you've caused the error yourself by editing the ItemInfo.tpl in your modules/core/templates/blocks/local/ folder.
i've renamed your customized ItemInfo.tpl file, thus deactivated your customization and voila, it works again.

Although I had not edited ItemInfo.tpl ever there is was located in modules/core/templates/blocks/local/. I changed the filename and the error was gone - so I deleted it.

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Fri, 2008-06-13 09:00

Many thanks, squibly,

Unbelivable: I had red this - http://gallery.menalto.com/node/75956 - posting you refer to, but as I had done any modifications on ItemInfo.tpl I hadn't mind it.

The file name of my ItemInfo.tpl was not changed; I found some lines different to the ones in another ItemInfo.tpl file and replaced these lines

Quote:
{if !empty($showSize)}
<div class="size summary">
{*
{g->text one="Size: %d item"
many="Size: %d items"
count=$item.childCount
arg1=$item.childCount}
*}

{g->text one="(%d item total)"
many="(%d items total)"
count=$item.descendentCount
arg1=$item.descendentCount}

with

Quote:
{if !empty($showSize) && $item.canContainChildren && $item.childCount > 0}
<div class="size summary">
{g->text one="Size: %d item"
many="Size: %d items"
count=$item.childCount
arg1=$item.childCount}
{if $item.descendentCount > $item.childCount}
{g->text one="(%d item total)"
many="(%d items total)"
count=$item.descendentCount
arg1=$item.descendentCount}
{/if}

and it seems to work, the displaying below the thumbs are as they were before.

So, I guess better not to use the theme "Ebony" anymore.

Thank you very much for your help, indeed, Dirk.

----------------------------------
www.galerie-der-fotos.de

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-06-13 15:26

Just tying to understand....
Did the Ebony theme come with a ItemInfo.tpl file?
How did the file change if you did not change it?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Dirkii

Joined: 2008-01-16
Posts: 214
Posted: Fri, 2008-06-13 15:51

Hallo Dave.

Quote:
Did the Ebony theme come with a ItemInfo.tpl file?

Let me see...ah, yes, I have found one here: Ebony_English\modules\core\templates\blocks\local\ItemInfo.tpl

Quote:
How did the file change if you did not change it?

Hmm, I have no idea, but as a anti-expert I assume "Ebony" will / must have done it / caused it somehow...or may be there is or must be another way...I mean not to have done anything on purpose to change this file, I hadn't even never noticed it...

Nice greetings, Dirk.
----------------------------------
www.galerie-der-fotos.de

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-06-13 16:50

In G2.3 themes can change core and other modules template files.
But they are added differently in the theme files and are not added as this theme has done.
starting in Gallery 2.3, themes are able to override module tpl files.: http://codex.gallery2.org/Gallery2:Editing_Templates

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team