php turkish locale
When I've just install gallery2 on to my lap. When logged with another user I got error which I came across before that Php got confused with our locale. I found php bug entry since 2002 it is still open. Before gallery I found some scripts wont work for my locale before. But I had time constrain that I couldnt dig so much.
There exists a comment in the bug entry about solution.
onur dot oguzel at gmail dot com
i guess nobody looks at this bug,
setlocale(LC_ALL, 'tr_TR');
setlocale(LC_CTYPE, 'en_US');
sure solves this but it is still a bug :)
Yes it is obviously a bug and only effects turkish people. Problem is since 2002 there is only 20 comments. It is not so much to force php programmers to fix. Being turk is hard sometimes.
Coming to solution there is a GalleryTranslator.class file in the gallery2/modules/core/classes directory.
open the file and find the
GalleryTranslator::_setlocale(LC_ALL, $languageCode);
section. Add afterwards followind two lines and that reads
.
GalleryTranslator::_setlocale(LC_ALL, $languageCode);
if($languageCode=='tr_TR')
GalleryTranslator::_setlocale(LC_CTYPE, 'en_US');
Now you can easily work in turkish lang.
