[jsword-devel] Question on I18N

Tonny Kohar tonny.kohar at gmail.com
Mon Feb 16 10:21:56 MST 2009


Hi,

On Mon, Feb 9, 2009 at 4:12 AM, Yiguang Hu <yighu at yahoo.com> wrote:
> Locale Question:
>
> For the following search, should the "bookInitials" be in English only?
>
> Book book = BookInstaller.getInstalledBook(bookInitials);
>
> I have a question when I need to run the application in Locale.China.
> Under Locale.China, BibleInfo.getBookName(i).getShortName() return me the shortname in Chinese, that is what I want for display purpose.
> But how to get the English version "shortname" (the "bookInitials" above)  while under Locale.China?
>
> The other question is how do I get the localized short name for bibles?. The following always return me the list of
> English bible names.
>
> Books.installed().getBooks(BookFilters.getBibles())
>

I think you can get the name (english) by using
org.crosswire.jsword.versification.BibleNames. Just create a new
instance of BibleNames by passing the english locale, then you can
query the english name.

Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com



More information about the jsword-devel mailing list