openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #17113
[Bug 1046587] Re: Non-ASCII characters in default service name cause error
I think the string like 'Service %m-%d ...' should be split into two
strings:
- 'Service' - might be localized
- '%m-%d' - could be translated by translators and must not contain any localized characters and then it will be converted again from unicode type to just ascii
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1046587
Title:
Non-ASCII characters in default service name cause error
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
When using non-ASCII characters in the default service name (for instance Swedish "Körschema"), there is an error when saving the service.
Additionally, the service name preview in the settings (where configuring the service name template) says "Syntax error" when using non-ASCII characters.
OS: Xubuntu 12.04
OpenLP: revision 2051 of branch http://bazaar.launchpad.net/~openlp-core/openlp/trunk
Traceback (most recent call last):
File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 470, in saveFile
return self.saveFileAs()
File "/home/erik/dator/utveckling/openlp/openlp/core/ui/servicemanager.py", line 624, in saveFileAs
default_filename = time.strftime(default_pattern)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1046587/+subscriptions
References