View Full Version : Set default language when got multiple external subtitles
realjobe
2008-02-10, 12:17
Dear Borad.
There can be several subtitles to one movie. eg,
movie.avi
movie English.srt
movie Finnish.srt
but how to tell the system always look for Finnish version first and put that on?
realjobe
2008-02-11, 17:15
Can't it be like in DVD world. Xmbc know my region to be Finnish. :)
Shouldn't be too hard to implement, I guess.
I also use subtitles in multiple languages.
If subtitle files are named like:
thematrix.en.srt
thematrix.fr.srt
... for English and French, XBMC could have a preference list, defaulting to maybe the GUI language <locale><language>english</language>
<sublangorder>fr en</sublangorder>
Gamester17
2008-02-12, 12:21
Would we not also need to account for different naming schemes?
I mean some people might use the two letter naming extension for the lanuage while others use the full English name for that language (it would also have to be case insensitive)
Maybe if we in each language XML strings include a new string with both the full name and the short (two letter) name for subtitles in that language.
English would then for example be:<SubtitleLanguageNames>English,EN</SubtitleLanguageNames>
French would be<SubtitleLanguageNames>French,FR</SubtitleLanguageNames>
Swedish would be<SubtitleLanguageNames>Swedish,SE</SubtitleLanguageNames>
That way people would use either or, so:thematrix.en.srt
thematrix.fr.srt
thematrix.se.srt:orTheMatrix.English.srt
TheMatrix.French.srt
TheMatrix.Swedish.srt
realjobe
2008-02-21, 13:49
sounds good, but will this feature be implemented also on future releases? :)
Gamester17
2008-02-21, 15:43
Well, someone would actually have to code it first, ...any volunteers?
ewaterke
2008-02-21, 17:00
A simple workaround that seems to work for me is that I don't indicate the langage for the default one.
ex:
subtitle.srt (for the default (french in my case))
subtitle.en.srt
subtitle.nl.srt
I didn't test extensively but it always open the first one by default.
romi7519
2008-02-27, 01:33
^ what about for idx/sub files?
romi7519
2008-02-27, 01:35
currently in mplayer options on xp machine I am using -slang eng to specify the default subtitle language which works with idx/sub files.
can that not be done on XBMC?