Ticket #14345: urlify.diff

File urlify.diff, 1.2 KB (added by oggy, 14 years ago)
  • django/contrib/admin/media/js/urlify.js

     
    4343var UKRAINIAN_MAP = {
    4444    'Є':'Ye', 'І':'I', 'Ї':'Yi', 'Ґ':'G', 'є':'ye', 'і':'i', 'ї':'yi', 'ґ':'g'
    4545}
     46var SERBIAN_MAP = {
     47    'ђ': 'dj', 'ј' : 'j', 'љ' : 'lj', 'њ' : 'nj', 'ћ': 'c', 'џ': 'dz',
     48    'đ' : 'dj',
     49    'Ђ' : 'Dj', 'Ј' : 'j', 'Љ' : 'Lj', 'Њ' : 'Nj', 'Ћ' : 'C', 'Џ' : 'Dz',
     50    'Đ' : 'Dj',
     51}
    4652var CZECH_MAP = {
    4753    'č':'c', 'ď':'d', 'ě':'e', 'ň': 'n', 'ř':'r', 'š':'s', 'ť':'t', 'ů':'u',
    4854    'ž':'z', 'Č':'C', 'Ď':'D', 'Ě':'E', 'Ň': 'N', 'Ř':'R', 'Š':'S', 'Ť':'T',
     
    6874ALL_DOWNCODE_MAPS[3]=TURKISH_MAP
    6975ALL_DOWNCODE_MAPS[4]=RUSSIAN_MAP
    7076ALL_DOWNCODE_MAPS[5]=UKRAINIAN_MAP
    71 ALL_DOWNCODE_MAPS[6]=CZECH_MAP
    72 ALL_DOWNCODE_MAPS[7]=POLISH_MAP
    73 ALL_DOWNCODE_MAPS[8]=LATVIAN_MAP
     77ALL_DOWNCODE_MAPS[6]=SERBIAN_MAP
     78ALL_DOWNCODE_MAPS[7]=CZECH_MAP
     79ALL_DOWNCODE_MAPS[8]=POLISH_MAP
     80ALL_DOWNCODE_MAPS[9]=LATVIAN_MAP
    7481
    7582var Downcoder = new Object();
    7683Downcoder.Initialize = function()
Back to Top