Fix book meta error message.

This commit is contained in:
KHobbits 2013-01-20 20:41:15 +00:00
parent 63ce4a99b9
commit f1e3d48248

View File

@ -1,5 +1,6 @@
package com.earth2me.essentials.textreader; package com.earth2me.essentials.textreader;
import static com.earth2me.essentials.I18n._;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
@ -25,7 +26,7 @@ public class BookPager
//This checks to see if we have the chapter in the index //This checks to see if we have the chapter in the index
if (!bookmarks.containsKey(pageStr.toLowerCase(Locale.ENGLISH))) if (!bookmarks.containsKey(pageStr.toLowerCase(Locale.ENGLISH)))
{ {
throw new Exception("No such /einfo chapter!"); throw new Exception(_("infoUnknownChapter"));
} }
//Since we have a valid chapter, count the number of lines in the chapter //Since we have a valid chapter, count the number of lines in the chapter