Re: [sword-devel] swlocale question

2009-09-04 Thread Matthew Talbert
On Fri, Sep 4, 2009 at 5:59 PM, Jonathan Marsden wrote: > Matthew Talbert wrote: > >> That is, if we have 5 applications, and each has a 1-line way of doing >> this, then that's less code than trying to do this ourselves. > > So... how does diatheke do it in one line? :) I think you're confusing s

Re: [sword-devel] swlocale question

2009-09-04 Thread Chris Little
Greg Hellings wrote: On Fri, Sep 4, 2009 at 4:59 PM, Jonathan Marsden wrote: Matthew Talbert wrote: That is, if we have 5 applications, and each has a 1-line way of doing this, then that's less code than trying to do this ourselves. So... how does diatheke do it in one line? :) Diatheke i

Re: [sword-devel] swlocale question

2009-09-04 Thread Jonathan Morgan
On Sat, Sep 5, 2009 at 10:07 AM, Matthew Talbert wrote: > i don't know why you say it isn't supported. it's fairly simple to set > the locale of a versekey on the fly. no application supports it that i > know of I didn't say it cannot be done, I said it was not supported, at least not in the sense

Re: [sword-devel] swlocale question

2009-09-04 Thread Matthew Talbert
i don't know why you say it isn't supported. it's fairly simple to set the locale of a versekey on the fly. no application supports it that i know of On 9/4/09, Jonathan Morgan wrote: > On Sat, Sep 5, 2009 at 7:59 AM, Jonathan Marsden > wrote: >> How all that fits together, and how SWORD-using ap

Re: [sword-devel] swlocale question

2009-09-04 Thread Jonathan Morgan
On Sat, Sep 5, 2009 at 7:59 AM, Jonathan Marsden wrote: > How all that fits together, and how SWORD-using apps should fit it all > together, is potentially fairly complex and so IMO worth documenting. For > example, if a SWORD app has 4 modules open, each a bible in a different > language, which se

Re: [sword-devel] swlocale question

2009-09-04 Thread Greg Hellings
On Fri, Sep 4, 2009 at 4:59 PM, Jonathan Marsden wrote: > Matthew Talbert wrote: > >> That is, if we have 5 applications, and each has a 1-line way of doing >> this, then that's less code than trying to do this ourselves. > > So... how does diatheke do it in one line? :) Diatheke is "no longer sup

Re: [sword-devel] swlocale question

2009-09-04 Thread Jonathan Marsden
Matthew Talbert wrote: That is, if we have 5 applications, and each has a 1-line way of doing this, then that's less code than trying to do this ourselves. So... how does diatheke do it in one line? :) (2) Rather than only looking at LANG, ... Currently, SWORD doesn't try to read any envi

Re: [sword-devel] usfm2osis.pl poor handling of minor section headings

2009-09-04 Thread Chris Little
I just committed the suggested change, along with a couple of others. Please let me know if this causes any other problems as I didn't get a chance to test it on any actual data. --Chris Peter von Kaehne wrote: I will wait for Chris as the other major user of the script to say what he thinks

[sword-devel] Iḿ trying to get Dallas embedded developers interested in Sword on Android.

2009-09-04 Thread avolunteer DrStovallFoundation
Iḿ trying to get Dallas embedded developers interested in JSword/Alkitab on Android.  Has anyone mad any progress already?    I found the YouTube presentation of three ways to develop for Android very interesting. It appears developing for their shortened jvm is the best way to get started th

Re: [sword-devel] swlocale question

2009-09-04 Thread Karl Kleinpaste
Slightly improved version. int ncmp[3] = { 100, 5, 2 };// fixed data if (sys_locale) { SWBuf locale; StringList localelist = LocaleMgr::getSystemLocaleMgr()->getAvailableLocales(); StringList::iterator it; // le

Re: [sword-devel] SSO for crosswire

2009-09-04 Thread David Haslam
Please would someone correct the News feed link in the CrossWire website main page (right hand side). And anywhere else with the link embedded. David Chris Little-2 wrote: > > Jonathan Marsden wrote: >> Peter von Kaehne wrote: >>> News database >> >> This (the RSS feed at http://crosswire.org/

Re: [sword-devel] swlocale question

2009-09-04 Thread Matthew Talbert
> What I said wasn't quite right. > We set a custom locale dir with LocaleMgr::loadConfigDir(). > The language format I can get from the system can be something like: > "es_ES_PREEURO" or just the language code like "es". > So your snipped would work here too if the former format is reduced to 5 >

Re: [sword-devel] swlocale question

2009-09-04 Thread Manfred Bergmann
On 04.09.2009, at 08:59, Matthew Talbert wrote: Unfortunately on OS X the LANG var doesn't seem to get set also not any other environment variable that would help determine the system language. In OS X system preferences you have a preferred list of languages. The first one is used as curr

Re: [sword-devel] swlocale question

2009-09-04 Thread Matthew Talbert
> Unfortunately on OS X the LANG var doesn't seem to get set also not any > other environment variable that would help determine the system language. > In OS X system preferences you have a preferred list of languages. The first > one is used as current system language but this is not reflected to

Re: [sword-devel] swlocale question

2009-09-04 Thread Manfred Bergmann
On 04.09.2009, at 04:42, Matthew Talbert wrote: There is some interesting code in setDefaultLocaleName. If you do a blame on this, you might find who can help you with the logic. Don't have time right now to check but the comments are beyond my logic of system locales, so it's not likely me (

Re: [sword-devel] swlocale question

2009-09-04 Thread Matthew Talbert
> It looks like you can call GetUserDefaultUILanguage() -- see > http://msdn.microsoft.com/en-us/library/dd318137%28VS.85%29.aspx > > That returns a LANGID which is a numeric code.  There seems to be a > (very recently published) conversion table from the language part of > this at > http://downloa