[sword-devel] localization
Troy A. Griffitts
sword-devel@crosswire.org
Mon, 13 Mar 2000 17:43:33 -0700
Joachim,
I've changed some more stuff after testing this morning. The de.conf
file and other locales must contain at least 1 entry for each book in
the [Book Abbrevs] section equal to exactly the bookname for parsing to
work correctly. Also there was a problem with parsing a '.', like in 1.
Kor... This should be fixed also. I've tried hardcoding a new locale in
cheatah to see if it worked, and things seem like they are ok. Try
adding the line to bibletime also if you would like. It must be very
near the beginning of your program as any objects created before this
line will not have the correct locale. For cheatah, I placed it first
in main().
#include <localemgr.h>
...
LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de");
Let me know how bibletime fairs with an auxilliary locale!
> the test programs works for me!
>
> Thanks you _very_ much for integrating this into SWORD!
>
> --Joachim
>
> >OK! I have some stuff to show for localization.
> >
> >I have checked in alot of changes, so please test test test.
> >
> >I've taken the sword.pot file that Torsten submitted a while back and
> >built the beginnings of a real de.conf file. I've left the book abbrevs
> >parsing table in the conf file the same as in english. I don't know
> >what abbrevs might be appropriate for German. Please edit this file to
> >your hearts content and check back in to CVS.
> >
> >WORD OF CAUTION: We need to consider how parsing might be done between
> >english and other locales mixed. Joachim brought up a good point when
> >discussing verse tag formats. How does one link from an english
> >commentary and book ch:vs reference to a non-english module that uses a
> >different locale? Until we resolve this definitively, I would suggest
> >leaving the english book abbrevs table in the locale file and ADD to it
> >instead of replace it. While some abbrevs might be ambiguous between
> >the languages, at least both english and non-english verse references
> >will be otherwise parsed correctly.
> >
> >We don't need to be as careful keeping the table in alphabetical order
> >(due to the binary search algorithms used on the table) because the map
> >object that reads in the table now alphabetizes.
> >
> >
> >I've added locale support to a few of the test programs: parsekey and
> >keytest. Try:
> >keytest de
> >and
> >parsekey "jas 1:19" de
> >
> >
> >___________
> >
> >Let me know your successes and failures. There may be other things that
> >don't work now as alot of lowlevel code was touched in this work.
> >
> >I'm hoping to work on the config hierarchy code next that will allow us
> >to add user modules and options that will augment the systemwide
> >settings. This will allow us to specify things in ~/.sword/sword.conf
> >like defaultLocaleName= and should also fix the personal commentary
> >issue.
> >
> >
> > -Troy.
> >
> >___________
> >
> >"Almighty God. The Great I AM. Immovable Rock. Omnipotent, Powerful
> >Awesome Lord. Victorious Warrior. Commanding King of Kings. Mighty
> >Conqueror. and the only time... the only time i ever saw Him run...
> >Was when He ran to me, took me in His arms, held my head to His chest
> >and said, "My son's come home again". looked in my face, wiped the
> >tears from eyes, with forgiveness in His voice he said, "Son, don't you
> >know I still Love you." -Benny Hester.
> --
> BibleTime - the bible study program for KDE
> http://www.bibletime.de/
> info@bibletime.de