lingucomponent/source/lingutil/lingutil.cxx |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

New commits:
commit e3c88bfcd1b22dd7eef367c688f004cea0d5222e
Author:     خالد حسني <kha...@libreoffice.org>
AuthorDate: Sat Jun 10 17:38:26 2023 +0200
Commit:     خالد حسني <kha...@libreoffice.org>
CommitDate: Sat Jun 10 20:50:04 2023 +0200

    Revert "tdf#64830: Don’t require hunspell dictionary for every Arabic 
locale"
    
    This reverts commit 376aded127cd5c9030c3b52fd2095c4241abc053.
    
    Reason for revert: lacks required number of reviewers
    
    Change-Id: I3c5e05767f3db654fe238fa013ef2f35a09fa844
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152823
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@libreoffice.org>

diff --git a/lingucomponent/source/lingutil/lingutil.cxx 
b/lingucomponent/source/lingutil/lingutil.cxx
index e5ea427eda1c..5e931f894ad2 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -121,18 +121,8 @@ static void GetOldStyleDicsInDir(
                 // add the dictionary to the resulting vector
                 SvtLinguConfigDictionaryEntry aDicEntry;
                 aDicEntry.aLocations = { sPath };
+                aDicEntry.aLocaleNames = { aLocaleName };
                 aDicEntry.aFormatName = aFormatName;
-                if (aLocaleName == u"ar")
-                    aDicEntry.aLocaleNames = {
-                        aLocaleName,
-                        u"ar-AE", u"ar-BH", u"ar-DJ", u"ar-DZ", u"ar-EG",
-                        u"ar-ER", u"ar-IL", u"ar-IQ", u"ar-JO", u"ar-KM",
-                        u"ar-KW", u"ar-LB", u"ar-LY", u"ar-MA", u"ar-MR",
-                        u"ar-OM", u"ar-PS", u"ar-QA", u"ar-SA", u"ar-SD",
-                        u"ar-SO", u"ar-SY", u"ar-TD", u"ar-TN", u"ar-YE"
-                    };
-                else
-                    aDicEntry.aLocaleNames = { aLocaleName };
                 aRes.push_back( aDicEntry );
             }
         }

Reply via email to