[sword-devel] Setting the locale manager bug?
Peter von Kaehne
refdoc at gmx.net
Mon Feb 2 08:23:00 MST 2015
I am currently experiencing some intense frustration with verse
reference parser - I need it working to create a whole bunch of modules
where I use it to create "life" cross references out of non-English
crossreferences.
I have following minimal code snippet (culling vs2osisref) - and it does
not work
[..]
LocaleMgr::getSystemLocaleMgr()->setDefaultLocaleName("ro");
VerseKey verseKey = (argc > 2) ? argv[2] : "Gen 1:1";
std::cout << VerseKey::convertToOSIS(argv[1], &verseKey) << "\n";
[..]
chasing through this construct English references will produce
<reference osisRef="Luke.1.1">Luke.1.1</reference>
Using a Romanian reference (Luca.1.1) will produce
Luca.1.1
Please tell me what I am doing wrong or what is wrong with the locale
manager.
I have tried the utilities vs2osisref and vs2osisreftxt with the dsame
lack of success. I used a whole bunch of locales instead of Romanian
Thanks
Peter
More information about the sword-devel
mailing list