~bibledit/bibledit/ubuntu-cloud-beta

« back to all changes in this revision

Viewing changes to executable/generate.cpp

  • Committer: Teus Benschop
  • Date: 2022-10-14 16:03:26 UTC
  • Revision ID: teusjannette@gmail.com-20221014160326-42ybrpft4bblpruk
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <sources/oshb.h>
29
29
#include <sources/styles.h>
30
30
#include <sources/abbott-smith.h>
 
31
#include <i18n/logic.h>
31
32
 
32
33
 
33
34
int main (int argc, char **argv)
50
51
    return EXIT_FAILURE;
51
52
  }
52
53
  string command = argv [2];
53
 
  
54
 
  string locale_command = "locale";
55
 
  string sample_bible_command = "samplebible";
56
 
  string mappings_command = "mappings";
57
 
  string versifications_command = "versifications";
58
 
  string morphhb_command = "morphhb";
59
 
  string oshb_command = "oshb";
60
 
  string stylesheet_command = "styles";
61
 
  string abbott_smith_command = "abbott-smith";
62
 
  
63
 
  if (command == locale_command) {
 
54
 
 
55
  string i18n_command {"i18n"};
 
56
  string locale_command {"locale"};
 
57
  string sample_bible_command {"samplebible"};
 
58
  string mappings_command {"mappings"};
 
59
  string versifications_command {"versifications"};
 
60
  string morphhb_command {"morphhb"};
 
61
  string oshb_command {"oshb"};
 
62
  string stylesheet_command {"styles"};
 
63
  string abbott_smith_command {"abbott-smith"};
 
64
 
 
65
  if (command == i18n_command) {
 
66
 
 
67
    cout << "Translating untranslated GUI texts through Google Translate" << endl;
 
68
    i18n_logic_augment_via_google_translate ();
 
69
 
 
70
  } else if (command == locale_command) {
64
71
  
65
72
    cout << "Generating locale databases from the *.po files in folder locale" << endl;
66
73
    setup_generate_locale_databases (true);
104
111
    
105
112
    cerr << "This command is unknown" << endl;
106
113
    cerr << "The following commands are supported:" << endl;
 
114
    cerr << i18n_command << ": Translate untranslated GUI texts through Google Translate" << endl;
107
115
    cerr << locale_command << ": Generate locale databases from the *.po files in folder locale" << endl;
108
116
    cerr << sample_bible_command << ": Generate the sample Bible" << endl;
109
117
    cerr << mappings_command << ": Generate the default verse mappings database" << endl;