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
93f49088
Kaydet (Commit)
93f49088
authored
Eyl 05, 2017
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Introduce LanguageTag::getBcp47MS() for writing MS malformed tags, tdf#83190
Change-Id: I1e2815b9ae60681c7cddc416cc05bf4c70dcc48a
üst
8cca31aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
languagetag.cxx
i18nlangtag/source/languagetag/languagetag.cxx
+8
-0
languagetag.hxx
include/i18nlangtag/languagetag.hxx
+8
-0
No files found.
i18nlangtag/source/languagetag/languagetag.cxx
Dosyayı görüntüle @
93f49088
...
...
@@ -2359,6 +2359,14 @@ LanguageTag & LanguageTag::makeFallback()
}
OUString
LanguageTag
::
getBcp47MS
()
const
{
if
(
getLanguageType
()
==
LANGUAGE_SPANISH_DATED
)
return
"es-ES_tradnl"
;
return
getBcp47
();
}
bool
LanguageTag
::
equals
(
const
LanguageTag
&
rLanguageTag
)
const
{
// If SYSTEM is not to be resolved or either both are SYSTEM or none, we
...
...
include/i18nlangtag/languagetag.hxx
Dosyayı görüntüle @
93f49088
...
...
@@ -120,6 +120,14 @@ public:
*/
const
OUString
&
getBcp47
(
bool
bResolveSystem
=
true
)
const
;
/** Obtain BCP 47 language tag, but with MS malformed exceptions.
To be used *only* in OOXML filter context.
For example, es-ES-u-co-trad is stored as es-ES_tradnl which is not a
valid BCP 47 language tag.
*/
OUString
getBcp47MS
()
const
;
/** Obtain language tag as Locale.
As a convention, language tags that can not be expressed as "pure"
...
...
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