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
42455e14
Kaydet (Commit)
42455e14
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: I800638b4e4493988c30470359a78850c4149500b
üst
0ef605d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
17 deletions
+11
-17
hyphenimp.cxx
...onent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
+3
-5
lingutil.cxx
lingucomponent/source/lingutil/lingutil.cxx
+2
-2
sspellimp.cxx
lingucomponent/source/spellcheck/spell/sspellimp.cxx
+3
-5
nthesimp.cxx
lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+3
-5
No files found.
lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
Dosyayı görüntüle @
42455e14
...
...
@@ -22,7 +22,7 @@
#include <cppuhelper/factory.hxx> // helper for factories
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <i18npool/
mslangid
.hxx>
#include <i18npool/
languagetag
.hxx>
#include <tools/debug.hxx>
#include <osl/mutex.hxx>
...
...
@@ -172,8 +172,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
k
=
0
;
for
(
aItB
=
aLocaleNamesSet
.
begin
();
aItB
!=
aLocaleNamesSet
.
end
();
++
aItB
)
{
Locale
aTmp
(
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
*
aItB
)));
Locale
aTmp
(
LanguageTag
(
*
aItB
).
getLocale
());
aSuppLocales
[
k
++
]
=
aTmp
;
}
...
...
@@ -205,8 +204,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
{
aDicts
[
k
].
aPtr
=
NULL
;
aDicts
[
k
].
eEnc
=
RTL_TEXTENCODING_DONTKNOW
;
aDicts
[
k
].
aLoc
=
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
aDictIt
->
aLocaleNames
[
i
]
));
aDicts
[
k
].
aLoc
=
LanguageTag
(
aDictIt
->
aLocaleNames
[
i
]
).
getLocale
();
aDicts
[
k
].
apCC
=
new
CharClass
(
aDicts
[
k
].
aLoc
);
// also both files have to be in the same directory and the
// file names must only differ in the extension (.aff/.dic).
...
...
lingucomponent/source/lingutil/lingutil.cxx
Dosyayı görüntüle @
42455e14
...
...
@@ -203,7 +203,7 @@ void MergeNewStyleDicsAndOldStyleDics(
sal_Int32
nLocaleNames
=
aLocaleNames
.
getLength
();
for
(
sal_Int32
k
=
0
;
k
<
nLocaleNames
;
++
k
)
{
LanguageType
nLang
=
MsLangId
::
convertIsoStringToLanguage
(
aLocaleNames
[
k
]
);
LanguageType
nLang
=
LanguageTag
(
aLocaleNames
[
k
]
).
getLanguageType
(
);
aNewStyleLanguages
.
insert
(
nLang
);
}
}
...
...
@@ -219,7 +219,7 @@ void MergeNewStyleDicsAndOldStyleDics(
DBG_ASSERT
(
nOldStyleDics
,
"old style dictionary with more then one language found!"
);
if
(
nOldStyleDics
>
0
)
{
LanguageType
nLang
=
MsLangId
::
convertIsoStringToLanguage
(
aIt2
->
aLocaleNames
[
0
]
);
LanguageType
nLang
=
LanguageTag
(
aIt2
->
aLocaleNames
[
0
]
).
getLanguageType
(
);
if
(
nLang
==
LANGUAGE_DONTKNOW
||
nLang
==
LANGUAGE_NONE
)
{
...
...
lingucomponent/source/spellcheck/spell/sspellimp.cxx
Dosyayı görüntüle @
42455e14
...
...
@@ -34,7 +34,7 @@
#include <linguistic/lngprops.hxx>
#include <linguistic/spelldta.hxx>
#include <i18npool/
mslangid
.hxx>
#include <i18npool/
languagetag
.hxx>
#include <unotools/pathoptions.hxx>
#include <unotools/lingucfg.hxx>
#include <unotools/useroptions.hxx>
...
...
@@ -168,8 +168,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
k
=
0
;
for
(
aItB
=
aLocaleNamesSet
.
begin
();
aItB
!=
aLocaleNamesSet
.
end
();
++
aItB
)
{
Locale
aTmp
(
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
*
aItB
)));
Locale
aTmp
(
LanguageTag
(
*
aItB
).
getLocale
());
aSuppLocales
[
k
++
]
=
aTmp
;
}
...
...
@@ -203,8 +202,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
{
aDicts
[
k
]
=
NULL
;
aDEncs
[
k
]
=
RTL_TEXTENCODING_DONTKNOW
;
aDLocs
[
k
]
=
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
aLocaleNames
[
i
]
));
aDLocs
[
k
]
=
LanguageTag
(
aLocaleNames
[
i
]
).
getLocale
();
// also both files have to be in the same directory and the
// file names must only differ in the extension (.aff/.dic).
// Thus we use the first location only and strip the extension part.
...
...
lingucomponent/source/thesaurus/libnth/nthesimp.cxx
Dosyayı görüntüle @
42455e14
...
...
@@ -23,7 +23,7 @@
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/linguistic2/LinguServiceManager.hpp>
#include <i18npool/
mslangid
.hxx>
#include <i18npool/
languagetag
.hxx>
#include <tools/debug.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/mutex.hxx>
...
...
@@ -197,8 +197,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales()
k
=
0
;
for
(
aItB
=
aLocaleNamesSet
.
begin
();
aItB
!=
aLocaleNamesSet
.
end
();
++
aItB
)
{
Locale
aTmp
(
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
*
aItB
)));
Locale
aTmp
(
LanguageTag
(
*
aItB
).
getLocale
());
aSuppLocales
[
k
++
]
=
aTmp
;
}
...
...
@@ -234,8 +233,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales()
{
aThes
[
k
]
=
NULL
;
aTEncs
[
k
]
=
RTL_TEXTENCODING_DONTKNOW
;
aTLocs
[
k
]
=
MsLangId
::
convertLanguageToLocale
(
MsLangId
::
convertIsoStringToLanguage
(
aDictIt
->
aLocaleNames
[
i
]
));
aTLocs
[
k
]
=
LanguageTag
(
aDictIt
->
aLocaleNames
[
i
]
).
getLocale
();
aCharSetInfo
[
k
]
=
new
CharClass
(
aTLocs
[
k
]
);
// also both files have to be in the same directory and the
// file names must only differ in the extension (.aff/.dic).
...
...
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