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
33c36fb9
Kaydet (Commit)
33c36fb9
authored
Tem 09, 2014
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
localized GetFullName()
Change-Id: I4f2bffadef3db1bd07432202525734ab9b0cb0de
üst
f285ac7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
6 deletions
+32
-6
useroptions.cxx
unotools/source/config/useroptions.cxx
+32
-6
No files found.
unotools/source/config/useroptions.cxx
Dosyayı görüntüle @
33c36fb9
...
...
@@ -18,7 +18,7 @@
*/
#include <unotools/useroptions.hxx>
#include <unotools/syslocale.hxx>
#include <unotools/configmgr.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
...
...
@@ -37,6 +37,7 @@
#include <com/sun/star/util/ChangesEvent.hpp>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <i18nlangtag/mslangid.hxx>
using
namespace
utl
;
using
namespace
com
::
sun
::
star
;
...
...
@@ -194,11 +195,36 @@ void SvtUserOptions::Impl::SetToken (sal_uInt16 nToken, OUString const& sToken)
OUString
SvtUserOptions
::
Impl
::
GetFullName
()
const
{
// TODO international name
OUString
sFullName
=
GetToken
(
USER_OPT_FIRSTNAME
).
trim
();
if
(
!
sFullName
.
isEmpty
())
sFullName
+=
" "
;
sFullName
+=
GetToken
(
USER_OPT_LASTNAME
).
trim
();
OUString
sFullName
;
switch
(
LanguageType
const
eLang
=
SvtSysLocale
().
GetUILanguageTag
().
getLanguageType
())
{
case
LANGUAGE_RUSSIAN
:
sFullName
=
GetToken
(
USER_OPT_FIRSTNAME
).
trim
();
if
(
!
sFullName
.
isEmpty
())
sFullName
+=
" "
;
sFullName
+=
GetToken
(
USER_OPT_FATHERSNAME
).
trim
();
if
(
!
sFullName
.
isEmpty
())
sFullName
+=
" "
;
sFullName
+=
GetToken
(
USER_OPT_LASTNAME
).
trim
();
break
;
default
:
if
(
MsLangId
::
isFamilyNameFirst
(
eLang
))
{
sFullName
=
GetToken
(
USER_OPT_LASTNAME
).
trim
();
if
(
!
sFullName
.
isEmpty
())
sFullName
+=
" "
;
sFullName
+=
GetToken
(
USER_OPT_FIRSTNAME
).
trim
();
}
else
{
sFullName
=
GetToken
(
USER_OPT_FIRSTNAME
).
trim
();
if
(
!
sFullName
.
isEmpty
())
sFullName
+=
" "
;
sFullName
+=
GetToken
(
USER_OPT_LASTNAME
).
trim
();
}
break
;
}
return
sFullName
;
}
...
...
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