Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Fix Version/s: None
-
Component/s: o.c.jsword.versification
-
Labels:None
Description
Here is an example
Locale.setDefault(Locale.GERMAN);
System.out.println(BibleBook.getBook("Mr")); //returns PrAzar instead of Mark
The foreign language versions of BibleNames.properties mainly have blank entries for the new book names e.g.
Tob.Full=
Tob.Short=
Tob.Alt=
This means the following code in BookName.java
if (normalizedShortName.startsWith(normalizedName) || normalizedName.startsWith(normalizedShortName)) {
must be changed to:
if (normalizedShortName.startsWith(normalizedName) || (normalizedShortName.length()>0 && normalizedName.startsWith(normalizedShortName))) {
On a related note I do not think we should have blank property file entries for the new books in any file other than the single default BibleName.properties because this will prevent anything being displayed and prevent correct display of the default property value. A German speaker would rather see 'Tobit' than ''.
I have patched this in And Bible so even though it is a Blocker it is not critical for me at the moment.
I have attached a patch file.