diacritics

Phoca Gallery - image gallery extension
Rudolf
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 13 Jun 2008, 14:51

diacritics

Post by Rudolf »

Hello Jan,

Is there any chance to use diacritics in the filenames in the future?
As I am a collector of beermats, I like to spel the name correct in the gallery and use the same names for the files.
You can change the names after creating the thumbs and larger images, but not the original filename.
Examples are: "Löwenbräu.jpg", "Pivovarský dvur.jpg" and "Švyturys.jpg"


Thanks,
Rudolf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: diacritics

Post by Jan »

Hi, diacritic can be problem only on some servers... so you can try to add images with diacritics but before you must change the method in the phocagallery helper file:

method:
getAliasName() ... comment all and leave only:
return $clean_filename;

in administrator and front too
components/com_phocagallery/helpers/phocagallery.php
administrator/components/com_phocagallery/helpers/phocagallery.php

jan
If you find Phoca extensions useful, please support the project
Rudolf
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 13 Jun 2008, 14:51

Re: diacritics

Post by Rudolf »

Jan,

unfortunately it did not work. All images with diacritics in the filename appear in the list (Multiple Add) with the following character: 䵭 or ?

The only location where I found the method getAliasName()... with the result: return $clean_filename was in administrator/components/com_phocagallery/helpers/phocagallery.php, not in the front.
What can be wrong?

Using:
Windows 2003 server
Apache 2.2.4
MySQL 5.0.45
Joomla! 1.5.3
Phocagallery 1.8.8


Rudolf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: diacritics

Post by Jan »

:( no idea because I don't use bad characters, spaces, diacritics in the file names ... :( so maybe there is some method in joomla which clean it too (file or folder method ) :(
If you find Phoca extensions useful, please support the project
Post Reply