Announcement

#1 2013-07-25 21:30:05

jimaek
Member
2013-05-17
41

Cyrillic in galleries names and sync

I've been having issues with galleries(folders) containing Russian letters.
I've fixed the regex to allow everything but I still get weird bugs. Parts of words missing and some just get replaced with the world "galleries".

This happens when I try to sync the folders with Piwigo. The galleries themselves are directories in my linux server. Any ideas on how to fix this?


Thanks

Offline

 

#2 2014-01-15 14:02:19

whitemankpi
Member
2014-01-15
2

Re: Cyrillic in galleries names and sync

Hello. Can you post this solution. Thanks. Sorry for bad english

Offline

 

#3 2014-01-15 16:59:46

flop25
Piwigo Team
2006-07-06
7037

Re: Cyrillic in galleries names and sync

Hi
could you precise what exactly is your issue? Thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2014-01-16 08:43:42

whitemankpi
Member
2014-01-15
2

Re: Cyrillic in galleries names and sync

I have the same problem. I can not synchronize the physical folders(galleries) containing Russian letters.

Last edited by whitemankpi (2014-01-16 08:44:18)

Offline

 

#6 2014-01-16 11:28:56

flop25
Piwigo Team
2006-07-06
7037

Re: Cyrillic in galleries names and sync

If you've set a regex could we see it?  If not read what mistic pointed out


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2014-01-22 08:58:38

JanisV
Member
2013-09-25
85

Re: Cyrillic in galleries names and sync

Hi!
I have the same problem too. My config:
$conf['sync_chars_regex'] = '/.*/';

It work correct for latin folder names (like 'My Photo') and for some non-latin started with 'correct' symbol (like '2014 Сочи'). But folder like 'Сочи 2014' after syncing looks like ' 2014'.

PS What about enable non-latin symbols? Which browsers not support it?

Offline

 

#8 2014-01-23 12:33:43

JanisV
Member
2013-09-25
85

Re: Cyrillic in galleries names and sync

Already reported in [Bugtracker] ticket 2758

Last edited by JanisV (2014-01-23 13:50:35)

Offline

 

#9 2014-02-03 12:19:48

JanisV
Member
2013-09-25
85

Re: Cyrillic in galleries names and sync

My quick workaround:

With the Plugin LocalFilesEditor add this to you local configuration (first tab)

Code:

setlocale(LC_ALL, 'ru_RU.UTF-8');
setlocale(LC_NUMERIC, 'C');

Last edited by JanisV (2014-02-10 22:55:20)

Offline

 

#10 2015-04-11 21:40:59

alt
Guest

Re: Cyrillic in galleries names and sync

Hi,

I have following folder structure under "galleries":

2015
  2015.03.03 Проверка

My local config (via LocalFile Editor) looks like this:

<?php
/* The file does not exist until some information is entered
below. Once information is entered and saved, the file will be created. */
setlocale(LC_ALL, 'ru_RU.UTF-8');
setlocale(LC_NUMERIC, 'C');
$conf['sync_chars_regex'] = '/^.*/';
?>

When I try to synchronize those albums, sync tool tells me only this: [./galleries/2015] added

So it does not like that "2015.03.03 Проверка" at all although sync_chars_regex should allow pretty much everything. If I have for example under 2015 folder something like "2015.03.03 test" it is recognized and synchronized.

Where the problem might be? Why cyrillic is not handled properly in this case?

My setup:

Piwigo 2.7.4
Windows 7
Apache 2.2
PHP 5.3.6

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact