Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
486e318b
Kaydet (Commit)
486e318b
authored
Ock 22, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CLDR Version 24 doesn't know about es and sl using space before %
Change-Id: I1c3e7dc28e389a9580239165d04b171e06f5618e
üst
3b0cf674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
unicode.cxx
i18nutil/source/utility/unicode.cxx
+12
-1
No files found.
i18nutil/source/utility/unicode.cxx
Dosyayı görüntüle @
486e318b
...
...
@@ -945,7 +945,18 @@ OUString SAL_CALL unicode::formatPercent(double dNumber,
{
// get a currency formatter for this locale ID
UErrorCode
errorCode
=
U_ZERO_ERROR
;
icu
::
Locale
aLocale
=
LanguageTagIcu
::
getIcuLocale
(
rLangTag
);
LanguageTag
aLangTag
(
rLangTag
);
// As of CLDR Version 24 these languages were not listed as using spacing
// between number and % but are reported as such by our l10n groups
// http://www.unicode.org/cldr/charts/24/by_type/numbers.number_formatting_patterns.html
// so format using French which has the desired rules
if
(
aLangTag
.
getLanguage
()
==
"es"
||
aLangTag
.
getLanguage
()
==
"sl"
)
aLangTag
=
LanguageTag
(
"fr-FR"
);
icu
::
Locale
aLocale
=
LanguageTagIcu
::
getIcuLocale
(
aLangTag
);
boost
::
scoped_ptr
<
NumberFormat
>
xF
(
NumberFormat
::
createPercentInstance
(
aLocale
,
errorCode
));
if
(
U_FAILURE
(
errorCode
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment