summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-01-20 20:41:15 +0000
committerKHobbits <rob@khobbits.co.uk>2013-01-20 20:41:15 +0000
commit3f38677952ec0e22303152d4c064ce332b26ac63 (patch)
treee62e66e01f3c3af0f57f1518953aedeb62195163
parent4f46e71b98fd36e17d0d3870baf0c26f0872bd7f (diff)
downloadEssentials-3f38677952ec0e22303152d4c064ce332b26ac63.tar
Essentials-3f38677952ec0e22303152d4c064ce332b26ac63.tar.gz
Essentials-3f38677952ec0e22303152d4c064ce332b26ac63.tar.lz
Essentials-3f38677952ec0e22303152d4c064ce332b26ac63.tar.xz
Essentials-3f38677952ec0e22303152d4c064ce332b26ac63.zip
Fix book meta error message.
-rw-r--r--Essentials/src/com/earth2me/essentials/textreader/BookPager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/textreader/BookPager.java b/Essentials/src/com/earth2me/essentials/textreader/BookPager.java
index 1a2d80e9e..58dde6ca5 100644
--- a/Essentials/src/com/earth2me/essentials/textreader/BookPager.java
+++ b/Essentials/src/com/earth2me/essentials/textreader/BookPager.java
@@ -1,5 +1,6 @@
package com.earth2me.essentials.textreader;
+import static com.earth2me.essentials.I18n._;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
@@ -25,7 +26,7 @@ public class BookPager
//This checks to see if we have the chapter in the index
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