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
29bfb507
Kaydet (Commit)
29bfb507
authored
Nis 18, 2013
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
get rid of some Germanism (and some Windowsism)
Change-Id: I2ca1b34ff688a7d4fcf6c84c02035eda3ab0dee8
üst
f1efc98b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
runtime.cxx
basic/source/runtime/runtime.cxx
+7
-7
sbxdate.cxx
basic/source/sbx/sbxdate.cxx
+6
-6
No files found.
basic/source/runtime/runtime.cxx
Dosyayı görüntüle @
29bfb507
...
...
@@ -379,25 +379,25 @@ void SbiInstance::PrepareNumberFormatter( SvNumberFormatter*& rpNumberFormatter,
// HACK, beause the numberformatter doesn't swap the place holders
// for month, day and year according to the system setting.
// Problem: Print Year(Date) under engl. BS
// also have a look at:
svtools\source\sbx\
sbxdate.cxx
// also have a look at:
basic/source/sbx/
sbxdate.cxx
OUString
aDateStr
;
switch
(
eDate
)
{
case
MDY
:
aDateStr
=
"MM.TT.JJJJ"
;
break
;
case
DMY
:
aDateStr
=
"TT.MM.JJJJ
"
;
break
;
case
YMD
:
aDateStr
=
"JJJJ.MM.TT
"
;
break
;
default
:
aDateStr
=
"MM.TT.JJJJ
"
;
break
;
default
:
case
MDY
:
aDateStr
=
"MM/DD/YYYY
"
;
break
;
case
DMY
:
aDateStr
=
"DD/MM/YYYY
"
;
break
;
case
YMD
:
aDateStr
=
"YYYY/MM/DD
"
;
break
;
}
OUString
aStr
(
aDateStr
);
// PutandConvertEntry() modifies string!
rpNumberFormatter
->
PutandConvertEntry
(
aStr
,
nCheckPos
,
nType
,
rnStdDateIdx
,
LANGUAGE_
GERMAN
,
eLangType
);
rnStdDateIdx
,
LANGUAGE_
ENGLISH_US
,
eLangType
);
nCheckPos
=
0
;
OUString
aStrHHMMSS
(
" HH:MM:SS"
);
aDateStr
+=
aStrHHMMSS
;
aStr
=
aDateStr
;
rpNumberFormatter
->
PutandConvertEntry
(
aStr
,
nCheckPos
,
nType
,
rnStdDateTimeIdx
,
LANGUAGE_
GERMAN
,
eLangType
);
rnStdDateTimeIdx
,
LANGUAGE_
ENGLISH_US
,
eLangType
);
}
...
...
basic/source/sbx/sbxdate.cxx
Dosyayı görüntüle @
29bfb507
...
...
@@ -110,24 +110,24 @@ double ImpGetDate( const SbxValues* p )
// HACK, because the number formatter in PutandConvertEntry replace the wildcard
// for month, day, year not according to the configuration.
// Problem: Print Year(Date) under Engl. OS
// quod vide basic
\source\runtime\
runtime.cxx
// quod vide basic
/source/runtime/
runtime.cxx
SvtSysLocale
aSysLocale
;
DateFormat
eDate
=
aSysLocale
.
GetLocaleData
().
getDateFormat
();
OUString
aDateStr
;
switch
(
eDate
)
{
case
MDY
:
aDateStr
=
"MM.TT.JJJJ"
;
break
;
case
DMY
:
aDateStr
=
"TT.MM.JJJJ
"
;
break
;
case
YMD
:
aDateStr
=
"JJJJ.MM.TT
"
;
break
;
default:
aDateStr
=
"MM.TT.JJJJ"
;
default:
case
MDY
:
aDateStr
=
"MM/DD/YYYY
"
;
break
;
case
DMY
:
aDateStr
=
"DD/MM/YYYY
"
;
break
;
case
YMD
:
aDateStr
=
"YYYY/MM/DD"
;
break
;
}
OUString
aStr
(
aDateStr
);
aStr
+=
" HH:MM:SS"
;
pFormatter
->
PutandConvertEntry
(
aStr
,
nCheckPos
,
nType
,
nIndex
,
LANGUAGE_
GERMAN
,
eLangType
);
nIndex
,
LANGUAGE_
ENGLISH_US
,
eLangType
);
sal_Bool
bSuccess
=
pFormatter
->
IsNumberFormat
(
*
p
->
pOUString
,
nIndex
,
nRes
);
if
(
bSuccess
)
{
...
...
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