[sword-devel] Localisation

Troy A. Griffitts sword-devel@crosswire.org
Tue, 14 Mar 2000 22:38:37 -0700


Joachim,
	Some like:

	list <string> locales =
LocaleMgr::systemLocaleMgr.getAvailableLocales();
	for (list <string>::iterator it = locales.begin(); it != locales.end();
it++) {
		printf("%s", (*it).c_str());
	}

(not sure if this will compile, but it should be close)

I've added the default to be grabbed from $LANG instead of always
setting it to "en", so if you don't call setDefaultLocaleName then the
default will be $LANG if it is set.




Joachim Ansorg wrote:
> 
> Hi!
> 
> At the moment I'm integrating localisation in versions 0.23 and 0.3 of
> BIbleTime.
> 
> I need the available languages we can use.
> 
> I saw the function
> 
> list <string> LocaleMgr::getAvailableLocales
> 
> but I don't know how to use list <string>.
> 
> I need some instructions how to went though the list (first item, next item,
> last item, value of current item, value of a specific item)
> 
> Thank you very much!
> 
> -- Joachim
> BibleTime - the bible study program for KDE
> http://www.bibletime.de/
> info@bibletime.de