2009-12-05, 20:32
Hey guys
As I have lots of movies with different (default) languages (mainly german but lots of english movies and some very exotic ones (e.g. japanese or russian as main language) I often want to know what language the movie is without having to start it and skip through it. As MKV allows to define the language of an audio stream and XBMC can read that information I made a mod which adds a "Language flag" to the flags in movies and tv shows library view.
This is what it normally looks like (Rating is missing in this one as well):
And this is how it looks like with the language flag:
Of course there is an option in the alaska settings to turn the flag on/off:
And here are two more screenshots with other languages (german and japanese):
This is what I changed in the XML files:
720p/CustomSettings.xml
Look for
which contains the setting for the year flag.
Now add these lines right before the line posted above:
720p/Includes_MediaFlags.xml
Replace the original file with the one you can download here http://rapidshare.com/files/316755604/In...s.xml.html and here http://www.sendspace.com/file/9oaimq (RapidShare seems to be very slow for me right now).
I had to do it this way as the changed code is about 11k characters and this board limits a post to 10k characters.
I hope it works and you guys like it. If you find any bug, please let me know.
Maybe this can even make it into the official version (as I hate updating the files manually after every update to the skin ).
PS: @Hitcher: I think you forgot to adjust the <visible> condition on line 25 in the "Includes_MediaFlags.xml". There is no "subcondition" for the "Years flag" you recently added. I also added that "fix" in my mod.
As I have lots of movies with different (default) languages (mainly german but lots of english movies and some very exotic ones (e.g. japanese or russian as main language) I often want to know what language the movie is without having to start it and skip through it. As MKV allows to define the language of an audio stream and XBMC can read that information I made a mod which adds a "Language flag" to the flags in movies and tv shows library view.
This is what it normally looks like (Rating is missing in this one as well):
And this is how it looks like with the language flag:
Of course there is an option in the alaska settings to turn the flag on/off:
And here are two more screenshots with other languages (german and japanese):
This is what I changed in the XML files:
720p/CustomSettings.xml
Look for
Code:
<control type="radiobutton" id="308">
Now add these lines right before the line posted above:
Code:
<control type="radiobutton" id="309">
<width>740</width>
<font>Font_Settings</font>
<textcolor>Text</textcolor>
<focusedcolor>TextFocused</focusedcolor>
<!-- LOC -->
<label>Show Language Flags</label>
<align>left</align>
<aligny>center</aligny>
<onclick>Skin.ToggleSetting(nolanguagepanel)</onclick>
<selected>!Skin.HasSetting(nolanguagepanel)</selected>
</control>
720p/Includes_MediaFlags.xml
Replace the original file with the one you can download here http://rapidshare.com/files/316755604/In...s.xml.html and here http://www.sendspace.com/file/9oaimq (RapidShare seems to be very slow for me right now).
I had to do it this way as the changed code is about 11k characters and this board limits a post to 10k characters.
I hope it works and you guys like it. If you find any bug, please let me know.
Maybe this can even make it into the official version (as I hate updating the files manually after every update to the skin ).
PS: @Hitcher: I think you forgot to adjust the <visible> condition on line 25 in the "Includes_MediaFlags.xml". There is no "subcondition" for the "Years flag" you recently added. I also added that "fix" in my mod.