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
79dbf611
Kaydet (Commit)
79dbf611
authored
Eyl 20, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
do not register LANGUAGE_DONTKNOW
Change-Id: Ibfe4407c1b2740e806c7d9cb75529a8babc3fd92
üst
c640f19c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+8
-4
No files found.
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
79dbf611
...
...
@@ -676,7 +676,8 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
#endif
// Prefer LangID map as find+insert needs less comparison work.
if
(
mbInitializedLangID
)
// Never insert LANGUAGE_DONTKNOW
if
(
mbInitializedLangID
&&
mnLangID
!=
LANGUAGE_DONTKNOW
)
{
MapLangID
&
rMap
=
theMapLangID
::
get
();
MapLangID
::
const_iterator
it
(
rMap
.
find
(
mnLangID
));
...
...
@@ -753,10 +754,13 @@ LanguageTag::ImplPtr LanguageTag::registerImpl() const
OUString
aBcp47
;
if
(
!
bInsert
)
{
// May have involved canonicalize(), so compare with pImpl->maBcp47!
aBcp47
=
LanguageTagImpl
::
convertToBcp47
(
if
(
pImpl
->
mnLangID
!=
LANGUAGE_DONTKNOW
)
{
// May have involved canonicalize(), so compare with pImpl->maBcp47!
aBcp47
=
LanguageTagImpl
::
convertToBcp47
(
MsLangId
::
Conversion
::
convertLanguageToLocale
(
pImpl
->
mnLangID
,
true
));
bInsert
=
(
aBcp47
==
pImpl
->
maBcp47
);
bInsert
=
(
aBcp47
==
pImpl
->
maBcp47
);
}
}
// If round-trip is identical cross-insert to Bcp47 map.
if
(
bInsert
)
...
...
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