Ticket #3607: 0001-reflow-long-gettext-strings.patch

File 0001-reflow-long-gettext-strings.patch, 2.3 KB (added by walter, 12 years ago)
  • xol.py

    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 -*-
    12# Copyright (C) IBM Corporation 2008
    23#
    34# This program is free software; you can redistribute it and/or modify
    def publish(activity, force=False): 
    5859                # 0.82 couldn't override .xol bundles
    5960                activity.notify_alert(
    6061                        _('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 \
     63click "Erase" in the Journal. You can click \
     64"Publish" again afterwards.') % \
    6465                        jobject[0].metadata['title'])
    6566                return
    6667
    6768            activity.confirmation_alert(
    6869                    _('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. \
     71Click "OK" to overwrite it.'),
    7172                    publish, activity, True)
    7273            jobject[0].destroy()
    7374            return
    def publish(activity, force=False): 
    7778        jobject.metadata['activity'] = book.custom.uid
    7879        jobject.metadata['mime_type'] = 'application/vnd.olpc-content'
    7980        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 \
     82To view these articles, open the \'Browse\' Activity.\n \
     83Go to \'Books\', and select \'%s\'.' % (title, title)
    8384
    8485    book.custom.sync_article()
    8586    book.custom.revision += 1