Fixed the "decending" typo. (#91)
Co-authored-by: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alphabetisch (Favoriten)",
|
"Alphabetical (Star)": "Alphabetisch (Favoriten)",
|
||||||
"Likes": "Likes",
|
"Likes": "Likes",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Absteigend",
|
"Descending": "Absteigend",
|
||||||
"Descending (down)": "Absteigend",
|
"Descending (down)": "Absteigend",
|
||||||
"Desc": "Abst.",
|
"Desc": "Abst.",
|
||||||
"Ascending": "Aufsteigend",
|
"Ascending": "Aufsteigend",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alphabetical (Star)",
|
"Alphabetical (Star)": "Alphabetical (Star)",
|
||||||
"Likes": "Likes",
|
"Likes": "Likes",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Decending",
|
"Descending": "Descending",
|
||||||
"Descending (down)": "Descending (down)",
|
"Descending (down)": "Descending (down)",
|
||||||
"Desc": "Desc",
|
"Desc": "Desc",
|
||||||
"Ascending": "Ascending",
|
"Ascending": "Ascending",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alfabético (favorito)",
|
"Alphabetical (Star)": "Alfabético (favorito)",
|
||||||
"Likes": "Me Gusta",
|
"Likes": "Me Gusta",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Descendente",
|
"Descending": "Descendente",
|
||||||
"Descending (down)": "Descendente (abajo)",
|
"Descending (down)": "Descendente (abajo)",
|
||||||
"Desc": "Descendente",
|
"Desc": "Descendente",
|
||||||
"Ascending": "Ascendente",
|
"Ascending": "Ascendente",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alphabétique (Favories)",
|
"Alphabetical (Star)": "Alphabétique (Favories)",
|
||||||
"Likes": "Likes",
|
"Likes": "Likes",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Décroissant",
|
"Descending": "Décroissant",
|
||||||
"Descending (down)": "Décroissant",
|
"Descending (down)": "Décroissant",
|
||||||
"Desc": "Décroissant",
|
"Desc": "Décroissant",
|
||||||
"Ascending": "Croissant",
|
"Ascending": "Croissant",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alfabetico (Preferiti)",
|
"Alphabetical (Star)": "Alfabetico (Preferiti)",
|
||||||
"Likes": "Mi Piace",
|
"Likes": "Mi Piace",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Decrescente",
|
"Descending": "Decrescente",
|
||||||
"Descending (down)": "Decrescente",
|
"Descending (down)": "Decrescente",
|
||||||
"Desc": "Decrescente",
|
"Desc": "Decrescente",
|
||||||
"Ascending": "Crescente",
|
"Ascending": "Crescente",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "アルファベット順(お気に入り)",
|
"Alphabetical (Star)": "アルファベット順(お気に入り)",
|
||||||
"Likes": "いいね順",
|
"Likes": "いいね順",
|
||||||
"ID": "デベロッパー順",
|
"ID": "デベロッパー順",
|
||||||
"Decending": "降順",
|
"Descending": "降順",
|
||||||
"Descending (down)": "降順",
|
"Descending (down)": "降順",
|
||||||
"Desc": "降順",
|
"Desc": "降順",
|
||||||
"Ascending": "上昇",
|
"Ascending": "上昇",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "알파벳순 (즐겨찾기)",
|
"Alphabetical (Star)": "알파벳순 (즐겨찾기)",
|
||||||
"Likes": "좋아요순",
|
"Likes": "좋아요순",
|
||||||
"ID": "ID순",
|
"ID": "ID순",
|
||||||
"Decending": "내림차순",
|
"Descending": "내림차순",
|
||||||
"Descending (down)": "내림차순",
|
"Descending (down)": "내림차순",
|
||||||
"Desc": "내림차순",
|
"Desc": "내림차순",
|
||||||
"Ascending": "오름차순",
|
"Ascending": "오름차순",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "",
|
"Alphabetical (Star)": "",
|
||||||
"Likes": "",
|
"Likes": "",
|
||||||
"ID": "",
|
"ID": "",
|
||||||
"Decending": "Aflopend",
|
"Descending": "Aflopend",
|
||||||
"Descending (down)": "Aflopend",
|
"Descending (down)": "Aflopend",
|
||||||
"Desc": "Aflopend",
|
"Desc": "Aflopend",
|
||||||
"Ascending": "Oplopend",
|
"Ascending": "Oplopend",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Ordem alfabética (favoritos)",
|
"Alphabetical (Star)": "Ordem alfabética (favoritos)",
|
||||||
"Likes": "Nº de curtidas",
|
"Likes": "Nº de curtidas",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Decrescente",
|
"Descending": "Decrescente",
|
||||||
"Descending (down)": "Decrescente (baixo)",
|
"Descending (down)": "Decrescente (baixo)",
|
||||||
"Desc": "Decr.",
|
"Desc": "Decr.",
|
||||||
"Ascending": "Ascendente",
|
"Ascending": "Ascendente",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "",
|
"Alphabetical (Star)": "",
|
||||||
"Likes": "",
|
"Likes": "",
|
||||||
"ID": "",
|
"ID": "",
|
||||||
"Decending": "По убыванию",
|
"Descending": "По убыванию",
|
||||||
"Descending (down)": "По убыванию",
|
"Descending (down)": "По убыванию",
|
||||||
"Desc": "По убыванию",
|
"Desc": "По убыванию",
|
||||||
"Ascending": "По возрастанию",
|
"Ascending": "По возрастанию",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "Alfabetisk (Stjärna)",
|
"Alphabetical (Star)": "Alfabetisk (Stjärna)",
|
||||||
"Likes": "Gillar",
|
"Likes": "Gillar",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Fallande",
|
"Descending": "Fallande",
|
||||||
"Descending (down)": "Fallande (nedåt)",
|
"Descending (down)": "Fallande (nedåt)",
|
||||||
"Desc": "Fall",
|
"Desc": "Fall",
|
||||||
"Ascending": "Stigande",
|
"Ascending": "Stigande",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "A-Z (Yêu thích)",
|
"Alphabetical (Star)": "A-Z (Yêu thích)",
|
||||||
"Likes": "Thích",
|
"Likes": "Thích",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "Giảm dần",
|
"Descending": "Giảm dần",
|
||||||
"Descending (down)": "Giảm dần (xuống)",
|
"Descending (down)": "Giảm dần (xuống)",
|
||||||
"Desc": "Giảm",
|
"Desc": "Giảm",
|
||||||
"Ascending": "Tăng dần",
|
"Ascending": "Tăng dần",
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"Alphabetical (Star)": "按字母顺序(星标优先)",
|
"Alphabetical (Star)": "按字母顺序(星标优先)",
|
||||||
"Likes": "点赞量",
|
"Likes": "点赞量",
|
||||||
"ID": "ID",
|
"ID": "ID",
|
||||||
"Decending": "降序",
|
"Descending": "降序",
|
||||||
"Descending (down)": "降序",
|
"Descending (down)": "降序",
|
||||||
"Desc": "降序",
|
"Desc": "降序",
|
||||||
"Ascending": "升序",
|
"Ascending": "升序",
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ enum SortType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum OrderType {
|
enum OrderType {
|
||||||
OrderType_Decending,
|
OrderType_Descending,
|
||||||
OrderType_Ascending,
|
OrderType_Ascending,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -199,7 +199,7 @@ private:
|
|||||||
|
|
||||||
Filter m_filter{Filter::Filter_All};
|
Filter m_filter{Filter::Filter_All};
|
||||||
SortType m_sort{SortType::SortType_Updated};
|
SortType m_sort{SortType::SortType_Updated};
|
||||||
OrderType m_order{OrderType::OrderType_Decending};
|
OrderType m_order{OrderType::OrderType_Descending};
|
||||||
|
|
||||||
s64 m_index{}; // where i am in the array
|
s64 m_index{}; // where i am in the array
|
||||||
LazyImage m_default_image;
|
LazyImage m_default_image;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ enum SortType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum OrderType {
|
enum OrderType {
|
||||||
OrderType_Decending,
|
OrderType_Descending,
|
||||||
OrderType_Ascending,
|
OrderType_Ascending,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@ private:
|
|||||||
SelectedType m_selected_type{SelectedType::None};
|
SelectedType m_selected_type{SelectedType::None};
|
||||||
|
|
||||||
option::OptionLong m_sort{INI_SECTION, "sort", SortType::SortType_Alphabetical};
|
option::OptionLong m_sort{INI_SECTION, "sort", SortType::SortType_Alphabetical};
|
||||||
option::OptionLong m_order{INI_SECTION, "order", OrderType::OrderType_Decending};
|
option::OptionLong m_order{INI_SECTION, "order", OrderType::OrderType_Descending};
|
||||||
option::OptionBool m_show_hidden{INI_SECTION, "show_hidden", false};
|
option::OptionBool m_show_hidden{INI_SECTION, "show_hidden", false};
|
||||||
option::OptionBool m_folders_first{INI_SECTION, "folders_first", true};
|
option::OptionBool m_folders_first{INI_SECTION, "folders_first", true};
|
||||||
option::OptionBool m_hidden_last{INI_SECTION, "hidden_last", false};
|
option::OptionBool m_hidden_last{INI_SECTION, "hidden_last", false};
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ enum SortType {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enum OrderType {
|
enum OrderType {
|
||||||
OrderType_Decending,
|
OrderType_Descending,
|
||||||
OrderType_Ascending,
|
OrderType_Ascending,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ private:
|
|||||||
std::unique_ptr<List> m_list;
|
std::unique_ptr<List> m_list;
|
||||||
|
|
||||||
option::OptionLong m_sort{INI_SECTION, "sort", SortType::SortType_AlphabeticalStar};
|
option::OptionLong m_sort{INI_SECTION, "sort", SortType::SortType_AlphabeticalStar};
|
||||||
option::OptionLong m_order{INI_SECTION, "order", OrderType::OrderType_Decending};
|
option::OptionLong m_order{INI_SECTION, "order", OrderType::OrderType_Descending};
|
||||||
option::OptionBool m_hide_sphaira{INI_SECTION, "hide_sphaira", false};
|
option::OptionBool m_hide_sphaira{INI_SECTION, "hide_sphaira", false};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -962,7 +962,7 @@ Menu::Menu(const std::vector<NroEntry>& nro_entries) : MenuBase{"AppStore"_i18n}
|
|||||||
sort_items.push_back("Alphabetical"_i18n);
|
sort_items.push_back("Alphabetical"_i18n);
|
||||||
|
|
||||||
SidebarEntryArray::Items order_items;
|
SidebarEntryArray::Items order_items;
|
||||||
order_items.push_back("Decending"_i18n);
|
order_items.push_back("Descending"_i18n);
|
||||||
order_items.push_back("Ascending"_i18n);
|
order_items.push_back("Ascending"_i18n);
|
||||||
|
|
||||||
options->Add(std::make_shared<SidebarEntryArray>("Filter"_i18n, filter_items, [this, filter_items](s64& index_out){
|
options->Add(std::make_shared<SidebarEntryArray>("Filter"_i18n, filter_items, [this, filter_items](s64& index_out){
|
||||||
@@ -1298,7 +1298,7 @@ void Menu::Sort() {
|
|||||||
case SortType_Updated: {
|
case SortType_Updated: {
|
||||||
if (lhs.updated_num == rhs.updated_num) {
|
if (lhs.updated_num == rhs.updated_num) {
|
||||||
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
||||||
} else if (m_order == OrderType_Decending) {
|
} else if (m_order == OrderType_Descending) {
|
||||||
return lhs.updated_num > rhs.updated_num;
|
return lhs.updated_num > rhs.updated_num;
|
||||||
} else {
|
} else {
|
||||||
return lhs.updated_num < rhs.updated_num;
|
return lhs.updated_num < rhs.updated_num;
|
||||||
@@ -1307,7 +1307,7 @@ void Menu::Sort() {
|
|||||||
case SortType_Downloads: {
|
case SortType_Downloads: {
|
||||||
if (lhs.app_dls == rhs.app_dls) {
|
if (lhs.app_dls == rhs.app_dls) {
|
||||||
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
||||||
} else if (m_order == OrderType_Decending) {
|
} else if (m_order == OrderType_Descending) {
|
||||||
return lhs.app_dls > rhs.app_dls;
|
return lhs.app_dls > rhs.app_dls;
|
||||||
} else {
|
} else {
|
||||||
return lhs.app_dls < rhs.app_dls;
|
return lhs.app_dls < rhs.app_dls;
|
||||||
@@ -1316,14 +1316,14 @@ void Menu::Sort() {
|
|||||||
case SortType_Size: {
|
case SortType_Size: {
|
||||||
if (lhs.extracted == rhs.extracted) {
|
if (lhs.extracted == rhs.extracted) {
|
||||||
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
||||||
} else if (m_order == OrderType_Decending) {
|
} else if (m_order == OrderType_Descending) {
|
||||||
return lhs.extracted > rhs.extracted;
|
return lhs.extracted > rhs.extracted;
|
||||||
} else {
|
} else {
|
||||||
return lhs.extracted < rhs.extracted;
|
return lhs.extracted < rhs.extracted;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case SortType_Alphabetical: {
|
case SortType_Alphabetical: {
|
||||||
if (m_order == OrderType_Decending) {
|
if (m_order == OrderType_Descending) {
|
||||||
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) < 0;
|
||||||
} else {
|
} else {
|
||||||
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) > 0;
|
return strcasecmp(lhs.name.c_str(), rhs.name.c_str()) > 0;
|
||||||
|
|||||||
@@ -352,7 +352,7 @@ Menu::Menu(const std::vector<NroEntry>& nro_entries) : MenuBase{"FileBrowser"_i1
|
|||||||
sort_items.push_back("Alphabetical"_i18n);
|
sort_items.push_back("Alphabetical"_i18n);
|
||||||
|
|
||||||
SidebarEntryArray::Items order_items;
|
SidebarEntryArray::Items order_items;
|
||||||
order_items.push_back("Decending"_i18n);
|
order_items.push_back("Descending"_i18n);
|
||||||
order_items.push_back("Ascending"_i18n);
|
order_items.push_back("Ascending"_i18n);
|
||||||
|
|
||||||
options->Add(std::make_shared<SidebarEntryArray>("Sort"_i18n, sort_items, [this](s64& index_out){
|
options->Add(std::make_shared<SidebarEntryArray>("Sort"_i18n, sort_items, [this](s64& index_out){
|
||||||
@@ -1034,14 +1034,14 @@ void Menu::Sort() {
|
|||||||
case SortType_Size: {
|
case SortType_Size: {
|
||||||
if (lhs.file_size == rhs.file_size) {
|
if (lhs.file_size == rhs.file_size) {
|
||||||
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) < 0;
|
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) < 0;
|
||||||
} else if (order == OrderType_Decending) {
|
} else if (order == OrderType_Descending) {
|
||||||
return lhs.file_size > rhs.file_size;
|
return lhs.file_size > rhs.file_size;
|
||||||
} else {
|
} else {
|
||||||
return lhs.file_size < rhs.file_size;
|
return lhs.file_size < rhs.file_size;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case SortType_Alphabetical: {
|
case SortType_Alphabetical: {
|
||||||
if (order == OrderType_Decending) {
|
if (order == OrderType_Descending) {
|
||||||
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) < 0;
|
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) < 0;
|
||||||
} else {
|
} else {
|
||||||
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) > 0;
|
return strncasecmp(lhs.name, rhs.name, sizeof(lhs.name)) > 0;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ Menu::Menu() : MenuBase{"Homebrew"_i18n} {
|
|||||||
sort_items.push_back("Size (Star)"_i18n);
|
sort_items.push_back("Size (Star)"_i18n);
|
||||||
|
|
||||||
SidebarEntryArray::Items order_items;
|
SidebarEntryArray::Items order_items;
|
||||||
order_items.push_back("Decending"_i18n);
|
order_items.push_back("Descending"_i18n);
|
||||||
order_items.push_back("Ascending"_i18n);
|
order_items.push_back("Ascending"_i18n);
|
||||||
|
|
||||||
options->Add(std::make_shared<SidebarEntryArray>("Sort"_i18n, sort_items, [this, sort_items](s64& index_out){
|
options->Add(std::make_shared<SidebarEntryArray>("Sort"_i18n, sort_items, [this, sort_items](s64& index_out){
|
||||||
@@ -337,7 +337,7 @@ void Menu::Sort() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (order == OrderType_Decending) {
|
if (order == OrderType_Descending) {
|
||||||
return r < 0;
|
return r < 0;
|
||||||
} else {
|
} else {
|
||||||
return r > 0;
|
return r > 0;
|
||||||
@@ -363,7 +363,7 @@ void Menu::Sort() {
|
|||||||
|
|
||||||
if (lhs_timestamp == rhs_timestamp) {
|
if (lhs_timestamp == rhs_timestamp) {
|
||||||
return name_cmp(lhs, rhs);
|
return name_cmp(lhs, rhs);
|
||||||
} else if (order == OrderType_Decending) {
|
} else if (order == OrderType_Descending) {
|
||||||
return lhs_timestamp > rhs_timestamp;
|
return lhs_timestamp > rhs_timestamp;
|
||||||
} else {
|
} else {
|
||||||
return lhs_timestamp < rhs_timestamp;
|
return lhs_timestamp < rhs_timestamp;
|
||||||
@@ -379,7 +379,7 @@ void Menu::Sort() {
|
|||||||
case SortType_Size: {
|
case SortType_Size: {
|
||||||
if (lhs.size == rhs.size) {
|
if (lhs.size == rhs.size) {
|
||||||
return name_cmp(lhs, rhs);
|
return name_cmp(lhs, rhs);
|
||||||
} else if (order == OrderType_Decending) {
|
} else if (order == OrderType_Descending) {
|
||||||
return lhs.size > rhs.size;
|
return lhs.size > rhs.size;
|
||||||
} else {
|
} else {
|
||||||
return lhs.size < rhs.size;
|
return lhs.size < rhs.size;
|
||||||
|
|||||||
Reference in New Issue
Block a user