def setup_subtitle_encoding_menu(self, menubar): menus.add_subtitle_encoding_menu( menubar, _('Eastern European'), ("ISO-8859-4", _("Baltic")), ("ISO-8859-13", _("Baltic")), ("WINDOWS-1257", _("Baltic")), ("MAC_CROATIAN", _("Croatian")), ("ISO-8859-5", _("Cyrillic")), ("IBM855", _("Cyrillic")), ("ISO-IR-111", _("Cyrillic")), ("KOI8-R", _("Cyrillic")), ("MAC-CYRILLIC", _("Cyrillic")), ("WINDOWS-1251", _("Cyrillic")), ("CP866", _("Cyrillic/Russian")), ("MAC_UKRAINIAN", _("Cyrillic/Ukrainian")), ("KOI8-U", _("Cyrillic/Ukrainian")), ("ISO-8859-2", ("Central European")), ("IBM852", _("Central European")), ("MAC_CE", _("Central European")), ("WINDOWS-1250", _("Central European")), ("ISO-8859-16", _("Romanian")), ("MAC_ROMANIAN", _("Romanian")), ) menus.add_subtitle_encoding_menu( menubar, _('Western European'), ("ISO-8859-14", _("Celtic")), ("ISO-8859-7", _("Greek")), ("MAC_GREEK", _("Greek")), ("WINDOWS-1253", _("Greek")), ("MAC_ICELANDIC", _("Icelandic")), ("ISO-8859-10", _("Nordic")), ("ISO-8859-3", _("South European")), ("ISO-8859-1", _("Western")), ("ISO-8859-15", _("Western")), ("IBM850", _("Western")), ("MAC_ROMAN", _("Western")), ("WINDOWS-1252", _("Western")), ) menus.add_subtitle_encoding_menu( menubar, _('East Asian'), ("GB18030", _("Chinese Simplified")), ("GB2312", _("Chinese Simplified")), ("GBK", _("Chinese Simplified")), ("HZ", _("Chinese Simplified")), ("BIG5", _("Chinese Traditional")), ("BIG5-HKSCS", _("Chinese Traditional")), ("EUC-TW", _("Chinese Traditional")), ("EUC-JP", _("Japanese")), ("ISO2022JP", _("Japanese")), ("SHIFT-JIS", _("Japanese")), ("EUC-KR", _("Korean")), ("ISO2022KR", _("Korean")), ("JOHAB", _("Korean")), ("UHC", _("Korean")), ) menus.add_subtitle_encoding_menu( menubar, _('SE and SW Asian'), ("ARMSCII-8", _("Armenian")), ("GEORGIAN-PS", _("Georgian")), ("MAC_GUJARATI", _("Gujarati")), ("MAC_GURMUKHI", _("Gurmukhi")), ("MAC_DEVANAGARI", _("Hindi")), ("TIS-620", _("Thai")), ("ISO-8859-9", _("Turkish")), ("IBM857", _("Turkish")), ("MAC_TURKISH", _("Turkish")), ("WINDOWS-1254", _("Turkish")), ("TCVN", _("Vietnamese")), ("VISCII", _("Vietnamese")), ("WINDOWS-1258", _("Vietnamese")), ) menus.add_subtitle_encoding_menu( menubar, _('Middle Eastern'), ("ISO-8859-6", _("Arabic")), ("IBM864", _("Arabic")), ("MAC_ARABIC", _("Arabic")), ("WINDOWS-1256", _("Arabic")), ("ISO-8859-8-I", _("Hebrew")), ("IBM862", _("Hebrew")), ("MAC_HEBREW", _("Hebrew")), ("WINDOWS-1255", _("Hebrew")), ("ISO-8859-8", _("Hebrew Visual")), ("MAC_FARSI", _("Persian")), ) menus.add_subtitle_encoding_menu( menubar, _('Unicode'), ("UTF-7", _("Unicode")), ("UTF-8", _("Unicode")), ("UTF-16", _("Unicode")), ("UCS-2", _("Unicode")), ("UCS-4", _("Unicode")), )
def setup_subtitle_encoding_menu(self, menubar): menus.add_subtitle_encoding_menu(menubar, _('Eastern European'), ('Latin-7', _('Baltic')), ('Windows-1257', _('Baltic')), ('Latin-2', _('Eastern European')), ('Windows-1250', _('Eastern European')), ('KOI8-R', _('Russian')), ('Latin-10', _('South-Eastern European')), ('KOI8-U', _('Ukrainian')), ) menus.add_subtitle_encoding_menu(menubar, _('Western European'), ('Latin-8', _('Celtic')), ('Windows-1252', _('Western European')), ('Latin-3', _('Esperanto')), ('ISO 8859-7', _('Greek')), ('Windows-1253', _('Greek')), ) menus.add_subtitle_encoding_menu(menubar, _('East Asian'), ('GB18030', _('Universal Chinese')), ('ISO-2022-CN-EXT', _('Simplified Chinese')), ('EUC-CN', _('Simplified Chinese Unix')), ('7-bits JIS/ISO-2022-JP-2', _('Japanese')), ('EUC-JP', _('Japanese Unix')), ('Shift JIS', _('Japanese')), ('EUC-KR/CP949', _('Korean')), ('ISO-2022-KR', _('Korean')), ('Big5', _('Traditional Chinese')), ('EUC-TW', _('Traditional Chinese Unix')), ('HKSCS', _('Hong-Kong Supplementary')), ) menus.add_subtitle_encoding_menu(menubar, _('SE and SW Asian'), ('ISO 8859-9', _('Turkish')), ('Windows-1254', _('Turkish')), ('Windows-874', _('Thai')), ('VISCII', _('Vietnamese')), ('Windows-1258', _('Vietnamese')), ) menus.add_subtitle_encoding_menu(menubar, _('Middle Eastern'), ('ISO 8859-6', _('Arabic')), ('Windows-1256', _('Arabic')), ('ISO 8859-8', _('Hebrew')), ('Windows-1255', _('Hebrew')), ) menus.add_subtitle_encoding_menu(menubar, _('Unicode'), ('UTF-8', _('Universal')), ('UTF-16', _('Universal')), ('UTF-16BE', _('Universal')), ('UTF-16LE', _('Universal')), )
def setup_subtitle_encoding_menu(self, menubar): menus.add_subtitle_encoding_menu(menubar, _('Eastern European'), ("ISO-8859-4", _("Baltic")), ("ISO-8859-13", _("Baltic")), ("WINDOWS-1257", _("Baltic")), ("MAC_CROATIAN", _("Croatian")), ("ISO-8859-5", _("Cyrillic")), ("IBM855", _("Cyrillic")), ("ISO-IR-111", _("Cyrillic")), ("KOI8-R", _("Cyrillic")), ("MAC-CYRILLIC", _("Cyrillic")), ("WINDOWS-1251", _("Cyrillic")), ("CP866", _("Cyrillic/Russian")), ("MAC_UKRAINIAN", _("Cyrillic/Ukrainian")), ("KOI8-U", _("Cyrillic/Ukrainian")), ("ISO-8859-2", ("Central European")), ("IBM852", _("Central European")), ("MAC_CE", _("Central European")), ("WINDOWS-1250", _("Central European")), ("ISO-8859-16", _("Romanian")), ("MAC_ROMANIAN", _("Romanian")), ) menus.add_subtitle_encoding_menu(menubar, _('Western European'), ("ISO-8859-14", _("Celtic")), ("ISO-8859-7", _("Greek")), ("MAC_GREEK", _("Greek")), ("WINDOWS-1253", _("Greek")), ("MAC_ICELANDIC", _("Icelandic")), ("ISO-8859-10", _("Nordic")), ("ISO-8859-3", _("South European")), ("ISO-8859-1", _("Western")), ("ISO-8859-15", _("Western")), ("IBM850", _("Western")), ("MAC_ROMAN", _("Western")), ("WINDOWS-1252", _("Western")), ) menus.add_subtitle_encoding_menu(menubar, _('East Asian'), ("GB18030", _("Chinese Simplified")), ("GB2312", _("Chinese Simplified")), ("GBK", _("Chinese Simplified")), ("HZ", _("Chinese Simplified")), ("BIG5", _("Chinese Traditional")), ("BIG5-HKSCS", _("Chinese Traditional")), ("EUC-TW", _("Chinese Traditional")), ("EUC-JP", _("Japanese")), ("ISO2022JP", _("Japanese")), ("SHIFT-JIS", _("Japanese")), ("EUC-KR", _("Korean")), ("ISO2022KR", _("Korean")), ("JOHAB", _("Korean")), ("UHC", _("Korean")), ) menus.add_subtitle_encoding_menu(menubar, _('SE and SW Asian'), ("ARMSCII-8", _("Armenian")), ("GEORGIAN-PS", _("Georgian")), ("MAC_GUJARATI", _("Gujarati")), ("MAC_GURMUKHI", _("Gurmukhi")), ("MAC_DEVANAGARI", _("Hindi")), ("TIS-620", _("Thai")), ("ISO-8859-9", _("Turkish")), ("IBM857", _("Turkish")), ("MAC_TURKISH", _("Turkish")), ("WINDOWS-1254", _("Turkish")), ("TCVN", _("Vietnamese")), ("VISCII", _("Vietnamese")), ("WINDOWS-1258", _("Vietnamese")), ) menus.add_subtitle_encoding_menu(menubar, _('Middle Eastern'), ("ISO-8859-6", _("Arabic")), ("IBM864", _("Arabic")), ("MAC_ARABIC", _("Arabic")), ("WINDOWS-1256", _("Arabic")), ("ISO-8859-8-I", _("Hebrew")), ("IBM862", _("Hebrew")), ("MAC_HEBREW", _("Hebrew")), ("WINDOWS-1255", _("Hebrew")), ("ISO-8859-8", _("Hebrew Visual")), ("MAC_FARSI", _("Persian")), ) menus.add_subtitle_encoding_menu(menubar, _('Unicode'), ("UTF-7", _("Unicode")), ("UTF-8", _("Unicode")), ("UTF-16", _("Unicode")), ("UCS-2", _("Unicode")), ("UCS-4", _("Unicode")), )
def setup_subtitle_encoding_menu(self, menubar): menus.add_subtitle_encoding_menu( menubar, _("Eastern European"), ("Latin-7", _("Baltic")), ("Windows-1257", _("Baltic")), ("Latin-2", _("Eastern European")), ("Windows-1250", _("Eastern European")), ("KOI8-R", _("Russian")), ("Latin-10", _("South-Eastern European")), ("KOI8-U", _("Ukrainian")), ) menus.add_subtitle_encoding_menu( menubar, _("Western European"), ("Latin-8", _("Celtic")), ("Windows-1252", _("Western European")), ("Latin-3", _("Esperanto")), ("ISO 8859-7", _("Greek")), ("Windows-1253", _("Greek")), ) menus.add_subtitle_encoding_menu( menubar, _("East Asian"), ("GB18030", _("Universal Chinese")), ("ISO-2022-CN-EXT", _("Simplified Chinese")), ("EUC-CN", _("Simplified Chinese Unix")), ("7-bits JIS/ISO-2022-JP-2", _("Japanese")), ("EUC-JP", _("Japanese Unix")), ("Shift JIS", _("Japanese")), ("EUC-KR/CP949", _("Korean")), ("ISO-2022-KR", _("Korean")), ("Big5", _("Traditional Chinese")), ("EUC-TW", _("Traditional Chinese Unix")), ("HKSCS", _("Hong-Kong Supplementary")), ) menus.add_subtitle_encoding_menu( menubar, _("SE and SW Asian"), ("ISO 8859-9", _("Turkish")), ("Windows-1254", _("Turkish")), ("Windows-874", _("Thai")), ("VISCII", _("Vietnamese")), ("Windows-1258", _("Vietnamese")), ) menus.add_subtitle_encoding_menu( menubar, _("Middle Eastern"), ("ISO 8859-6", _("Arabic")), ("Windows-1256", _("Arabic")), ("ISO 8859-8", _("Hebrew")), ("Windows-1255", _("Hebrew")), ) menus.add_subtitle_encoding_menu( menubar, _("Unicode"), ("UTF-8", _("Universal")), ("UTF-16", _("Universal")), ("UTF-16BE", _("Universal")), ("UTF-16LE", _("Universal")), )