totem r5961 - in trunk: . src/plugins/opensubtitles



Author: pwithnall
Date: Wed Feb 11 00:14:21 2009
New Revision: 5961
URL: http://svn.gnome.org/viewvc/totem?rev=5961&view=rev

Log:
2009-02-11  Philip Withnall  <philip tecnocode co uk>

	* src/plugins/opensubtitles/opensubtitles.py: Added Portuguese 
to the
	list of queryable OpenSubtitles languages. (Helps: #571132)



Modified:
   trunk/ChangeLog
   trunk/src/plugins/opensubtitles/opensubtitles.py

Modified: trunk/src/plugins/opensubtitles/opensubtitles.py
==============================================================================
--- trunk/src/plugins/opensubtitles/opensubtitles.py	(original)
+++ trunk/src/plugins/opensubtitles/opensubtitles.py	Wed Feb 11 00:14:21 2009
@@ -22,17 +22,21 @@
         "ass",
 ]
 
+# Map of the language codes used by opensubtitles.org's API to their human-readable name
 LANGUAGES_STR = [(_('Catalan'), 'cat'),
                  (_('English'), 'eng'),
                  (_('French'),  'fre'),
                  (_('German'),  'ger'),
-                 (_('Spanish'), 'spa'),]
+                 (_('Spanish'), 'spa'),
+                 (_('Portuguese'), 'por'),]
 
+# Map of ISO 639-1 language codes to the codes used by opensubtitles.org's API
 LANGUAGES =     {'ca':'cat',
                  'de':'ger',
                  'en':'eng',
                  'es':'spa',
-                 'fr':'fre'}
+                 'fr':'fre',
+                 'pt':'por',}
 
 class SearchThread(threading.Thread):
     """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]