diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-24 16:58:10 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-09-24 16:58:10 +0800 |
commit | 556e322a606f72280a7fe1ed61e97cb2644e42a6 (patch) | |
tree | f2f279d02138f0a6d02fa9df9b267744da1f37d7 | |
parent | 8753640afe75a2d8b3cc6ee11abc04e2b28e6b2d (diff) |
totem, po: add a comfirm dialog before reset personel channel list
-rw-r--r-- | po/zh_CN.po | 28 | ||||
-rw-r--r-- | totem/plugin/sopcast.py | 8 |
2 files changed, 26 insertions, 10 deletions
diff --git a/po/zh_CN.po b/po/zh_CN.po index bcda599..07d4a74 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -7,48 +7,56 @@ msgid "" msgstr "" "Project-Id-Version: totem-sopcast 0.0.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2009-09-24 15:04+0800\n" -"PO-Revision-Date: 2009-09-24 15:15+0800\n" +"POT-Creation-Date: 2009-09-24 16:50+0800\n" +"PO-Revision-Date: 2009-09-24 16:52+0800\n" "Last-Translator: Luo Jinghua <sunmoon1997@gmail.com>\n" "Language-Team: Luo Jinghua <sunmoon1997@gmail.com>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: ../totem/plugin/sopcast.py:226 ../totem/plugin/sopcast.py:709 +#: ../totem/plugin/sopcast.py:226 ../totem/plugin/sopcast.py:730 msgid "Sopcast" msgstr "Sopcast" -#: ../totem/plugin/sopcast.py:393 +#: ../totem/plugin/sopcast.py:341 +msgid "" +"Are you sure to reset personal channel list to defaults?\n\n" +"If you clicked the ok button, your changes will be discarded!" +msgstr "" +"您确认要重置个人频道列表吗?\n\n" +"如果点击确认按钮,您之前所有的更改都将被丢弃!" + +#: ../totem/plugin/sopcast.py:408 msgid "Downloading channel list..." msgstr "加载频道列表中..." -#: ../totem/plugin/sopcast.py:483 ../totem/plugin/sopcast.py:615 +#: ../totem/plugin/sopcast.py:498 ../totem/plugin/sopcast.py:630 msgid "Name" msgstr "名称" -#: ../totem/plugin/sopcast.py:487 +#: ../totem/plugin/sopcast.py:502 msgid "Number" msgstr "数量" -#: ../totem/plugin/sopcast.py:619 +#: ../totem/plugin/sopcast.py:634 msgid "Location" msgstr "位置" -#: ../totem/plugin/sopcast.py:709 +#: ../totem/plugin/sopcast.py:730 #, python-format msgid "" "Totem cannot play this type of media (%s) because you do not have the " "appropriate plugins to handle it." msgstr "Totem 无法播放此介质类型(%s),原因是您没有可处理该类型的适当插件。" -#: ../totem/plugin/sopcast.py:710 +#: ../totem/plugin/sopcast.py:731 msgid "" "Please install the necessary plugins and restart Totem to be able to play " "this media." msgstr "请按装必需的插件,然后重新启动 Totem,这样才能播放此介质。" -#: ../totem/plugin/sopcast.py:712 +#: ../totem/plugin/sopcast.py:733 msgid "More information about media plugins" msgstr "更多的关于媒体插件的信息" diff --git a/totem/plugin/sopcast.py b/totem/plugin/sopcast.py index 0886c3b..fd97ed4 100644 --- a/totem/plugin/sopcast.py +++ b/totem/plugin/sopcast.py @@ -336,6 +336,14 @@ class Sopcast (totem.Plugin): self.add_to_playlist (name, location) def on_reset_channel (self, action): + dialog = gtk.MessageDialog (type = gtk.MESSAGE_WARNING, + buttons = gtk.BUTTONS_OK_CANCEL) + dialog.set_markup (_("Are you sure to reset personal channel list to defaults?\n\n" + "If you clicked the ok button, your changes will be discarded!")) + response_id = dialog.run () + dialog.destroy () + if response_id != gtk.RESPONSE_OK: + return if os.path.exists (sc_playlist): os.unlink (sc_playlist) self.load_personal_channels () |