[SOLVED] Bug: When Turkish selected site totally corrupted

cemseker

Joined: 2005-05-23
Posts: 3
Posted: Mon, 2005-05-23 20:43

<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):
Gallery version: CVS :pserver on 2005 May 23
Webserver (with version): Apache
Datatabase (with version): MySQL
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

My site seems working fine. But when I select Turkish as the Language, the site is totally corrupted on first image upload. Below is the error code I get:

Fatal error: Call to undefined function: setİd() in /home/cemtr/public_html/clyde/gallery2/modules/core/classes/GalleryStorage/DatabaseStorage.class on line 401

As I see in the message setİd is written with "İ" which is capital for i (not I). Probably this may cause a problem.

Regards,
Cem ŞEKER

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-23 21:17

Please try this test php file on your server:

<?php putenv('LANG=tr_TR'); putenv('LANGUAGE=tr_TR');
  $loc = setlocale(LC_ALL, 'tr_TR'); var_dump($loc);
  $i = ucfirst('id'); var_dump($i);
?>

correct the locale 'tr_TR' in the setlocale call if needed (if the first var_dump prints boolean(false)).

 
cemseker

Joined: 2005-05-23
Posts: 3
Posted: Mon, 2005-05-23 21:25

string(5) "tr_TR" string(2) "�d"

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-23 21:32

ok then, I guess we shouldn't use ucfirst! we don't want any locale specific handling there, just a-z -> A-Z. i'll change that.. try again with tomorrow's nightly snapshot.. thanks!

 
Ansolon
Ansolon's picture

Joined: 2003-01-14
Posts: 46
Posted: Mon, 2005-05-23 21:46

It is very strange that I am taking similar error while installation step 7 core

Quote:
Fatal error: Call to undefined function: setݤ() in /home/qoxer/public_html/gallery/modules/core/classes/GalleryStorage/DatabaseStorage.class on line 401

I am also Turkish user but I dont know its related with it because I even couldnt setup G2. After more than 30 times trying to installation start over again, I am really tired. I think its related with the server box but I dont know how I can solve the problem...

After mindless test.php it gives

Quote:
string(5) "tr_TR" string(2) "İd"

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-23 22:03

Ansolon, yes this fix will probably help you too! Let us know (in the topic for your problem) if it helps..

 
Ansolon
Ansolon's picture

Joined: 2003-01-14
Posts: 46
Posted: Fri, 2005-05-27 08:28

Finally my installing problem is solved with 26/05/2005 cvs, the Turkish lang is also working...