aboutsummaryrefslogtreecommitdiff
path: root/bible.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-01-22 11:04:16 -0500
committerYour Name <you@example.com>2022-01-22 11:04:16 -0500
commitb8a4092aaa48d00d88765021a82d5f396ba08f0f (patch)
treec83c6316669dee1ea12a14b32b08f4ac1b6b712e /bible.cc
parent350a11b05c6496b3628dd18704b9f7e0b3f29403 (diff)
downloadlibbible-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.cc7
1 files changed, 6 insertions, 1 deletions
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<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());
}