diff options
Diffstat (limited to 'bible.cc')
-rw-r--r-- | bible.cc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -72,11 +72,16 @@ void listChapters(string modname, string book) { void listInstallable(string language) { map<string, vector<string>> installable = libbible::downloadModsAvailable(); + map<string, string> languages = libbible::getLanguageNames(); for(auto pair : installable) { if(!language.empty() && language != pair.first) { continue; } - printf("For language %s:\n", pair.first.c_str()); + printf("For language %s:", pair.first.c_str()); + if(!languages[pair.first].empty()) { + printf(" (%s)", languages[pair.first].c_str()); + } + printf("\n"); for(string name : pair.second) { printf(" %s\n", name.c_str()); } |