bug 2735: fix/improve non latin language tags
a. non latin tags (greek/cyrillic...) are not sorted case-insesitive and group by letter view in tag list is not case insesitive b. quick searching tag names does not perform correctly accent folding (e.g. Köln and Koln do not match) and case insesitivity for non latin letters c. missing from remove_accents characters in romanian language (Latin Extended-B) ? c8 98 = LATIN CAPITAL LETTER S WITH COMMA BELOW ? c8 99 = LATIN SMALL LETTER S WITH COMMA BELOW ? c8 9a = LATIN CAPITAL LETTER T WITH COMMA BELOW ? c8 9b = LATIN SMALL LETTER T WITH COMMA BELOW d. str2url allow non latin letters in output only if the input does not contain any valid lating letter/digit. we should always allow non latin letters in output git-svn-id: http://piwigo.org/svn/trunk@17748 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
0257b32062
commit
528c75ab35
5 changed files with 49 additions and 34 deletions
2
tags.php
2
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue