Ticket #5326: ukrainian_map2.diff

File ukrainian_map2.diff, 944 bytes (added by Artem Gnilov <boobsd@…>, 12 years ago)

Small change for previous patch

  • urlify.js

     
    4040    'Ч':'Ch', 'Ш':'Sh', 'Щ':'Sh', 'Ъ':'', 'Ы':'Y', 'Ь':'', 'Э':'E', 'Ю':'Yu',
    4141    'Я':'Ya'
    4242}
     43var UKRAINIAN_MAP = {
     44    'Є':'Ye', 'І':'I', 'Ї':'Yi', 'Ґ':'G', 'є':'ye', 'і':'i', 'ї':'yi', 'ґ':'g'
     45}
    4346var CZECH_MAP = {
    4447    'č':'c', 'ď':'d', 'ě':'e', 'ň': 'n', 'ř':'r', 'š':'s', 'ť':'t', 'ů':'u',
    4548    'ž':'z'
     
    5154ALL_DOWNCODE_MAPS[2]=GREEK_MAP
    5255ALL_DOWNCODE_MAPS[3]=TURKISH_MAP
    5356ALL_DOWNCODE_MAPS[4]=RUSSIAN_MAP
    54 ALL_DOWNCODE_MAPS[5]=CZECH_MAP
     57ALL_DOWNCODE_MAPS[5]=UKRAINIAN_MAP
     58ALL_DOWNCODE_MAPS[6]=CZECH_MAP
    5559
    5660var Downcoder = new Object();
    5761Downcoder.Initialize = function()
     
    118122    s = s.toLowerCase();             // convert to lowercase
    119123    return s.substring(0, num_chars);// trim to first num_chars chars
    120124}
    121 
Back to Top