=== modified file 'elisa-plugins/elisa/plugins/poblesec/player_video.py' --- elisa-plugins/elisa/plugins/poblesec/player_video.py 2009-09-30 12:26:12 +0000 +++ elisa-plugins/elisa/plugins/poblesec/player_video.py 2009-10-20 06:31:25 +0000 @@ -77,6 +77,9 @@  import os  import platform  +SUBS_DICT = { + 'pl_PL': 'CP1250', + }   def iso_639_to_human_readable(iso_code):  #FIXME: complete that or find a magical module that knows that. @@ -694,6 +697,15 @@  sub_uri = \  unicode_uri.encode(locale_helper.gst_file_encoding())  self.pipeline.set_property('suburi', sub_uri) + + #: sets encoding for subtitles in case + #: when some locales has been found + _locale_lang = locale_helper.locale.getlocale()[0] + sub_encoding = SUBS_DICT.get(_locale_lang, None) + if sub_encoding: + self.info("Your subtitle encoding: %s", sub_encoding) + self.pipeline.set_property('subtitle-encoding', sub_encoding) +  self.info("Loaded subtitles at %r", sub_uri)  found = True  break