[dots] table_editor.py: Add placeholders in string
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] table_editor.py: Add placeholders in string
- Date: Sat, 30 Oct 2010 16:14:39 +0000 (UTC)
commit 0d64b9bee494d7addf9dbdda9dee591b5f0360a6
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Oct 30 18:14:29 2010 +0200
table_editor.py: Add placeholders in string
dots/table_editor.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/dots/table_editor.py b/dots/table_editor.py
index a5fa15e..df40b6c 100755
--- a/dots/table_editor.py
+++ b/dots/table_editor.py
@@ -485,7 +485,8 @@ class TableEditor(gtk.Dialog):
error = res.split(":", )
dialog = gtk.MessageDialog(self, gtk.DIALOG_DESTROY_WITH_PARENT,
gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE,
- _("Error in table at line ") + error[1] + ": " + error[2])
+ _("Error in table at line %(line)s: %(error)s") % {
+ 'line': error[1], 'error': error[2]})
dialog.run()
dialog.destroy()
path = str(int(error[1]) - 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]