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
3dd16c68
Kaydet (Commit)
3dd16c68
authored
Tem 11, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use LanguageTag to convert
Change-Id: I689bb64664ee36b2e3e8386ebd20cdd95c51142b
üst
96086484
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
28 deletions
+2
-28
doctemplates.cxx
sfx2/source/doc/doctemplates.cxx
+2
-28
No files found.
sfx2/source/doc/doctemplates.cxx
Dosyayı görüntüle @
3dd16c68
...
@@ -401,9 +401,7 @@ void SfxDocTplService_Impl::init_Impl()
...
@@ -401,9 +401,7 @@ void SfxDocTplService_Impl::init_Impl()
getDefaultLocale
();
getDefaultLocale
();
// convert locale to string
// convert locale to string
OUString
aLang
=
maLocale
.
Language
;
OUString
aLang
=
LanguageTag
(
maLocale
).
getBcp47
();
aLang
+=
OUString
(
'-'
);
aLang
+=
maLocale
.
Country
;
// set maRootContent to the root of the templates hierarchy. Create the
// set maRootContent to the root of the templates hierarchy. Create the
// entry if necessary
// entry if necessary
...
@@ -490,31 +488,7 @@ void SfxDocTplService_Impl::getDefaultLocale()
...
@@ -490,31 +488,7 @@ void SfxDocTplService_Impl::getDefaultLocale()
::
osl
::
MutexGuard
aGuard
(
maMutex
);
::
osl
::
MutexGuard
aGuard
(
maMutex
);
if
(
!
mbLocaleSet
)
if
(
!
mbLocaleSet
)
{
{
OUString
aLocale
(
utl
::
ConfigManager
::
getLocale
()
);
maLocale
=
LanguageTag
(
utl
::
ConfigManager
::
getLocale
()).
getLocale
(
false
);
if
(
!
aLocale
.
isEmpty
()
)
{
sal_Int32
nPos
=
aLocale
.
indexOf
(
sal_Unicode
(
'-'
)
);
if
(
nPos
!=
-
1
)
{
maLocale
.
Language
=
aLocale
.
copy
(
0
,
nPos
);
nPos
=
aLocale
.
indexOf
(
sal_Unicode
(
'_'
),
nPos
+
1
);
if
(
nPos
!=
-
1
)
{
maLocale
.
Country
=
aLocale
.
copy
(
maLocale
.
Language
.
getLength
()
+
1
,
nPos
-
maLocale
.
Language
.
getLength
()
-
1
);
maLocale
.
Variant
=
aLocale
.
copy
(
nPos
+
1
);
}
else
{
maLocale
.
Country
=
aLocale
.
copy
(
maLocale
.
Language
.
getLength
()
+
1
);
}
}
}
mbLocaleSet
=
sal_True
;
mbLocaleSet
=
sal_True
;
}
}
}
}
...
...
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