Opened 11 years ago

Closed 6 years ago

#11035 closed New feature (fixed)

urlify.js with Serbian alphabet

Reported by: Janoš Owned by: nobody
Component: contrib.admin Version: master
Severity: Normal Keywords: slug slugify urlify
Cc: mmitar@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no


Here is a patch for urilfy.js in admin application that should support Serbian alphabet. There are no collisions between existing and new mappings.

Attachments (2)

urlify.js.1.diff (326 bytes) - added by Janoš 11 years ago.
urlify.diff (1.2 KB) - added by Claude Paroz 9 years ago.
patch from #14345

Download all attachments as: .zip

Change History (13)

Changed 11 years ago by Janoš

Attachment: urlify.js.1.diff added

comment:1 Changed 11 years ago by James Bennett

milestone: 1.1

We're only accepting critical/blocker-type bugs for the 1.1 milestone.

comment:2 Changed 11 years ago by Janoš

There is a small discussion on about that patch. Recently the Serbian translation was changed to Cyrillic alphabet and this patch is related to that. Without urlify.js with mappings for Serbian language, the translation is not complete. Please consider this patch for 1.1 milestone. It is critical for complete suppor the Serbian i18n.

comment:3 Changed 11 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:4 Changed 10 years ago by Ramiro Morales

#14345 is a duplicate and contains another patch for the issue.

comment:5 Changed 10 years ago by oggy

Ugh, late-night brain fart, forgot to check for duplicate issues. Thanks ramiro. This is essentially the same patch as mine, I don't mind either of them going in. Would one of the triagers consider marking this as ready for check-in?

Changed 9 years ago by Claude Paroz

Attachment: urlify.diff added

patch from #14345

comment:6 Changed 9 years ago by Claude Paroz

Easy pickings: unset
Severity: Normal
Triage Stage: AcceptedReady for checkin
Type: Uncategorized

I don't think that js files are currently testable in Django.

comment:7 Changed 9 years ago by Jannis Leidel

Needs tests: set
Triage Stage: Ready for checkinAccepted

comment:8 Changed 9 years ago by Julien Phalip

Type: UncategorizedNew feature

comment:9 Changed 9 years ago by Julien Phalip

UI/UX: unset

See related feature request in #8561.

comment:10 Changed 9 years ago by Mitar

Cc: mmitar@… added

I have added those translations to my improved JavaScript slug creation function which is using Unicode normalization too.

comment:11 Changed 6 years ago by Baptiste Mispelon <bmispelon@…>

Resolution: fixed
Status: newclosed

In 20948612c79b936424cb12cf9988713708232ced:

Fixed issues and added new scripts to urlify.js

Added the following scripts:

  • Lithuanian (thanks to petraszd for the patch)
  • Serbian (thanks to offy)
  • Azerbajani (thanks to Ali Ismayilov)

Fixed the following issues:

  • In Polish character map, some uppercase letters were converted to a lowercase ascii equivalent.
  • The letter Y with a diaeresis had a lowercase version but no uppercase.

The code was also simplified and cleaned up:

  • Use of var statements everywhere
  • Systematic use of semicolons
  • Proper looping over arrays and objects.

Thanks to @oinopion for his help in getting the javascript
into proper shape.

Fixes #8561, #11035.

Note: See TracTickets for help on using tickets.
Back to Top