~bibledit/bibledit/ubuntu-cloud

« back to all changes in this revision

Viewing changes to nmt/logic.cpp

  • Committer: Teus Benschop
  • Date: 2022-11-13 10:10:35 UTC
  • Revision ID: teusjannette@gmail.com-20221113101035-tfpqtklwoj31b306
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <database/versifications.h>
29
29
#include <database/config/bible.h>
30
30
#include <database/mappings.h>
 
31
using namespace std;
31
32
 
32
33
 
33
34
void nmt_logic_export (string referencebible, string translatingbible)
49
50
  for (auto book : books) {
50
51
  
51
52
    // Take books that contain text, leave others, like front matter, out.
52
 
    string type = database::books::get_type (book);
53
 
    if ((type != "ot") && (type != "nt") && (type != "ap")) continue;
 
53
    book_type type = database::books::get_type_v1 (book);
 
54
    if ((type != book_type::old_testament) && (type != book_type::new_testament) && (type != book_type::apocryphal)) continue;
54
55
    
55
 
    string bookname = database::books::get_english_from_id (book);
 
56
    string bookname = database::books::get_english_from_id_v1 (book);
56
57
    Database_Logs::log ("Exporting " + bookname);
57
58
    
58
59
    vector <int> chapters = database_bibles.getChapters (referencebible, book);