(2012-08-01, 23:47)tinybutstrong Wrote: @HenrikDK, can you add more languages to subtitle support in next update?
Thank you!
For portuguese subtitle i make this ( in linux ), while wait for official support
In ~/.xbmc/addons/plugin.video.youtube/resources/settings.xml
search for
<setting id="lang_code" type="enum" label="30276" lvalues="30277|30278|30279|30280|30281|30282|30283|"default="0" />
change to
<setting id="lang_code" type="enum" label="30276" lvalues="30277|30278|30279|30280|30281|30282|30283|30289" default="0" />
in ~/.xbmc/addons/plugin.video.youtube/resources/language/English/strings.xml
search for
<string id="30288">Show YouTube History</string>
after this line add this
<string id="30289">Portuguese</string>
in ~/.xbmc/addons/plugin.video.youtube/YouTubePlayer.py
search for all lines with ( three lines )
lang_code = ["off", "en", "es", "de", "fr", "it", "ja"][int(self.settings.getSetting("lang_code"))]
change to
lang_code = ["off", "en", "es", "de", "fr", "it", "ja", "pt"][int(self.settings.getSetting("lang_code"))]
In Plugins settings change to Portuguese
This work for me.
ref:
https://developers.google.com/youtube/2....l_captions
and
http://www.loc.gov/standards/iso639-2/php/code_list.php