Hi! On Wed, Jan 18, 2006 at 10:19:46PM +0100, Jesus Climent wrote: > > A patch sent to the debian BTS, if it is interesting... > > --- Gallery.pm.orig 2005-09-16 10:52:59.000000000 +0200 > +++ Gallery.pm.pot 2006-01-18 17:32:00.000000000 +0100 > @@ -354,11 +354,13 @@ sub handler { > $filetype = "unknown"; > } > > + my $filetitle = $file; > + $filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces'); In my rewritten version of A:G http://freshmeat.net/projects/fastcgigallery/ (hacked for usage with FastCGI scripts), I have implemented another features in filename mangling. The code works as follows: $filetitle =~ s/_/ /g; $filetitle =~ s/--/ - /g; $filetitle =~ s/~/ /g; The code (I'm using Template Toolkit template system) is here: http://platon.sk/cvs/cvs.php/web-apps/fastcgi-gallery/_modules/templates.pm (lines 63-70). Maybe this feature can be reimplemented in A:G, because some long names in gallery can look as on the example (my private gallery, see screenshot). Best regards, rajo -- Lubomir Host 'rajo' <rajo AT platon.sk> ICQ #: 257322664 ,''`. Platon Group http://platon.sk/ : :' : Homepage: http://rajo.platon.sk/ `. `' http://www.gnu.org/philosophy/no-word-attachments.html `-
Attachment:
apache-gallery-screenshot.png
Description: PNG image