xbmc/xbmc — pull request #1586 by jbdk (2012-10-09 19:59:35+00:00)
Title: Audio / subtitle language enhancments

__A new primary / secondary preferred audio language option, and subtitle enhancements.__

It will greatly benefit us non-English users who have movies with dual audio track.
Ex. English and Danish in a cartoon.

Auto select best audio track based on the following rules:
* If audio track language == primary preferred, then use it.
* if audio track language == secondary preferred, the use it.
* Otherwise fallback to old behavior.

Auto select best subtitle track:
* Find subtitle track matching preferred subtitle language, then...
* If current audio track language == subs language, only select the one with forced flag set (if any)
* otherwise use subtitle track only if language matches preferred.

__Parses 2 ad 3 letter language codes from external subtitle files.__
Ex. filenames : ```SomeMovie(2012).dan.srt or SomeMovie(2012).da.srt ``` will be shown as danish.

__In Audio settings dialog:__
Subtitle name now includes force flag indicator.
None can be selected.