Permalink
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...
1 parent 01906de commit 35ce8a2a8af101329a9ea7f0b20fdca21cf20a87 @malcolmt malcolmt committed Aug 11, 2007
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,13 +40,18 @@ 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
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()

0 comments on commit 35ce8a2

Please sign in to comment.