Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/timelinelib
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-09-08 06:52:56 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-09-08 06:52:56 (GMT)
commit4031c950ffa998da9402756e99a385e41dd8397a (patch)
treef28920bd2c30d9dd5f89d7bcf3c349ba543d4650 /timelinelib
parent820768597721ce1912bb7e7f8788191f056db50a (diff)
more files of 0.17
Diffstat (limited to 'timelinelib')
-rw-r--r--timelinelib/wxgui/components/cattree.py12
-rw-r--r--timelinelib/wxgui/components/search.py1
-rw-r--r--timelinelib/wxgui/components/wxdatetimepicker.py1
3 files changed, 6 insertions, 8 deletions
diff --git a/timelinelib/wxgui/components/cattree.py b/timelinelib/wxgui/components/cattree.py
index 0dadeb4..35b53d0 100644
--- a/timelinelib/wxgui/components/cattree.py
+++ b/timelinelib/wxgui/components/cattree.py
@@ -30,7 +30,6 @@ import timelinelib.wxgui.utils as gui_utils
NO_CHECKBOX_TYPE = 0
CHECKBOX_TYPE = 1
-from gettext import gettext as _
class CategoriesTree(customtreectrl.CustomTreeCtrl):
@@ -226,13 +225,14 @@ def add_category(parent_ctrl, db, fn_handle_db_error):
def delete_category(parent_ctrl, db, cat, fn_handle_db_error):
- delete_warning = _("Are you sure you want to delete category '%s'?") % cat.name
+ delete_warning = _("Are you sure you want to "
+ "delete category '%s'?") % cat.name
if cat.parent is None:
- update_warning = _("Events belonging to '%(name)s' will no longer "
- "belong to a category.") % {'name': cat.name}
+ update_warning = _("Events belonging to '%s' will no longer "
+ "belong to a category.") % cat.name
else:
- update_warning = _("Events belonging to '%(name)s' will now belong ")
- "to '%(parent)s'.") % {'name': cat.name, 'parent': cat.parent.name)
+ update_warning = _("Events belonging to '%s' will now belong "
+ "to '%s'.") % (cat.name, cat.parent.name)
question = "%s\n\n%s" % (delete_warning, update_warning)
if _ask_question(question, parent_ctrl) == wx.YES:
try:
diff --git a/timelinelib/wxgui/components/search.py b/timelinelib/wxgui/components/search.py
index 9d8a6fa..e436d79 100644
--- a/timelinelib/wxgui/components/search.py
+++ b/timelinelib/wxgui/components/search.py
@@ -22,7 +22,6 @@ import wx
from timelinelib.config.paths import ICONS_DIR
-from gettext import gettext as _
class SearchBar(wx.ToolBar):
diff --git a/timelinelib/wxgui/components/wxdatetimepicker.py b/timelinelib/wxgui/components/wxdatetimepicker.py
index 55432da..1d3e541 100644
--- a/timelinelib/wxgui/components/wxdatetimepicker.py
+++ b/timelinelib/wxgui/components/wxdatetimepicker.py
@@ -25,7 +25,6 @@ from timelinelib.time import try_to_create_wx_date_time_from_dmy
from timelinelib.time import WxTimeType
from timelinelib.wxgui.utils import _display_error_message
-from gettext import gettext as _
class WxDateTimePicker(wx.Panel):