From ec71d71a99496a32a30827dd0eaacaeb68d24065 Mon Sep 17 00:00:00 2001
From: Walter Bender <walter.bender@gmail.com>
Date: Tue, 15 May 2012 16:47:33 -0400
Subject: [PATCH] reflow long gettext strings
Organization: Sugar Labs Foundation
---
xol.py | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/xol.py b/xol.py
index bbe2ce5..60691ea 100644
a
|
b
|
|
| 1 | # -*- coding: utf-8 -*- |
1 | 2 | # Copyright (C) IBM Corporation 2008 |
2 | 3 | # |
3 | 4 | # This program is free software; you can redistribute it and/or modify |
… |
… |
def publish(activity, force=False): |
58 | 59 | # 0.82 couldn't override .xol bundles |
59 | 60 | activity.notify_alert( |
60 | 61 | _('Bundle exists'), |
61 | | _('A bundle by "%s" name already exists. Please ' \ |
62 | | 'click "Erase" in the Journal. You can click ' \ |
63 | | '"Publish" again afterwards.') % \ |
| 62 | _('A bundle by "%s" name already exists. Please \ |
| 63 | click "Erase" in the Journal. You can click \ |
| 64 | "Publish" again afterwards.') % \ |
64 | 65 | jobject[0].metadata['title']) |
65 | 66 | return |
66 | 67 | |
67 | 68 | activity.confirmation_alert( |
68 | 69 | _('Overwrite existed bundle?'), |
69 | | _('A bundle for current object was already created. ' \ |
70 | | 'Click "OK" to overwrite it.'), |
| 70 | _('A bundle for current object was already created. \ |
| 71 | Click "OK" to overwrite it.'), |
71 | 72 | publish, activity, True) |
72 | 73 | jobject[0].destroy() |
73 | 74 | return |
… |
… |
def publish(activity, force=False): |
77 | 78 | jobject.metadata['activity'] = book.custom.uid |
78 | 79 | jobject.metadata['mime_type'] = 'application/vnd.olpc-content' |
79 | 80 | jobject.metadata['description'] = \ |
80 | | 'This is a bundle containing articles on %s.\n' \ |
81 | | 'To view these articles, open the \'Browse\' Activity.\n' \ |
82 | | 'Go to \'Books\', and select \'%s\'.' % (title, title) |
| 81 | 'This is a bundle containing articles on %s.\n \ |
| 82 | To view these articles, open the \'Browse\' Activity.\n \ |
| 83 | Go to \'Books\', and select \'%s\'.' % (title, title) |
83 | 84 | |
84 | 85 | book.custom.sync_article() |
85 | 86 | book.custom.revision += 1 |