mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
[categories] Removed dummy list.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
8393402c02
commit
12dbfc6622
@@ -4886,7 +4886,7 @@ fi:Koirapuisto
|
||||
he:גינת כלבים
|
||||
ja:ドッグラン
|
||||
|
||||
leisure-dance|amenity-dancing_school|@category_entertainment
|
||||
leisure-dance|@category_entertainment
|
||||
en:4Dance|Dancing school
|
||||
|
||||
leisure-garden
|
||||
|
||||
@@ -18,8 +18,6 @@ UNIT_TEST(NewFeatureCategories_UniqueNames)
|
||||
for (auto const & locale : CategoriesHolder::kLocaleMapping)
|
||||
{
|
||||
std::string const lang(locale.m_name);
|
||||
if (base::IsExist(CategoriesHolder::kDisabledLanguages, lang))
|
||||
continue;
|
||||
categories.AddLanguage(lang);
|
||||
auto names = categories.GetAllCreatableTypeNames();
|
||||
std::sort(names.begin(), names.end());
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "coding/reader_streambuf.hpp"
|
||||
|
||||
#include "base/logging.hpp"
|
||||
#include "base/stl_helpers.hpp"
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -309,7 +309,6 @@ int8_t CategoriesHolder::MapLocaleToInteger(std::string_view const locale)
|
||||
ASSERT(!kLocaleMapping.empty(), ());
|
||||
ASSERT_EQUAL(kLocaleMapping[0].m_name, std::string_view("en"), ());
|
||||
ASSERT_EQUAL(kLocaleMapping[0].m_code, kEnglishCode, ());
|
||||
ASSERT(!base::IsExist(kDisabledLanguages, std::string_view("en")), ());
|
||||
|
||||
for (auto it = kLocaleMapping.crbegin(); it != kLocaleMapping.crend(); ++it)
|
||||
{
|
||||
|
||||
@@ -117,10 +117,6 @@ public:
|
||||
{"zh-Hant", kTraditionalChineseCode},
|
||||
}};
|
||||
|
||||
// List of languages that are currently disabled in the application
|
||||
// because their translations are not yet complete.
|
||||
static std::array<char const *, 1> constexpr kDisabledLanguages = {"sw"};
|
||||
|
||||
explicit CategoriesHolder(std::unique_ptr<Reader> && reader);
|
||||
|
||||
template <class ToDo>
|
||||
|
||||
Reference in New Issue
Block a user