Commit 5e317459 authored by Troy A. Griffitts's avatar Troy A. Griffitts

added localization for Eusebian references

parent 6fef5ffd
......@@ -108,8 +108,14 @@ console.log('activeKey: ' + activeKey);
if (n.trim().length < 1) return headerNums(++i, callback);
eusebian.eusNum.setKeyText(n.trim(), function() {
eusebian.eusNum.getRenderText(function(detailsText) {
t += '<th style="width:'+(100/nums.length)+'%">' + $(detailsText).attr('osisRef') + '</th>';
return headerNums(++i, callback);
var osisRef = $(detailsText).attr('osisRef');
activeModule.setKeyText(osisRef, function() {
activeModule.getVerseKey(function(vk) {
var localizedOSISRef = osisRef.replace(/Matt|Mark|Luke|John/gi, vk.bookAbbrev);
t += '<th style="width:'+(100/nums.length)+'%">' + localizedOSISRef + '</th>';
return headerNums(++i, callback);
});
});
});
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment