Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4902 -- Added Czech support to urlify.js. Thanks, Honza Král.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 35ce8a2a8af101329a9ea7f0b20fdca21cf20a87 1 parent 01906de
@malcolmt malcolmt authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 django/contrib/admin/media/js/urlify.js
View
5 django/contrib/admin/media/js/urlify.js
@@ -40,6 +40,10 @@ var RUSSIAN_MAP = {
'Ч':'Ch', 'Ш':'Sh', 'Щ':'Sh', 'Ъ':'', 'Ы':'Y', 'Ь':'', 'Э':'E', 'Ю':'Yu',
'Я':'Ya'
}
+var CZECH_MAP = {
+ 'č':'c', 'ď':'d', 'ě':'e', 'ň': 'n', 'ř':'r', 'š':'s', 'ť':'t', 'ů':'u',
+ 'ž':'z'
+}
var ALL_DOWNCODE_MAPS=new Array()
ALL_DOWNCODE_MAPS[0]=LATIN_MAP
@@ -47,6 +51,7 @@ ALL_DOWNCODE_MAPS[1]=LATIN_SYMBOLS_MAP
ALL_DOWNCODE_MAPS[2]=GREEK_MAP
ALL_DOWNCODE_MAPS[3]=TURKISH_MAP
ALL_DOWNCODE_MAPS[4]=RUSSIAN_MAP
+ALL_DOWNCODE_MAPS[5]=CZECH_MAP
var Downcoder = new Object();
Downcoder.Initialize = function()
Please sign in to comment.
Something went wrong with that request. Please try again.