Hi! Your output of localetest looked wrong. Could you please copy the attached file to sword-source-dir/tests/ and call make then?
Please send me the new output of localetest afetr you called make. I hope this shows me bit more what's wrong. On my side it looks like this: --- Jakobus 1:19 (should be Jakobus 1:19) Johannes 1:1 (should be Johannes 1:1) Calling setDefaultLocaleName("de") now Create key2 now Setting en locale now Calling ParseVerseList now Lukas 3:23 Finished. --- Thanks, Joachim -- Joachim Ansorg www.bibletime.info joachim.ansorgs.de
#include <localemgr.h> #include <versekey.h> #include <iostream> #ifndef NO_SWORD_NAMESPACE using namespace sword; #endif using std::cout; using std::endl; int main(int argc, char **argv) { LocaleMgr localeMgr; VerseKey key1; key1 = "James 1:19"; key1.setLocale("de"); std::cout << key1 << " (should be Jakobus 1:19)"<< std::endl; key1 = "Johannes 1:1"; std::cout << key1 << " (should be Johannes 1:1)" << std::endl; std::cout << "Calling setDefaultLocaleName(\"de\") now" << std::endl; LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de"); cout << "Create key2 now " << endl; VerseKey key2; cout << "Setting en locale now" << endl; key2.setLocale("en"); cout << "Calling ParseVerseList now " <<endl; ListKey list = key2.ParseVerseList("Luke 3:23-28",key2, true); std::cout << list << std::endl; cout << "Finished."<< endl; }