From b8a4092aaa48d00d88765021a82d5f396ba08f0f Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 22 Jan 2022 11:04:16 -0500 Subject: Moved to c++20, reports full language name --- bible.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bible.cc') diff --git a/bible.cc b/bible.cc index 943d6d0..fe2c828 100644 --- a/bible.cc +++ b/bible.cc @@ -72,11 +72,16 @@ void listChapters(string modname, string book) { void listInstallable(string language) { map> installable = libbible::downloadModsAvailable(); + map 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()); } -- cgit v1.2.3