From 528c75ab35b915b574b4977b8d19412b69845d26 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 4 Sep 2012 20:03:33 +0000 Subject: =?UTF-8?q?bug=202735:=20fix/improve=20non=20latin=20language=20ta?= =?UTF-8?q?gs=20a.=20non=20latin=20tags=20(greek/cyrillic...)=20are=20not?= =?UTF-8?q?=20sorted=20case-insesitive=20and=20group=20by=20letter=20view?= =?UTF-8?q?=20in=20tag=20list=20is=20not=20case=20insesitive=20b.=20quick?= =?UTF-8?q?=20searching=20tag=20names=20does=20not=20perform=20correctly?= =?UTF-8?q?=20accent=20folding=20(e.g.=20K=C3=B6ln=20and=20Koln=20do=20not?= =?UTF-8?q?=20match)=20and=20case=20insesitivity=20for=20non=20latin=20let?= =?UTF-8?q?ters=20c.=20missing=20from=20remove=5Faccents=20characters=20in?= =?UTF-8?q?=20romanian=20language=20(Latin=20Extended-B)=20=20=20=3F=20c8?= =?UTF-8?q?=2098=20=3D=20LATIN=20CAPITAL=20LETTER=20S=20WITH=20COMMA=20BEL?= =?UTF-8?q?OW=20=20=20=3F=20c8=2099=20=3D=20LATIN=20SMALL=20LETTER=20S=20W?= =?UTF-8?q?ITH=20COMMA=20BELOW=20=20=20=3F=20c8=209a=20=3D=20LATIN=20CAPIT?= =?UTF-8?q?AL=20LETTER=20T=20WITH=20COMMA=20BELOW=20=20=20=3F=20c8=209b=20?= =?UTF-8?q?=3D=20LATIN=20SMALL=20LETTER=20T=20WITH=20COMMA=20BELOW=20d.=20?= =?UTF-8?q?str2url=20allow=20non=20latin=20letters=20in=20output=20only=20?= =?UTF-8?q?if=20the=20input=20does=20not=20contain=20any=20valid=20lating?= =?UTF-8?q?=20letter/digit.=20we=20should=20always=20allow=20non=20latin?= =?UTF-8?q?=20letters=20in=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://piwigo.org/svn/trunk@17748 68402e56-0260-453c-a942-63ccdbb3a9ee --- tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tags.php') diff --git a/tags.php b/tags.php index da61d6cd3..b19bce123 100644 --- a/tags.php +++ b/tags.php @@ -99,7 +99,7 @@ if ($page['display_mode'] == 'letters') { foreach ($tags as $tag) { - $tag_letter = strtoupper(mb_substr(str2url($tag['name']), 0, 1, 'utf-8')); + $tag_letter = mb_strtoupper(mb_substr(transliterate($tag['name']), 0, 1, PWG_CHARSET), PWG_CHARSET); if ($current_tag_idx==0) { $current_letter = $tag_letter; -- cgit v1.2.3