mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-31 21:48:31 +01:00
Fix book meta error message.
This commit is contained in:
parent
63ce4a99b9
commit
f1e3d48248
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user