From 489f19cf39c216c3a076bf0b1c7a1a2aff2cee18 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 18 Apr 2012 23:55:44 +0200 Subject: [PATCH] Renamed all instances (i.e. comments) of 'virtual' to 'optional' --- openlp/core/lib/renderer.py | 10 +++++----- openlp/plugins/custom/forms/editcustomslideform.py | 2 +- openlp/plugins/songs/lib/xml.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openlp/core/lib/renderer.py b/openlp/core/lib/renderer.py index 8da5967a1..585915bd5 100644 --- a/openlp/core/lib/renderer.py +++ b/openlp/core/lib/renderer.py @@ -236,18 +236,18 @@ class Renderer(object): # the first two slides (and neglect the last for now). if len(slides) == 3: html_text = expand_tags(u'\n'.join(slides[:2])) - # We check both slides to determine if the virtual break is - # needed (there is only one virtual break). + # We check both slides to determine if the optional break is + # needed (there is only one optional break). else: html_text = expand_tags(u'\n'.join(slides)) html_text = html_text.replace(u'\n', u'
') if self._text_fits_on_slide(html_text): - # The first two virtual slides fit (as a whole) on one + # The first two optional slides fit (as a whole) on one # slide. Replace the first occurrence of [---]. text = text.replace(u'\n[---]', u'', 1) else: - # The first virtual slide fits, which means we have to - # render the first virtual slide. + # The first optional slide fits, which means we have to + # render the first optional slide. text_contains_break = u'[---]' in text if text_contains_break: try: diff --git a/openlp/plugins/custom/forms/editcustomslideform.py b/openlp/plugins/custom/forms/editcustomslideform.py index ad9f9391b..8f00058d9 100644 --- a/openlp/plugins/custom/forms/editcustomslideform.py +++ b/openlp/plugins/custom/forms/editcustomslideform.py @@ -77,7 +77,7 @@ class EditCustomSlideForm(QtGui.QDialog, Ui_CustomSlideEditDialog): def onSplitButtonClicked(self): """ - Adds a virtual split at cursor. + Adds an optional split at cursor. """ self.insertSingleLineTextAtCursor(u'[---]') self.slideTextEdit.setFocus() diff --git a/openlp/plugins/songs/lib/xml.py b/openlp/plugins/songs/lib/xml.py index abbc58bfc..88fd55789 100644 --- a/openlp/plugins/songs/lib/xml.py +++ b/openlp/plugins/songs/lib/xml.py @@ -697,7 +697,7 @@ class OpenLyrics(object): # Append text from "lines" element to verse text. text += self._process_verse_lines(lines, version=song_xml.get(u'version')) - # Add a virtual split to the verse text. + # Add an optional split to the verse text. if lines.get(u'break') is not None: text += u'\n[---]' verse_def = verse.get(u'name', u' ').lower()