Changeset 17748 for trunk/tags.php


Ignore:
Timestamp:
09/04/12 22:03:33 (7 years ago)
Author:
rvelices
Message:

bug 2735: fix/improve non latin language tags

  1. non latin tags (greek/cyrillic...) are not sorted case-insesitive and group by letter view in tag list is not case insesitive
  2. 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
  3. 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
  4. 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tags.php

    r15578 r17748  
    100100  foreach ($tags as $tag) 
    101101  { 
    102     $tag_letter = strtoupper(mb_substr(str2url($tag['name']), 0, 1, 'utf-8')); 
     102    $tag_letter = mb_strtoupper(mb_substr(transliterate($tag['name']), 0, 1, PWG_CHARSET), PWG_CHARSET); 
    103103 
    104104    if ($current_tag_idx==0) { 
Note: See TracChangeset for help on using the changeset viewer.