La, les, le, el, gli, die, des, der, etc.
Moderators: kcleung, Wiki Admins
-
- Site Admin
- Posts: 2249
- Joined: Sun Dec 10, 2006 11:18 pm
- notabot: 42
- notabot2: Human
- Contact:
La, les, le, el, gli, die, des, der, etc.
All are the equivalent of "the" and are normally ignored in alphabetization. It appears that some have been fixed but others are still being alphabetized. I've no idea of how difficult it would be to set things up so that the wiki automatically did this when new titles are added, so it's just one of those 'it would be nice' things that's not critical.
Actually, adding them is very trivial, and just involves adding the words to a list in the code, since the mechanism for moving the word to the end of the title in the sortkey is already present.
Also, I've added all the words that you listed in the thread title to the list, so they should get sorted fine now
Also, I've added all the words that you listed in the thread title to the list, so they should get sorted fine now
-
- active poster
- Posts: 293
- Joined: Sun Apr 23, 2006 5:08 am
- notabot: YES
- notabot2: Bot
- Location: Phoenix, AZ
This is the code for the section (including the defined words of course). Note that it is case insensitive.
I'll add your suggestions to it now
Code: Select all
$this->prefixes = array( "the ", "la ", "les ", "le ", "el ", "gli ", "die ", "des ", "der ",
"a ", "two ", "three ", "four ", "five ", "six ", "seven ", "eight ", "nine ", "ten ",
"eleven ", "twelve ", "thirteen ", "fourteen ", "fifteen ", "sixteen ", "seventeen ", "eighteen ", "nineteen ", "twenty " );