Added a comment for translators.

This commit is contained in:
Mattias Põldaru 2012-01-18 21:16:50 +02:00
parent 8601a47dce
commit 62d4db0c82
2 changed files with 16 additions and 2 deletions

View File

@ -51,7 +51,14 @@ class AdvancedTab(SettingsTab):
self.default_service_hour = 11
self.default_service_minute = 0
self.default_service_name = unicode(translate('OpenLP.AdvancedTab',
'Service %Y-%m-%d %H-%M'))
'Service %Y-%m-%d %H-%M',
'This is the default default service name template, which can be '
'found in Advanced tab under Tools, Settings. Please do not '
'include any of the following characters: /\\?*|<>\[\]":+\n'
'You can use any of the directives as shown on page '
'http://docs.python.org/library/datetime.html'
'#strftime-strptime-behavior , but if possible, please keep '
'the resulting string sortable by name.'))
self.default_image = u':/graphics/openlp-splash-screen.png'
self.default_color = u'#ffffff'
self.icon_path = u':/system/system_settings.png'

View File

@ -631,7 +631,14 @@ class ServiceManager(QtGui.QWidget):
default_pattern = unicode(QtCore.QSettings().value(
u'advanced/default service name',
translate('OpenLP.AdvancedTab',
'Service %Y-%m-%d %H-%M')).toString())
'Service %Y-%m-%d %H-%M',
'This is the default default service name template, which can be '
'found in Advanced tab under Tools, Settings. Please do not '
'include any of the following characters: /\\?*|<>\[\]":+\n'
'You can use any of the directives as shown on page '
'http://docs.python.org/library/datetime.html'
'#strftime-strptime-behavior , but if possible, please keep '
'the resulting string sortable by name.')).toString())
default_filename = time.strftime(default_pattern)
directory = unicode(SettingsManager.get_last_dir(
self.mainwindow.servicemanagerSettingsSection))