FOR Release 1.4.0
######################
# #
# Ру�?�?кие названи�? категорий. #
# #
######################
admin/cat_modify.php
55 �?трока, добавл�?ет�?�? кодировка и получает�?�?
Код:
$query.= "'".htmlentities( $_POST['name'], ENT_QUOTES, 'cp1251')."'";
Можно категории называть ру�?�?кими именами.
4ert poberi, daje po rysski pisat nelza :)
Last edited by Igor_I (2005-04-25 21:33:56)
Offline
####################
# #
# Ру????кие названи?? папок #
# #
####################
Зде??ь будет по??ложнее.
$engurl = array ('%e0','%e1','%e2','%e3','%e4','%e5','%b8','%e6','%e7','%e8','%e9','%ea','%eb','%ec','%ed','%ee','%ef','%f0','%f1','%f2','%f3','%f4','%f5','%f6','%f7','%f9','%f8','%fb','%fa','%fc','%fd','%fe','%ff','%c0','%c1','%c2','%c3','%c4','%c5','%a8','%c6','%c7','%c8','%c9','%ca','%cb','%cc','%cd','%ce','%cf','%d0','%d1','%d2','%d3','%d4','%d5','%d6','%d7','%d9','%d8','%db','%da','%dc','%dd','%de','%df') ; $rusurl = array ('а','б','в','г','д','е','ё','ж','з','и','й','к','л','м','н','о','п','р','??','т','у','ф','х','ц','ч','щ','ш','ы','ъ','ь','??','ю','??','??','Б','В','Г','Д','Е','??','Ж','З','И','Й','К','Л','М','??','О','П','Р','С','Т','У','Ф','Х','Ц','Ч','Щ','Ш','Ы','Ъ','Ь','Э','Ю','Я'); picture.php ~472 ??трока $template->assign_vars(array( 'CATEGORY' => $title_img, 'PHOTO' => $title_nb, 'TITLE' => $picture['current']['name'], 'SRC_IMG' => str_replace ($rusurl, $engurl, $picture['current']['src']), ~ 586 ??трока if ($has_prev) { $template->assign_block_vars( 'previous', array( 'TITLE_IMG' => $picture['prev']['name'], 'IMG' => str_replace ($rusurl, $engurl, $picture['prev']['thumbnail']), ### ### 'U_IMG' => add_session_id($picture['prev']['url']) )); } if ($has_next) { $template->assign_block_vars( 'next', array( 'TITLE_IMG' => $picture['next']['name'], 'IMG' => str_replace ($rusurl, $engurl, $picture['next']['thumbnail']), ### ### 'U_IMG' => add_session_id($picture['next']['url']) )); }
Квадратики придет???? ??амим и??кать. :)
Offline
Je suis interessé par ce mod... mais ne possédant pas le russe, je ne comprends pas ce qu'il fait 8-) Des précisions ?
Offline
It makes it possible to call categories, folders and pictures in Russian. I.e., in the native language.
http://www.php.net/manual/fr/function.htmlentities.php
http://www.php.net/manual/ru/function.htmlentities.php
http://babelfish.altavista.com/ - :)
Last edited by Igor_I (2005-04-30 17:52:58)
Offline