[dots] [dotscms]: Use placeholder in translatable strings. Fixes #632011
- From: Fernando Herrera de las Heras <fherrera src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dots] [dotscms]: Use placeholder in translatable strings. Fixes #632011
- Date: Sat, 30 Oct 2010 15:14:51 +0000 (UTC)
commit acb6fe79ae2b6f1f0948d91ba273f36d857d6fb5
Author: Fernando Herrera <fherrera onirica com>
Date: Sat Oct 30 17:01:51 2010 +0200
[dotscms]: Use placeholder in translatable strings. Fixes #632011
Use placeholder instead of concatenation in translatable strings.
Patch by Claude Paroz. Fixes #632011.
bin/dotscmd | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/dotscmd b/bin/dotscmd
index 3974233..811e35f 100755
--- a/bin/dotscmd
+++ b/bin/dotscmd
@@ -66,7 +66,7 @@ if len(args) != 1:
exit(1)
if not os.access(args[0], os.R_OK) or not os.path.isfile (args[0]):
- print (_("Cannot open input file ") + args[0])
+ print (_("Cannot open input file %s") % args[0])
exit(1)
@@ -79,7 +79,7 @@ if options.page_position is not "top" and not "bottom":
exit(1)
if not os.access(options.table, os.R_OK) and not os.access(os.path.join (host_settings.tablesdir, options.table), os.R_OK):
- print (_("Cannot open table ") + options.table)
+ print (_("Cannot open table %s") % options.table)
print (_("Installed tables are:"))
for file in os.listdir(host_settings.tablesdir):
print "\t" + file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]