Skip to content

Commit

Permalink
Addon Manager: Don't use "ascending" and "descending" to describe how…
Browse files Browse the repository at this point in the history
… dates are sorted.

(cherry-picked from commit 569e1d8)
  • Loading branch information
jostephd authored and jyrkive committed Oct 7, 2018
1 parent f6eac47 commit f12fbb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/dialogs/addon/manager.cpp
Expand Up @@ -221,10 +221,10 @@ const std::vector<addon_manager::addon_order> addon_manager::all_orders_{
{N_("addons_order^Type ($order)"), 4,
[](const addon_info& a, const addon_info& b) { return a.display_type() < b.display_type(); },
[](const addon_info& a, const addon_info& b) { return a.display_type() > b.display_type(); }},
{N_("addons_order^Last updated ($order)"), -1,
{N_("addons_order^Last updated ($datelike_order)"), -1,
[](const addon_info& a, const addon_info& b) { return a.updated < b.updated; },
[](const addon_info& a, const addon_info& b) { return a.updated > b.updated; }},
{N_("addons_order^First uploaded ($order)"), -1,
{N_("addons_order^First uploaded ($datelike_order)"), -1,
[](const addon_info& a, const addon_info& b) { return a.created < b.created; },
[](const addon_info& a, const addon_info& b) { return a.created > b.created; }}
};
Expand Down Expand Up @@ -357,10 +357,14 @@ void addon_manager::pre_show(window& window)

// TRANSLATORS: ascending
symbols["order"] = _("asc");
// TRANSLATORS: Sorting order of dates, oldest first
symbols["datelike_order"] = _("oldest to newest");
config entry{"label", VGETTEXT(f.label.c_str(), symbols)};
order_dropdown_entries.push_back(entry);
// TRANSLATORS: descending
symbols["order"] = _("desc");
// TRANSLATORS: Sorting order of dates, newest first
symbols["datelike_order"] = _("newest to oldest");
entry["label"] = VGETTEXT(f.label.c_str(), symbols);
order_dropdown_entries.push_back(entry);
}
Expand Down

0 comments on commit f12fbb8

Please sign in to comment.