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
ee30270f
Kaydet (Commit)
ee30270f
authored
Kas 16, 2012
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use LanguageTag
Change-Id: I1d7ba0066ab871ac471a57bbbf0bbf07bc6350cc
üst
4b4cbca6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
18 deletions
+9
-18
langsupport.cxx
svtools/langsupport/langsupport.cxx
+2
-9
fmtfield.cxx
svtools/source/control/fmtfield.cxx
+7
-9
No files found.
svtools/langsupport/langsupport.cxx
Dosyayı görüntüle @
ee30270f
...
...
@@ -31,7 +31,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <comphelper/processfactory.hxx>
#include <cppuhelper/bootstrap.hxx>
#include <i18npool/
mslangid
.hxx>
#include <i18npool/
languagetag
.hxx>
#include <sal/main.h>
#include <svtools/langtab.hxx>
#include <tools/extendapplicationenvironment.hxx>
...
...
@@ -76,14 +76,7 @@ SAL_IMPLEMENT_MAIN()
continue
;
}
lang
::
Locale
aLocale
;
MsLangId
::
convertLanguageToLocale
(
eLang
,
aLocale
);
rtl
::
OUStringBuffer
aBuf
(
aLocale
.
Language
);
if
(
!
aLocale
.
Country
.
isEmpty
())
aBuf
.
append
(
'-'
).
append
(
aLocale
.
Country
);
rtl
::
OUString
sTag
=
aBuf
.
makeStringAndClear
();
rtl
::
OUString
sTag
(
LanguageTag
(
eLang
).
getBcp47
());
std
::
cout
<<
rtl
::
OUStringToOString
(
sTag
,
osl_getThreadTextEncoding
()).
getStr
()
<<
std
::
endl
;
...
...
svtools/source/control/fmtfield.cxx
Dosyayı görüntüle @
ee30270f
...
...
@@ -35,7 +35,7 @@
#include <vcl/svapp.hxx>
#include <svl/zformat.hxx>
#include <svtools/fmtfield.hxx>
#include <i18npool/
mslangid
.hxx>
#include <i18npool/
languagetag
.hxx>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/util/SearchOptions.hpp>
#include <com/sun/star/util/SearchAlgorithms.hpp>
...
...
@@ -293,8 +293,8 @@ SvNumberFormatter* FormattedField::StaticFormatter::GetFormatter()
if
(
!
s_cFormatter
)
{
// get the Office's locale and translate
LanguageType
eSysLanguage
=
MsLangId
::
convertLocaleToLanguage
(
SvtSysLocale
().
GetLocaleData
().
getLocale
()
);
LanguageType
eSysLanguage
=
LanguageTag
(
SvtSysLocale
().
GetLocaleData
().
getLocale
()
).
getLanguageType
(
false
);
s_cFormatter
=
new
SvNumberFormatter
(
::
comphelper
::
getProcessServiceFactory
(),
eSysLanguage
);
...
...
@@ -619,8 +619,8 @@ void FormattedField::SetFormatter(SvNumberFormatter* pFormatter, sal_Bool bReset
if
(
m_pFormatter
)
{
// get the Office's locale and translate
LanguageType
eSysLanguage
=
MsLangId
::
convertLocaleToLanguage
(
SvtSysLocale
().
GetLocaleData
().
getLocale
()
);
LanguageType
eSysLanguage
=
LanguageTag
(
SvtSysLocale
().
GetLocaleData
().
getLocale
()
).
getLanguageType
(
false
);
// get the standard numeric format for this language
m_nFormatKey
=
m_pFormatter
->
GetStandardFormat
(
NUMBERFORMAT_NUMBER
,
eSysLanguage
);
}
...
...
@@ -1144,8 +1144,7 @@ void DoubleNumericField::ResetConformanceTester()
sal_Unicode
cSeparatorDecimal
=
'.'
;
if
(
pFormatEntry
)
{
Locale
aLocale
;
MsLangId
::
convertLanguageToLocale
(
pFormatEntry
->
GetLanguage
(),
aLocale
);
Locale
aLocale
(
LanguageTag
(
pFormatEntry
->
GetLanguage
()).
getLocale
());
LocaleDataWrapper
aLocaleInfo
(
aLocale
);
String
sSeparator
=
aLocaleInfo
.
getNumThousandSep
();
...
...
@@ -1236,8 +1235,7 @@ void DoubleCurrencyField::UpdateCurrencyFormat()
sal_uInt16
nDigits
=
GetDecimalDigits
();
// build a new format string with the base class' and my own settings
Locale
aLocale
;
MsLangId
::
convertLanguageToLocale
(
eLanguage
,
aLocale
);
Locale
aLocale
(
LanguageTag
(
eLanguage
).
getLocale
());
LocaleDataWrapper
aLocaleInfo
(
aLocale
);
XubString
sNewFormat
;
...
...
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