Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Arabic mapping to contrib/admin/static/admin/js/urlify.js

  • Loading branch information...
commit 8e04ad9fc2ba759cf3fc701d5423b44cbbf8ecb5 1 parent f5f662f
@beshrkayali beshrkayali authored timgraham committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 django/contrib/admin/static/admin/js/urlify.js
View
8 django/contrib/admin/static/admin/js/urlify.js
@@ -61,6 +61,13 @@ var LATVIAN_MAP = {
'Ķ':'k', 'Ļ':'L', 'Ņ':'N', 'Š':'S', 'Ū':'u', 'Ž':'Z'
}
+var ARABIC_MAP = {
+ 'أ':'a', 'ب':'b', 'ت':'t', 'ث': 'th', 'ج':'g', 'ح':'h', 'خ':'kh', 'د':'d',
+ 'ذ':'th', 'ر':'r', 'ز':'z', 'س':'s', 'ش':'sh', 'ص':'s', 'ض':'d', 'ط':'t',
+ 'ظ':'th', 'ع':'aa', 'غ':'gh', 'ف':'f', 'ق':'k', 'ك':'k', 'ل':'l', 'م':'m',
+ 'ن':'n', 'ه':'h', 'و':'o', 'ي':'y'
+}
+
var ALL_DOWNCODE_MAPS=new Array()
ALL_DOWNCODE_MAPS[0]=LATIN_MAP
ALL_DOWNCODE_MAPS[1]=LATIN_SYMBOLS_MAP
@@ -71,6 +78,7 @@ ALL_DOWNCODE_MAPS[5]=UKRAINIAN_MAP
ALL_DOWNCODE_MAPS[6]=CZECH_MAP
ALL_DOWNCODE_MAPS[7]=POLISH_MAP
ALL_DOWNCODE_MAPS[8]=LATVIAN_MAP
+ALL_DOWNCODE_MAPS[9]=ARABIC_MAP
var Downcoder = new Object();
Downcoder.Initialize = function()
Please sign in to comment.
Something went wrong with that request. Please try again.