Announcement

  •  » Beta testing
  •  » sync album with norwegian letters and space

#1 2012-03-20 19:04:26

abbamust10
Guest

sync album with norwegian letters and space

Hi

I can't syncronize albums and pictures with norwegian letters like æ ø å.

Also I have folders with space.

Can this be done?

 

#2 2012-03-20 19:21:50

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3271

Re: sync album with norwegian letters and space

Hi,
sorry but actually no, it's advised to use only a-z A-Z 0-9 . - _ symbols (no spaces) on files and folders names, and a bit more is allowed

anyway you can change albums and photos names after the sync

Last edited by mistic100 (2012-03-20 19:22:17)

Offline

 

#3 2012-03-20 21:22:37

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13190

Re: sync album with norwegian letters and space

This will be possible in Piwigo 2.4 with a configuration setting, see [Bugtracker, ticket 414, fixed] synchronization, set more permitted characters for file names

Offline

 

#4 2012-04-12 09:34:29

LaMouette
Member
2012-03-27
2

Re: sync album with norwegian letters and space

Hi,

I gave a try to add all kind of permitted char, this is actually working quite well to add photos, only the quote char is giving me trouble because sql queries that insert path in the database are not escaped.

The big issue now is that piwigo is unable to generate thumbnails of photos having a space in their path. I did not figured out why yet (being a c# developer mainly i'm just unable to find where the thumbnails are generated in the php code :( ). Btw the download of an original photos is working.

Any clue ?

Offline

 

#5 2012-04-12 09:40:52

LaMouette
Member
2012-03-27
2

Re: sync album with norwegian letters and space

for information purpose here is my allowed chars regex (in file include/config_default.inc.php) :

$conf['sync_chars_regex'] = '/^[[:alpha:][:digit:]-_.\sÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ!\(\)\&\/\°]+$/';

I tried to find a predefined class that already included the accented chars ... I found that [:alpha:] should behave that way but it's actually not the case :(

Btw this regex is certainly not exhaustive and does not include the complete set of accented chars for all languages

Offline

 
  •  » Beta testing
  •  » sync album with norwegian letters and space

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact