gWorldz / get-simple-cms

Automatically exported from code.google.com/p/get-simple-cms
GNU General Public License v3.0
0 stars 0 forks source link

Empty Slug when certain Characters are not Translated properly #269

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Russian characters are not translated into Latin (page title).

for example
"привет" -> ""
Error: You cannot save an empty page.

and must be
"привет" -> "privet"

p.s. sorry for my english

Original issue reported on code.google.com by art...@gmail.com on 17 Dec 2011 at 6:56

GoogleCodeExporter commented 9 years ago
It's the to7bit() function that needs to be fixed to handle this.
http://code.google.com/p/get-simple-cms/source/browse/trunk/admin/inc/basic.php#
62

Original comment by ccagle8 on 17 Dec 2011 at 5:38

GoogleCodeExporter commented 9 years ago
Current solution would be to use Russian translation language with defined 
"TRANSLITERATION" array.

Original comment by jos...@gmail.com on 19 Dec 2011 at 11:09

GoogleCodeExporter commented 9 years ago
Zegnat said that adding transliteration to the core would not have been a good 
idea. I can look back to see his reasoning, but I remember agreeing with him. I 
will close this ticket for now...

Original comment by ccagle8 on 19 Dec 2011 at 1:28

GoogleCodeExporter commented 9 years ago
thanks!
"TRANSLITERATION" => array(
"п"=>"p",
"р"=>"r",
"и"=>"i",
"в"=>"v",
"е"=>"e",
"т"=>"t"
),

and what about Files -> create folder
??
this not work!
folder not created
transliteration russian to latin not work

Original comment by art...@gmail.com on 21 Dec 2011 at 8:55

GoogleCodeExporter commented 9 years ago
AND
Upload files and/or images...

file for example "привет.txt" (name in russian)
uploaded like ".txt"

please make "TRANSLITERATION"

Original comment by art...@gmail.com on 21 Dec 2011 at 9:03

GoogleCodeExporter commented 9 years ago
This is a problem with folders and file uploads. reopening...

Original comment by ccagle8 on 21 Dec 2011 at 1:16