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
3162d9d4
Kaydet (Commit)
3162d9d4
authored
Agu 24, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused STARTLANG feature
Change-Id: Ib33f2ba2541faad24779cfdfbff7cf7f8a960af2
üst
847d60c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
84 deletions
+0
-84
langselect.cxx
desktop/source/app/langselect.cxx
+0
-70
common_brand.scp
scp2/source/ooo/common_brand.scp
+0
-14
No files found.
desktop/source/app/langselect.cxx
Dosyayı görüntüle @
3162d9d4
...
@@ -24,10 +24,6 @@
...
@@ -24,10 +24,6 @@
#include <stdio.h>
#include <stdio.h>
#include <rtl/string.hxx>
#include <rtl/string.hxx>
#include <rtl/bootstrap.hxx>
#include <unotools/pathoptions.hxx>
#include <tools/resid.hxx>
#include <tools/config.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
...
@@ -41,8 +37,6 @@
...
@@ -41,8 +37,6 @@
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include "com/sun/star/util/XFlushable.hpp"
#include "com/sun/star/util/XFlushable.hpp"
#include <rtl/instance.hxx>
#include <rtl/instance.hxx>
#include <osl/process.h>
#include <osl/file.hxx>
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
uno
;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
lang
;
...
@@ -53,48 +47,10 @@ using namespace com::sun::star::util;
...
@@ -53,48 +47,10 @@ using namespace com::sun::star::util;
namespace
desktop
{
namespace
desktop
{
static
char
const
SOFFICE_BOOTSTRAP
[]
=
"Bootstrap"
;
static
char
const
SOFFICE_STARTLANG
[]
=
"STARTLANG"
;
sal_Bool
LanguageSelection
::
bFoundLanguage
=
sal_False
;
sal_Bool
LanguageSelection
::
bFoundLanguage
=
sal_False
;
OUString
LanguageSelection
::
aFoundLanguage
;
OUString
LanguageSelection
::
aFoundLanguage
;
LanguageSelection
::
LanguageSelectionStatus
LanguageSelection
::
m_eStatus
=
LS_STATUS_OK
;
LanguageSelection
::
LanguageSelectionStatus
LanguageSelection
::
m_eStatus
=
LS_STATUS_OK
;
static
sal_Bool
existsURL
(
OUString
const
&
sURL
)
{
using
namespace
osl
;
DirectoryItem
aDirItem
;
if
(
!
sURL
.
isEmpty
())
return
(
DirectoryItem
::
get
(
sURL
,
aDirItem
)
==
DirectoryItem
::
E_None
);
return
sal_False
;
}
// locate soffice.ini/.rc file
static
OUString
locateSofficeIniFile
()
{
OUString
aUserDataPath
;
OUString
aSofficeIniFileURL
;
// Retrieve the default file URL for the soffice.ini/rc
rtl
::
Bootstrap
().
getIniName
(
aSofficeIniFileURL
);
if
(
utl
::
Bootstrap
::
locateUserData
(
aUserDataPath
)
==
utl
::
Bootstrap
::
PATH_EXISTS
)
{
sal_Int32
nIndex
=
aSofficeIniFileURL
.
lastIndexOf
(
'/'
);
if
(
nIndex
>
0
)
{
OUString
aUserSofficeIniFileURL
=
aUserDataPath
+
"/config"
+
aSofficeIniFileURL
.
copy
(
nIndex
);
if
(
existsURL
(
aUserSofficeIniFileURL
))
return
aUserSofficeIniFileURL
;
}
}
// Fallback try to use the soffice.ini/rc from program folder
return
aSofficeIniFileURL
;
}
bool
LanguageSelection
::
prepareLanguage
()
bool
LanguageSelection
::
prepareLanguage
()
{
{
m_eStatus
=
LS_STATUS_OK
;
m_eStatus
=
LS_STATUS_OK
;
...
@@ -136,7 +92,6 @@ bool LanguageSelection::prepareLanguage()
...
@@ -136,7 +92,6 @@ bool LanguageSelection::prepareLanguage()
// get the selected UI language as string
// get the selected UI language as string
bool
bCmdLanguage
(
false
);
bool
bCmdLanguage
(
false
);
bool
bIniLanguage
(
false
);
OUString
aLocaleString
=
getUserUILanguage
();
OUString
aLocaleString
=
getUserUILanguage
();
if
(
aLocaleString
.
isEmpty
()
)
if
(
aLocaleString
.
isEmpty
()
)
...
@@ -153,23 +108,6 @@ bool LanguageSelection::prepareLanguage()
...
@@ -153,23 +108,6 @@ bool LanguageSelection::prepareLanguage()
}
}
else
else
aLocaleString
=
aEmpty
;
aLocaleString
=
aEmpty
;
if
(
!
bCmdLanguage
)
{
OUString
aSOfficeIniURL
=
locateSofficeIniFile
();
Config
aConfig
(
aSOfficeIniURL
);
aConfig
.
SetGroup
(
SOFFICE_BOOTSTRAP
);
OString
sLang
=
aConfig
.
ReadKey
(
SOFFICE_STARTLANG
);
aLocaleString
=
OUString
(
sLang
.
getStr
(),
sLang
.
getLength
(),
RTL_TEXTENCODING_ASCII_US
);
if
(
isInstalledLanguage
(
aLocaleString
,
sal_False
))
{
bIniLanguage
=
true
;
bFoundLanguage
=
true
;
aFoundLanguage
=
aLocaleString
;
}
else
aLocaleString
=
aEmpty
;
}
}
}
// user further fallbacks for the UI language
// user further fallbacks for the UI language
...
@@ -194,14 +132,6 @@ bool LanguageSelection::prepareLanguage()
...
@@ -194,14 +132,6 @@ bool LanguageSelection::prepareLanguage()
Reference
<
XChangesBatch
>
(
xProp
,
UNO_QUERY_THROW
)
->
commitChanges
();
Reference
<
XChangesBatch
>
(
xProp
,
UNO_QUERY_THROW
)
->
commitChanges
();
}
}
if
(
bIniLanguage
)
{
// Store language only
Reference
<
XPropertySet
>
xProp2
(
getConfigAccess
(
"org.openoffice.Office.Linguistic/General/"
,
sal_True
),
UNO_QUERY_THROW
);
xProp2
->
setPropertyValue
(
"UILocale"
,
makeAny
(
aLocaleString
));
Reference
<
XChangesBatch
>
(
xProp2
,
UNO_QUERY_THROW
)
->
commitChanges
();
}
MsLangId
::
setConfiguredSystemUILanguage
(
aUILanguageTag
.
getLanguageType
(
false
)
);
MsLangId
::
setConfiguredSystemUILanguage
(
aUILanguageTag
.
getLanguageType
(
false
)
);
OUString
sLocale
;
OUString
sLocale
;
...
...
scp2/source/ooo/common_brand.scp
Dosyayı görüntüle @
3162d9d4
...
@@ -939,20 +939,6 @@ ProfileItem gid_Brand_Profileitem_Soffice_Hideeula
...
@@ -939,20 +939,6 @@ ProfileItem gid_Brand_Profileitem_Soffice_Hideeula
Value = "1";
Value = "1";
End
End
#ifdef WNT
ProfileItem gid_Brand_Profileitem_Soffice_Startlang
ProfileID = gid_Brand_Profile_Soffice_Ini;
ModuleID = gid_Module_Root_Brand;
Section = "Bootstrap";
Order = 8;
Key = "STARTLANG";
Value = "[STARTLANG]";
Inifiletablekey = "STARTLANG";
Inifiletableaction = "1";
Styles = (INIFILETABLE);
End
#endif
ProfileItem gid_Brand_Profileitem_Version_Buildid
ProfileItem gid_Brand_Profileitem_Version_Buildid
ProfileID = gid_Brand_Profile_Version_Ini;
ProfileID = gid_Brand_Profile_Version_Ini;
ModuleID = gid_Module_Root_Brand;
ModuleID = gid_Module_Root_Brand;
...
...
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