From a9759ebf1b868b97f909dbb65d64395fa281fa67 Mon Sep 17 00:00:00 2001 From: Maxim Pimenov Date: Fri, 10 Nov 2017 16:31:01 +0300 Subject: [PATCH] [indexer] [search] Enabled the Persian language for categories. --- indexer/categories_holder.cpp | 3 ++- indexer/categories_holder.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/indexer/categories_holder.cpp b/indexer/categories_holder.cpp index 2f7baf0c43..e843b766ff 100644 --- a/indexer/categories_holder.cpp +++ b/indexer/categories_holder.cpp @@ -179,7 +179,8 @@ vector const CategoriesHolder::kLocaleMapping = {{"en {"fi", 27}, {"el", 28}, {"he", 29}, - {"sw", 30}}; + {"sw", 30}, + {"fa", 31}}; vector CategoriesHolder::kDisabledLanguages = {"el", "he", "sw"}; CategoriesHolder::CategoriesHolder(unique_ptr && reader) diff --git a/indexer/categories_holder.hpp b/indexer/categories_holder.hpp index 40f34bc597..4240e64f6e 100644 --- a/indexer/categories_holder.hpp +++ b/indexer/categories_holder.hpp @@ -65,7 +65,7 @@ private: public: static int8_t constexpr kEnglishCode = 1; static int8_t constexpr kUnsupportedLocaleCode = -1; - static uint8_t constexpr kMaxSupportedLocaleIndex = 30; + static uint8_t constexpr kMaxSupportedLocaleIndex = 31; static vector const kLocaleMapping; // List of languages that are currently disabled in the application