This commit is contained in:
Tomas Groth 2016-11-21 21:56:48 +01:00
parent 5e600f4417
commit b31d5ad08e

View File

@ -322,7 +322,7 @@ def create_separated_list(string_list):
elif list_length == 2:
list_to_string = translate('OpenLP.core.lib', '{one} and {two}').format(one=string_list[0], two=string_list[1])
elif list_length > 2:
list_to_string = translate('OpenLP.core.lib', '{first}, and {last}').format(first=', '.join(string_list[:-1]),
list_to_string = translate('OpenLP.core.lib', '{first} and {last}').format(first=', '.join(string_list[:-1]),
last=string_list[-1])
else:
list_to_string = ''