aboutsummaryrefslogtreecommitdiff
path: root/bible.cc
diff options
context:
space:
mode:
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());
}