fix a bug in the bible autocompleter when set to application language

bzr-revno: 1921
This commit is contained in:
Armin Köhler 2012-03-31 15:30:06 +02:00 committed by Andreas Preikschat
commit a47b12f8ec
1 changed files with 2 additions and 1 deletions

View File

@ -512,7 +512,8 @@ class BibleMediaItem(MediaManagerItem):
for book in book_data:
data = BiblesResourcesDB.get_book_by_id(
book.book_reference_id)
books.append(data[u'name'] + u' ')
books.append(unicode(
booknames[data[u'abbreviation']]) + u' ')
elif language_selection == LanguageSelection.English:
for book in book_data:
data = BiblesResourcesDB.get_book_by_id(