https://bugzilla.wikimedia.org/show_bug.cgi?id=16394
--- Comment #1 from Splarka <[EMAIL PROTECTED]> 2008-11-19 23:07:47 UTC --- It isn't feasable for javascript to sanitize/normalize titles, as they are very dynamic depending on settings and content language, registered namespaces, namespace aliases, namespace redirects, interwiki prefixes, and interlang prefixes. I suggest hitting the API before save (or incrementally) to look for dupes using title normalization, for example: http://en.wikipedia.org/w/api.php?action=query&titles=Category:Foo|category:Bar|Category:%20Baz <normalized> <n from="category:Bar" to="Category:Bar" /> <n from="Category: Baz" to="Category:Baz" /> </normalized> You can also use this for language/alias normalization: http://fr.wikipedia.org/w/api.php?action=query&titles=Category:Foo|category:Bar|Category:%20Baz And as an added feature, you can also check the existence of the categories (in the <pages> section, missing=""). Also, you can do all this without ajax: importScriptURI(wgServer + wgScriptPath + '/api.php?action=query&titles=Category:Foo|category:Bar|Category:%20Baz&format=json&callback=someFunction'); function someFunction(obj) { //obj is the data } -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l