I have a check for Chinese documents in And Bible that used to work with JSword code from about the beginning of last December but has now stopped working  Here is my code:<div><br></div><div><div>    <span class="Apple-tab-span" style="white-space:pre">        </span>// Chinese search is not currently supported</div>
<div>    <span class="Apple-tab-span" style="white-space:pre">        </span>if (book.getLanguage().equals(&quot;zh&quot;)) {</div><div>    <span class="Apple-tab-span" style="white-space:pre">                </span>showErrorMsg(R.string.search_chinese_na);</div>
<div>    <span class="Apple-tab-span" style="white-space:pre">                </span>return null;</div><div>    <span class="Apple-tab-span" style="white-space:pre">        </span>}</div></div><div><br></div><div>The comparison used to work but now it does not return true for Chinese documents.  On investigation I think it possibly happened during Java 5 conversion and that now Language.equals() expects to be compared with another Language object and so the following change seems to work:</div>
<div><br></div><div><br></div><div>    private static Language CHINESE = new Language(&quot;zh&quot;);</div><div><br></div><div><div>    <span class="Apple-tab-span" style="white-space:pre">        </span>if (book.getLanguage().equals(CHINESE)) {</div>
<div>    <span class="Apple-tab-span" style="white-space:pre">                </span>showErrorMsg(R.string.search_chinese_na);</div><div>    <span class="Apple-tab-span" style="white-space:pre">                </span>return null;</div><div>    <span class="Apple-tab-span" style="white-space:pre">        </span>}</div>
</div><div><br></div><div>Martin</div><div><br></div>