Skip to content

Commit

Permalink
Unit Recall: marked some sorting options as translatable
Browse files Browse the repository at this point in the history
This matches Unit List.
  • Loading branch information
Vultraz committed Jul 9, 2018
1 parent 7c93690 commit f268b77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/dialogs/unit_recall.cpp
Expand Up @@ -226,14 +226,14 @@ void unit_recall::pre_show(window& window)
filter_options_.push_back(filter_text);
}

list.register_sorting_option(0, [this](const int i) { return recall_list_[i]->type_name().str(); });
list.register_sorting_option(1, [this](const int i) { return recall_list_[i]->name().str(); });
list.register_translatable_sorting_option(0, [this](const int i) { return recall_list_[i]->type_name().str(); });
list.register_translatable_sorting_option(1, [this](const int i) { return recall_list_[i]->name().str(); });
list.register_sorting_option(2, [this](const int i) {
const unit& u = *recall_list_[i];
return std::make_tuple(-u.level(), u.experience_to_advance());
});
list.register_sorting_option(3, [this](const int i) { return recall_list_[i]->experience(); });
list.register_sorting_option(4, [this](const int i) {
list.register_translatable_sorting_option(4, [this](const int i) {
return !recall_list_[i]->trait_names().empty() ? recall_list_[i]->trait_names().front().str() : "";
});

Expand Down

0 comments on commit f268b77

Please sign in to comment.