28
28
#include <sources/oshb.h>
29
29
#include <sources/styles.h>
30
30
#include <sources/abbott-smith.h>
31
#include <i18n/logic.h>
33
34
int main (int argc, char **argv)
50
51
return EXIT_FAILURE;
52
53
string command = argv [2];
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";
63
if (command == locale_command) {
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"};
65
if (command == i18n_command) {
67
cout << "Translating untranslated GUI texts through Google Translate" << endl;
68
i18n_logic_augment_via_google_translate ();
70
} else if (command == locale_command) {
65
72
cout << "Generating locale databases from the *.po files in folder locale" << endl;
66
73
setup_generate_locale_databases (true);
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;