[pitivi: 7/28] Make the errors messages in application.py translatable
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 7/28] Make the errors messages in application.py translatable
- Date: Thu, 14 Jul 2011 16:23:48 +0000 (UTC)
commit 5873e2c34712317c2554976fd2e6c773a9cd583e
Author: Alex BÄluÈ <alexandru balut gmail com>
Date: Thu Jul 7 20:16:53 2011 +0200
Make the errors messages in application.py translatable
pitivi/application.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index 2ddb6f5..bd21e69 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -475,13 +475,13 @@ def _parse_options(argv):
# Validate options.
if options.render_output and options.preview:
- parser.error("-p and -r cannot be used simultaneously")
+ parser.error(_("-p and -r cannot be used simultaneously"))
if options.import_sources and (options.render_output or options.preview):
- parser.error("-r or -p and -i are incompatible")
+ parser.error(_("-r or -p and -i are incompatible"))
if options.add_to_timeline and not options.import_sources:
- parser.error("-a requires -i")
+ parser.error(_("-a requires -i"))
# Validate args.
if options.import_sources:
@@ -489,13 +489,13 @@ def _parse_options(argv):
pass
elif options.render_output:
if len(args) != 1:
- parser.error("-r requires exactly one PROJECT_FILE")
+ parser.error(_("-r requires exactly one PROJECT_FILE"))
elif options.preview:
if len(args) != 1:
- parser.error("-p requires exactly one PROJECT_FILE")
+ parser.error(_("-p requires exactly one PROJECT_FILE"))
else:
if len(args) > 1:
- parser.error("Cannot open more than one PROJECT_FILE")
+ parser.error(_("Cannot open more than one PROJECT_FILE"))
return options, args
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]