Skip to content

Commit

Permalink
Fixes: NB#297804 - Calendar; Weekdays for Afghanistan region are clip…
Browse files Browse the repository at this point in the history
…ped in monthly view

RevBy: John Tapsell

Details:

Add abbreviations for the day names for Pashto.

The Pashto day names for the Gregorian calendar are apparently
letter by letter identical to the Persian ones in libicu.
Therefore, the same abbreviations should work as well.
  • Loading branch information
Mike FABIAN committed Feb 2, 2012
1 parent 293afad commit ff0bede
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
57 changes: 57 additions & 0 deletions src/icu-extradata/data/ps.txt
@@ -0,0 +1,57 @@
ps{
calendar{
gregorian{
dayNames{
format{
wide{
"یکشنبه",
"دوشنبه",
"سه‌شنبه",
"چهارشنبه",
"پنجشنبه",
"جمعه",
"شنبه",
}
abbreviated{
"ی",
"د",
"س",
"چ",
"پ",
"ج",
"ش",
}
}
stand-alone{
narrow{
"ی",
"د",
"س",
"چ",
"پ",
"ج",
"ش",
}
}
}
monthNames{
format{
wide{
"جنوري",
"فبروري",
"مارچ",
"اپریل",
"می",
"جون",
"جولای",
"اګست",
"سپتمبر",
"اکتوبر",
"نومبر",
"دسمبر",
}
}
}
}
}
}
1 change: 1 addition & 0 deletions src/icu-extradata/icu-extradata.pro
Expand Up @@ -57,6 +57,7 @@ greaterThan(ICUVERSION, 4.4) {
data/ms_BN.txt \
data/nn.txt \
data/pl.txt \
data/ps.txt \
data/sk.txt \
data/sl.txt \
data/sr.txt \
Expand Down
4 changes: 3 additions & 1 deletion tests/ft_locales/ft_locales.cpp
Expand Up @@ -4285,6 +4285,8 @@ void Ft_Locales::checkAvailableLocales()
requiredLocaleNames << "nn_NO"; // "Norwegian Nynorsk (Norway)"
requiredLocaleNames << "pl"; // "Polish"
requiredLocaleNames << "pl_PL"; // "Polish (Poland)"
requiredLocaleNames << "ps"; // "Pashto"
requiredLocaleNames << "ps_AF"; // "Pashto (Afghanistan)"
requiredLocaleNames << "pt"; // "Portuguese"
requiredLocaleNames << "pt_BR"; // "Portuguese (Brazil)"
requiredLocaleNames << "pt_PT"; // "Portuguese (Portugal)"
Expand Down Expand Up @@ -4379,7 +4381,7 @@ void Ft_Locales::checkAvailableLocales()
supportedLocaleNames << "zh_CN@collation=stroke";
supportedLocaleNames << "ko_KR";
supportedLocaleNames << "kk_KZ";
bool runFullTest = true;
bool runFullTest = false;
if (!runFullTest) {
supportedLocaleNames.clear();
supportedLocaleNames << "ar_SA"; // "Arabic (Saudi Arabia)"
Expand Down

0 comments on commit ff0bede

Please sign in to comment.