Page 1 of 1

diacritics

Posted: 10 Jul 2008, 16:50
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

Re: diacritics

Posted: 11 Jul 2008, 18:10
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

Re: diacritics

Posted: 15 Jul 2008, 12:19
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

Re: diacritics

Posted: 16 Jul 2008, 22:32
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 ) :(