summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index 5e931f894ad2..e5ea427eda1c 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -121,8 +121,18 @@ 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 );
}
}