diff options
author | Your Name <you@example.com> | 2022-01-22 11:04:16 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2022-01-22 11:04:16 -0500 |
commit | b8a4092aaa48d00d88765021a82d5f396ba08f0f (patch) | |
tree | c83c6316669dee1ea12a14b32b08f4ac1b6b712e /bible.cc | |
parent | 350a11b05c6496b3628dd18704b9f7e0b3f29403 (diff) | |
download | libbible-b8a4092aaa48d00d88765021a82d5f396ba08f0f.tar.gz libbible-b8a4092aaa48d00d88765021a82d5f396ba08f0f.tar.bz2 libbible-b8a4092aaa48d00d88765021a82d5f396ba08f0f.zip |
Moved to c++20, reports full language name
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()); } |