Change underscores to spaces for images too (Closes: #348724)
git-svn-id: file:///srv/don_svn/deb_pkgs/libapache-gallery-perl/trunk@559 8f7917da-ec0b-0410-a553-b9b0e350d17e
Don Armstrong
12 years ago
1 | 1 |
$Date: 2011-02-22 21:56:06 +0100 (Tue, 22 Feb 2011) $
|
2 | 2 |
|
3 | 3 |
Revision history for Perl extension Apache::Gallery.
|
|
4 |
|
|
5 |
1.0.2~1 Tue Mar 15 03:08:57 CET 2011
|
|
6 |
|
|
7 |
- Extended GalleryUnderscoresToSpaces to filenames as well.
|
|
8 |
(Debian bug #348724, Francesco Potortì)
|
4 | 9 |
|
5 | 10 |
1.0.1 Wed Feb 23 20:45:38 CET 2011
|
6 | 11 |
|
234 | 234 |
|
235 | 235 |
GalleryUnderscoresToSpaces
|
236 | 236 |
Set this option to 1 to convert underscores to spaces in the listing
|
237 | |
of directory names.
|
|
237 |
of directory and file names, as well as in the alt attribute for HTML
|
|
238 |
<img> tags.
|
238 | 239 |
|
239 | 240 |
GalleryCommentExifKey
|
240 | 241 |
Set this option to e.g. ImageDescription to use this field as comments
|
0 | |
libapache-gallery-perl (1.0.1-1) UNRELEASED; urgency=low
|
|
0 |
libapache-gallery-perl (1.0.1-1) unstable; urgency=low
|
1 | 1 |
|
2 | 2 |
* New upstream release
|
|
3 |
* Change underscores to spaces for images too (Closes: #348724)
|
3 | 4 |
|
4 | |
-- Don Armstrong <don@debian.org> Wed, 16 Mar 2011 08:59:31 -0700
|
|
5 |
-- Don Armstrong <don@debian.org> Wed, 28 Sep 2011 12:34:55 -0700
|
5 | 6 |
|
6 | 7 |
libapache-gallery-perl (0.99-svn060811-1) unstable; urgency=low
|
7 | 8 |
|
384 | 384 |
$filetype = "unknown";
|
385 | 385 |
}
|
386 | 386 |
|
|
387 |
# Debian bug #348724 <http://bugs.debian.org/348724>
|
|
388 |
# not images
|
|
389 |
my $filetitle = $file;
|
|
390 |
$filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
|
|
391 |
|
387 | 392 |
$tpl_vars{FILES} .=
|
388 | 393 |
$templates{file}->fill_in(HASH => {%tpl_vars,
|
389 | 394 |
FILEURL => uri_escape($fileurl, $escape_rule),
|
390 | 395 |
ALT => "Size: $size Bytes",
|
391 | |
FILE => $file,
|
|
396 |
FILE => $filetitle,
|
392 | 397 |
TYPE => $type,
|
393 | 398 |
FILETYPE => $filetype,
|
394 | 399 |
}
|
|
407 | 412 |
my $cached = get_scaled_picture_name($thumbfilename, $thumbnailwidth, $thumbnailheight);
|
408 | 413 |
|
409 | 414 |
my $rotate = readfile_getnum($r, $imageinfo, $thumbfilename.".rotate");
|
|
415 |
|
|
416 |
# Debian bug #348724 <http://bugs.debian.org/348724>
|
|
417 |
# HTML <img> tag, alt attribute
|
|
418 |
my $filetitle = $file;
|
|
419 |
$filetitle =~ s/_/ /g if $r->dir_config('GalleryUnderscoresToSpaces');
|
|
420 |
|
410 | 421 |
my %file_vars = (FILEURL => uri_escape($fileurl, $escape_rule),
|
411 | |
FILE => $file,
|
|
422 |
FILE => $filetitle,
|
412 | 423 |
DATE => $imageinfo->{DateTimeOriginal} ? $imageinfo->{DateTimeOriginal} : '', # should this really be a stat of the file instead of ''?
|
413 | 424 |
SRC => uri_escape($uri."/.cache/$cached", $escape_rule),
|
414 | 425 |
HEIGHT => (grep($rotate==$_, (1, 3)) ? $thumbnailwidth : $thumbnailheight),
|
|
1896 | 1907 |
=item B<GalleryUnderscoresToSpaces>
|
1897 | 1908 |
|
1898 | 1909 |
Set this option to 1 to convert underscores to spaces in the listing
|
1899 | |
of directory names.
|
|
1910 |
of directory and file names, as well as in the alt attribute for HTML
|
|
1911 |
<img> tags.
|
1900 | 1912 |
|
1901 | 1913 |
=back
|
1902 | 1914 |
|