[mythtv] [mythtv-commits] Ticket #1374: MythWeb should sort titles excluding definite/indefinite articles (The, A, An)
Derek Battams
derek at battams.ca
Sun Mar 5 17:54:46 UTC 2006
Quoting "Michael T. Dean" <mtdean at thirdcontact.com>:
> On 03/04/2006 11:43 PM, MythTV wrote:
>> #1374: MythWeb should sort titles excluding definite/indefinite
>> articles (The, A,
>> An)
>>
>> Comment:
>>
>> Had a few minutes while reading this bug report so wrote a quick patch,
>> seems to do the trick. Patch written against SVN 9204.
>>
>
> That's one language. MythWeb has translations for 11 more. ;)
>
> Oh, and we can't just list articles from all the languages in
> strip_articles() because ignoring the German article "die" would make it
> hard to find "Die Hard" in a list of English language movie titles. I
> think you'll need to do something with the languages directory...
>
> Mike
Can't disagree with that. Modded the patch to use a translation for
the articles. To address your point about the German article possibly
messing up the sort order for English titles in a German installation,
I've simply made every language use the English articles by default.
Translators can translate the string if it doesn't interfere. It
should be noted that the strip_articles() function is only called to
sort titles for printing so in the German case, 'Die Hard' would be
still be listed, but it'd be listed alphabetically by 'H' instead of
'D'. Anyway, patch attached to ticket #1374.
- Derek
More information about the mythtv-dev
mailing list