summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2013-08-28 00:36:33 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2013-08-29 12:57:44 +0900
commit3a237f806954f091164f6ccc9cdcb091900e156e (patch)
treeab910094c5c5c7093fc4ca4e737fa6916b97062e /setup
parent17d8871211a531c755cd4397a75f4892222412ff (diff)
downloadibus-anthy-3a237f806954f091164f6ccc9cdcb091900e156e.tar.gz
Show UTF-8 copyright by default with GNOME suggestion.
Diffstat (limited to 'setup')
-rw-r--r--setup/main.py15
-rw-r--r--setup/setup.ui8
2 files changed, 4 insertions, 19 deletions
diff --git a/setup/main.py b/setup/main.py
index c792710..98486ad 100644
--- a/setup/main.py
+++ b/setup/main.py
@@ -28,11 +28,6 @@ import xml.dom.minidom
import gettext
from gettext import dgettext
-try:
- from locale import getpreferredencoding
-except:
- getpreferredencoding = None
-
from gi.repository import GLib
# set_prgname before importing other modules to show the name in warning
@@ -288,17 +283,7 @@ class AnthySetup(object):
def __init_about_vbox(self, icon_path):
about_dialog = self.__builder.get_object('about_dialog')
about_vbox = self.__builder.get_object('about_vbox')
-
about_dialog.set_version(self.prefs.get_version())
- try:
- if getpreferredencoding != None and \
- getpreferredencoding().lower() == 'utf-8':
- copyright = about_dialog.get_copyright()
- copyright = copyright.replace('(c)', '\xc2\xa9')
- copyright = copyright.replace('-', '\xe2\x80\x93')
- about_dialog.set_copyright(copyright)
- except:
- pass
if icon_path != None:
if icon_path[0] == '/':
image = Gtk.Image.new_from_file(icon_path)
diff --git a/setup/setup.ui b/setup/setup.ui
index 7ce5e74..d9ec626 100644
--- a/setup/setup.ui
+++ b/setup/setup.ui
@@ -2798,10 +2798,10 @@
</object>
<object class="GtkAboutDialog" id="about_dialog">
<property name="program-name">IBus-Anthy</property>
- <property name="copyright">Copyright (c) 2007-2008 Peng Huang
-Copyright (c) 2009 Hideaki ABE
-Copyright (c) 2009-2013 Takao Fujiwara
-Copyright (c) 2007-2013 Red Hat, Inc.</property>
+ <property name="copyright">Copyright © 2007–2008 Peng Huang
+Copyright © 2009 Hideaki ABE
+Copyright © 2009–2013 Takao Fujiwara
+Copyright © 2007–2013 Red Hat, Inc.</property>
<property name="comments" translatable="yes">The Anthy engine for the IBus input platform</property>
<property name="license">GPL</property>
<property name="website">http://code.google.com/p/ibus/</property>