totem r6121 - in trunk: . src/plugins/coherence_upnp src/plugins/jamendo src/plugins/opensubtitles src/plugins/totem src/plugins/youtube
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r6121 - in trunk: . src/plugins/coherence_upnp src/plugins/jamendo src/plugins/opensubtitles src/plugins/totem src/plugins/youtube
- Date: Tue, 10 Mar 2009 14:33:51 +0000 (UTC)
Author: hadess
Date: Tue Mar 10 14:33:51 2009
New Revision: 6121
URL: http://svn.gnome.org/viewvc/totem?rev=6121&view=rev
Log:
2009-03-10 Bastien Nocera <hadess hadess net>
* src/plugins/totem/__init__.py: Import gettext and set the
translation domain when importing the module
* src/plugins/coherence_upnp/coherence_upnp.py:
* src/plugins/jamendo/jamendo.py:
* src/plugins/opensubtitles/opensubtitles.py:
* src/plugins/youtube/youtube.py: Use the gettext set in the
totem Python module
Spotted by Gabor Kelemen <kelemeng gnome hu> (Closes: #574700)
Modified:
trunk/ChangeLog
trunk/src/plugins/coherence_upnp/coherence_upnp.py
trunk/src/plugins/jamendo/jamendo.py
trunk/src/plugins/opensubtitles/opensubtitles.py
trunk/src/plugins/totem/__init__.py
trunk/src/plugins/youtube/youtube.py
Modified: trunk/src/plugins/coherence_upnp/coherence_upnp.py
==============================================================================
--- trunk/src/plugins/coherence_upnp/coherence_upnp.py (original)
+++ trunk/src/plugins/coherence_upnp/coherence_upnp.py Tue Mar 10 14:33:51 2009
@@ -11,9 +11,6 @@
from coherence.ui.av_widgets import UDN_COLUMN,UPNP_CLASS_COLUMN,SERVICE_COLUMN
import totem
-import gettext
-
-_ = gettext.gettext
class UPnPClient(totem.Plugin):
Modified: trunk/src/plugins/jamendo/jamendo.py
==============================================================================
--- trunk/src/plugins/jamendo/jamendo.py (original)
+++ trunk/src/plugins/jamendo/jamendo.py Tue Mar 10 14:33:51 2009
@@ -32,7 +32,6 @@
import os
import totem
-import gettext
import gconf
import gobject
import gtk
@@ -60,7 +59,6 @@
socket.setdefaulttimeout(30)
gobject.threads_init()
-_ = gettext.gettext
gconf_key = '/apps/totem/plugins/jamendo'
Modified: trunk/src/plugins/opensubtitles/opensubtitles.py
==============================================================================
--- trunk/src/plugins/opensubtitles/opensubtitles.py (original)
+++ trunk/src/plugins/opensubtitles/opensubtitles.py Tue Mar 10 14:33:51 2009
@@ -1,5 +1,4 @@
import totem
-import gettext
import gobject, gtk, gio, gconf
gobject.threads_init()
import xmlrpclib
@@ -10,7 +9,6 @@
from hash import hashFile
D_ = gettext.dgettext
-_ = gettext.gettext
USER_AGENT = 'Totem'
OK200 = '200 OK'
Modified: trunk/src/plugins/totem/__init__.py
==============================================================================
--- trunk/src/plugins/totem/__init__.py (original)
+++ trunk/src/plugins/totem/__init__.py Tue Mar 10 14:33:51 2009
@@ -0,0 +1,6 @@
+import gettext
+gettext.textdomain("totem")
+
+D_ = gettext.dgettext
+_ = gettext.gettext
+
Modified: trunk/src/plugins/youtube/youtube.py
==============================================================================
--- trunk/src/plugins/youtube/youtube.py (original)
+++ trunk/src/plugins/youtube/youtube.py Tue Mar 10 14:33:51 2009
@@ -10,9 +10,6 @@
import re
import os
import random
-import gettext
-
-_ = gettext.gettext
class DownloadThread (threading.Thread):
def __init__ (self, youtube, url, treeview_name):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]