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
eb1762fe
Kaydet (Commit)
eb1762fe
authored
Ara 02, 2016
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use SvtSysLocaleOptions::GetLanguageTag() instead of GetLocaleConfigString()
Change-Id: Ifcfc4588d5bd6f713a40bd2300740f7a1c52337c
üst
7523b3b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
optgdlg.cxx
cui/source/options/optgdlg.cxx
+10
-10
No files found.
cui/source/options/optgdlg.cxx
Dosyayı görüntüle @
eb1762fe
...
...
@@ -1400,9 +1400,9 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
SAL_WARN
(
"cui.options"
,
"ignoring Exception
\"
"
<<
e
.
Message
<<
"
\"
"
);
}
OUString
sLang
=
pLangConfig
->
aSysLocaleOptions
.
GetLocaleConfigString
(
);
LanguageType
eOldLocale
=
(
!
sLang
.
isEmpty
()
?
LanguageTag
::
convertToLanguageTypeWithFallback
(
sLang
)
:
LANGUAGE_SYSTEM
);
LanguageTag
aLanguageTag
(
pLangConfig
->
aSysLocaleOptions
.
GetLanguageTag
()
);
LanguageType
eOldLocale
=
(
aLanguageTag
.
isSystemLocale
()
?
LANGUAGE_SYSTEM
:
aLanguageTag
.
makeFallback
().
getLanguageType
()
);
LanguageType
eNewLocale
=
m_pLocaleSettingLB
->
GetSelectLanguage
();
// If the "Default ..." entry was selected that means SYSTEM, the actual
...
...
@@ -1569,11 +1569,11 @@ bool OfaLanguagesTabPage::FillItemSet( SfxItemSet* rSet )
void
OfaLanguagesTabPage
::
Reset
(
const
SfxItemSet
*
rSet
)
{
OUString
sLang
=
pLangConfig
->
aSysLocaleOptions
.
GetLocaleConfigString
();
if
(
!
sLang
.
isEmpty
()
)
m_pLocaleSettingLB
->
SelectLanguage
(
LanguageTag
::
convertToLanguageTypeWithFallback
(
sLang
));
else
LanguageTag
aLanguageTag
(
pLangConfig
->
aSysLocaleOptions
.
GetLanguageTag
());
if
(
aLanguageTag
.
isSystemLocale
()
)
m_pLocaleSettingLB
->
SelectLanguage
(
LANGUAGE_USER_SYSTEM_CONFIG
);
else
m_pLocaleSettingLB
->
SelectLanguage
(
aLanguageTag
.
makeFallback
().
getLanguageType
());
bool
bReadonly
=
pLangConfig
->
aSysLocaleOptions
.
IsReadOnly
(
SvtSysLocaleOptions
::
E_LOCALE
);
m_pLocaleSettingLB
->
Enable
(
!
bReadonly
);
m_pLocaleSettingFT
->
Enable
(
!
bReadonly
);
...
...
@@ -1594,10 +1594,10 @@ void OfaLanguagesTabPage::Reset( const SfxItemSet* rSet )
OUString
aAbbrev
;
LanguageType
eLang
;
const
NfCurrencyEntry
*
pCurr
=
nullptr
;
sLang
=
pLangConfig
->
aSysLocaleOptions
.
GetCurrencyConfigString
();
if
(
!
s
Lang
.
isEmpty
()
)
OUString
sCurrency
=
pLangConfig
->
aSysLocaleOptions
.
GetCurrencyConfigString
();
if
(
!
s
Currency
.
isEmpty
()
)
{
SvtSysLocaleOptions
::
GetCurrencyAbbrevAndLanguage
(
aAbbrev
,
eLang
,
s
Lang
);
SvtSysLocaleOptions
::
GetCurrencyAbbrevAndLanguage
(
aAbbrev
,
eLang
,
s
Currency
);
pCurr
=
SvNumberFormatter
::
GetCurrencyEntry
(
aAbbrev
,
eLang
);
}
// if pCurr==NULL the SYSTEM entry is selected
...
...
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