/[gentoo-x86]/net-wireless/blueman/files/blueman-1.98_p20150105-set-codeset-for-gettext-to-UTF-8-always.patch
Gentoo

Contents of /net-wireless/blueman/files/blueman-1.98_p20150105-set-codeset-for-gettext-to-UTF-8-always.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Mon Jan 5 19:50:38 2015 UTC (5 years, 1 month ago) by zerochaos
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
new snapshot

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 diff --git a/apps/blueman-adapters b/apps/blueman-adapters
2 index ed80a4f..9f27b9e 100755
3 --- a/apps/blueman-adapters
4 +++ b/apps/blueman-adapters
5 @@ -6,6 +6,7 @@ from gi.repository import Pango
6 import os.path
7 import sys
8 import signal
9 +from locale import bind_textdomain_codeset
10
11 #support running uninstalled
12 _dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
13 @@ -34,6 +35,7 @@ class BluemanAdapters:
14
15 builder = Gtk.Builder()
16 builder.set_translation_domain("blueman")
17 + bind_textdomain_codeset("blueman", "UTF-8")
18 builder.add_from_file(UI_PATH + "/adapters.ui")
19 self.dialog = builder.get_object("dialog")
20
21 diff --git a/apps/blueman-assistant b/apps/blueman-assistant
22 index 7e602c8..fab3355 100755
23 --- a/apps/blueman-assistant
24 +++ b/apps/blueman-assistant
25 @@ -16,6 +16,7 @@ import random
26 import signal
27 import dbus.glib
28 from optparse import OptionParser
29 +from locale import bind_textdomain_codeset
30
31 #support running uninstalled
32 _dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
33 @@ -62,6 +63,7 @@ class Assistant:
34
35 self.Builder = Gtk.Builder()
36 self.Builder.set_translation_domain("blueman")
37 + bind_textdomain_codeset("blueman", "UTF-8")
38 self.Builder.add_from_file(UI_PATH + "/assistant.ui")
39 self.assistant = self.Builder.get_object("assistant")
40 self.assistant.set_title(_("Bluetooth Assistant"))
41 diff --git a/apps/blueman-manager b/apps/blueman-manager
42 index b152044..395257b 100755
43 --- a/apps/blueman-manager
44 +++ b/apps/blueman-manager
45 @@ -7,6 +7,7 @@ import dbus, dbus.glib
46 from blueman.Constants import *
47 import gi
48 gi.require_version("Gtk", "3.0")
49 +from locale import bind_textdomain_codeset
50 from gi.repository import Gtk
51 from gi.repository import GObject
52 from blueman.bluez.BlueZInterface import BlueZInterface
53 @@ -43,6 +44,7 @@ class Blueman:
54
55 self.Builder = Gtk.Builder()
56 self.Builder.set_translation_domain("blueman")
57 + bind_textdomain_codeset("blueman", "UTF-8")
58 self.Builder.add_from_file(UI_PATH + "/manager-main.ui")
59
60 self.window = self.Builder.get_object("window")
61 diff --git a/apps/blueman-sendto b/apps/blueman-sendto
62 index 852f99a..fdbff01 100755
63 --- a/apps/blueman-sendto
64 +++ b/apps/blueman-sendto
65 @@ -13,6 +13,7 @@ from optparse import OptionParser
66 import gettext
67 import urllib
68 import time
69 +from locale import bind_textdomain_codeset
70
71 from blueman.Constants import *
72 import gi
73 @@ -46,6 +47,7 @@ class Sender(GObject.GObject):
74 GObject.GObject.__init__(self)
75 self.Builder = Gtk.Builder()
76 self.Builder.set_translation_domain("blueman")
77 + bind_textdomain_codeset("blueman", "UTF-8")
78 self.Builder.add_from_file(UI_PATH + "/send-dialog.ui")
79 self.window = self.Builder.get_object("window")
80
81 diff --git a/apps/blueman-services b/apps/blueman-services
82 index 25a529b..4b4419c 100755
83 --- a/apps/blueman-services
84 +++ b/apps/blueman-services
85 @@ -2,6 +2,7 @@
86
87 import os
88 import sys
89 +from locale import bind_textdomain_codeset
90 #support running uninstalled
91 _dirname = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
92 if os.path.exists(os.path.join(_dirname, "CHANGELOG.md")):
93 @@ -29,6 +30,7 @@ class BluemanServices:
94
95 self.Builder = Gtk.Builder()
96 self.Builder.set_translation_domain("blueman")
97 + bind_textdomain_codeset("blueman", "UTF-8")
98 self.Builder.add_from_file(UI_PATH + "/services.ui")
99
100 self.Config = Config()
101 diff --git a/blueman/gui/GsmSettings.py b/blueman/gui/GsmSettings.py
102 index ee07e62..e58277b 100644
103 --- a/blueman/gui/GsmSettings.py
104 +++ b/blueman/gui/GsmSettings.py
105 @@ -21,6 +21,7 @@ from blueman.Functions import *
106 from blueman.Constants import *
107
108 from gi.repository import Gtk
109 +from locale import bind_textdomain_codeset
110
111 class GsmSettings(Gtk.Dialog):
112 def __init__(self, bd_address):
113 @@ -30,6 +31,7 @@ class GsmSettings(Gtk.Dialog):
114
115 self.Builder = Gtk.Builder()
116 self.Builder.set_translation_domain("blueman")
117 + bind_textdomain_codeset("blueman", "UTF-8")
118 self.Builder.add_from_file(UI_PATH +"/gsm-settings.ui")
119
120 vbox = self.Builder.get_object("vbox1")
121 diff --git a/blueman/gui/applet/PluginDialog.py b/blueman/gui/applet/PluginDialog.py
122 index f994cc9..84d6370 100644
123 --- a/blueman/gui/applet/PluginDialog.py
124 +++ b/blueman/gui/applet/PluginDialog.py
125 @@ -23,6 +23,7 @@ from blueman.Functions import *
126
127 from blueman.gui.GenericList import GenericList
128 import weakref
129 +from locale import bind_textdomain_codeset
130
131 class SettingsWidget(Gtk.VBox):
132 def __init__(self, inst):
133 @@ -118,6 +119,7 @@ class PluginDialog(Gtk.Dialog):
134
135 self.Builder = Gtk.Builder()
136 self.Builder.set_translation_domain("blueman")
137 + bind_textdomain_codeset("blueman", "UTF-8")
138 self.Builder.add_from_file(UI_PATH +"/applet-plugins-widget.ui")
139
140 self.set_title(_("Plugins"))
141 diff --git a/blueman/main/applet/BluezAgent.py b/blueman/main/applet/BluezAgent.py
142 index 072958d..207659c 100644
143 --- a/blueman/main/applet/BluezAgent.py
144 +++ b/blueman/main/applet/BluezAgent.py
145 @@ -7,6 +7,7 @@ from gi.repository import Gtk
146 from gi.repository import GObject
147 from gi.types import GObjectMeta
148 import cgi
149 +from locale import bind_textdomain_codeset
150 import blueman.bluez as Bluez
151 from blueman.Sdp import *
152 from blueman.Constants import *
153 @@ -50,6 +51,7 @@ class CommonAgent(GObject.GObject, Agent):
154 editable.stop_emission("insert-text")
155
156 builder = Gtk.Builder()
157 + bind_textdomain_codeset("blueman", "UTF-8")
158 builder.add_from_file(UI_PATH + "/applet-passkey.ui")
159 builder.set_translation_domain("blueman")
160 dialog = builder.get_object("dialog")
161 diff --git a/blueman/plugins/applet/NetUsage.py b/blueman/plugins/applet/NetUsage.py
162 index 9fd93c7..d6bc492 100644
163 --- a/blueman/plugins/applet/NetUsage.py
164 +++ b/blueman/plugins/applet/NetUsage.py
165 @@ -17,7 +17,7 @@ import dbus
166 import time
167 import datetime
168 import gettext
169 -
170 +from locale import bind_textdomain_codeset
171
172 class MonitorBase(GObject.GObject):
173 __gsignals__ = {
174 @@ -134,6 +134,7 @@ class Dialog:
175 builder = Gtk.Builder()
176 builder.add_from_file(UI_PATH + "/net-usage.ui")
177 builder.set_translation_domain("blueman")
178 + bind_textdomain_codeset("blueman", "UTF-8")
179
180 self.dialog = builder.get_object("dialog")
181 self.dialog.connect("response", self.on_response)
182 diff --git a/blueman/plugins/services/Audio.py b/blueman/plugins/services/Audio.py
183 index b44d6b5..4b13e8f 100644
184 --- a/blueman/plugins/services/Audio.py
185 +++ b/blueman/plugins/services/Audio.py
186 @@ -19,6 +19,7 @@
187
188 from gi.repository import Gtk
189 import dbus
190 +from locale import bind_textdomain_codeset
191 from blueman.Constants import *
192 from blueman.plugins.ServicePlugin import ServicePlugin
193
194 @@ -35,6 +36,7 @@ class Audio(ServicePlugin):
195
196 self.Builder = Gtk.Builder()
197 self.Builder.set_translation_domain("blueman")
198 + bind_textdomain_codeset("blueman", "UTF-8")
199 self.Builder.add_from_file(UI_PATH +"/services-audio.ui")
200 self.widget = self.Builder.get_object("audio")
201
202 diff --git a/blueman/plugins/services/Network.py b/blueman/plugins/services/Network.py
203 index 5fab49a..0dd88d9 100644
204 --- a/blueman/plugins/services/Network.py
205 +++ b/blueman/plugins/services/Network.py
206 @@ -18,6 +18,7 @@
207 #
208
209 from gi.repository import Gtk
210 +from locale import bind_textdomain_codeset
211 from blueman.Constants import *
212 from blueman.Functions import have, dprint, mask_ip4_address
213 from blueman.Lib import get_net_interfaces, get_net_address, get_net_netmask
214 @@ -36,6 +37,7 @@ class Network(ServicePlugin):
215
216 self.Builder = Gtk.Builder()
217 self.Builder.set_translation_domain("blueman")
218 + bind_textdomain_codeset("blueman", "UTF-8")
219 self.Builder.add_from_file(UI_PATH +"/services-network.ui")
220 self.widget = self.Builder.get_object("network")
221
222 diff --git a/blueman/plugins/services/Transfer.py b/blueman/plugins/services/Transfer.py
223 index 189d0cc..8fa65d0 100644
224 --- a/blueman/plugins/services/Transfer.py
225 +++ b/blueman/plugins/services/Transfer.py
226 @@ -1,4 +1,5 @@
227 from gi.repository import Gtk
228 +from locale import bind_textdomain_codeset
229 from blueman.Constants import *
230 from blueman.plugins.ServicePlugin import ServicePlugin
231
232 @@ -14,6 +15,7 @@ class Transfer(ServicePlugin):
233
234 self.Builder = Gtk.Builder()
235 self.Builder.set_translation_domain("blueman")
236 + bind_textdomain_codeset("blueman", "UTF-8")
237 self.Builder.add_from_file(UI_PATH + "/services-transfer.ui")
238 self.widget = self.Builder.get_object("transfer")
239

  ViewVC Help
Powered by ViewVC 1.1.20