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
5b465d87
Kaydet (Commit)
5b465d87
authored
Eyl 16, 2011
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cleanup: don't use German as fallback language
üst
a705aec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
helpmerge.cxx
l10ntools/source/helpmerge.cxx
+0
-11
No files found.
l10ntools/source/helpmerge.cxx
Dosyayı görüntüle @
5b465d87
...
...
@@ -52,7 +52,6 @@
void
HelpParser
::
FillInFallbacks
(
LangHashMap
&
rElem_out
,
ByteString
sLangIdx_in
){
/*****************************************************************************/
static
const
ByteString
ENGLISH_LANGUAGECODE
(
"en-US"
);
static
const
ByteString
GERMAN_LANGUAGECODE
(
"de"
);
ByteString
sCur
;
XMLElement
*
pTmp
=
NULL
;
XMLElement
*
pTmp2
=
NULL
;
...
...
@@ -75,14 +74,6 @@ void HelpParser::FillInFallbacks( LangHashMap& rElem_out, ByteString sLangIdx_in
pTmp
->
ChangeLanguageTag
(
String
(
sLangIdx_in
,
RTL_TEXTENCODING_ASCII_US
)
);
rElem_out
[
sCur
]
=
pTmp
;
pTmp2
=
NULL
;
}
else
if
(
(
rElem_out
.
find
(
GERMAN_LANGUAGECODE
)
!=
rElem_out
.
end
()
)
&&
rElem_out
[
GERMAN_LANGUAGECODE
]
!=
NULL
){
// No English
pTmp2
=
rElem_out
[
GERMAN_LANGUAGECODE
];
pTmp
=
new
XMLElement
(
*
pTmp2
);
// Copy
pTmp
->
SetPos
(
pTmp2
->
GetPos
()
+
1
);
pTmp
->
ChangeLanguageTag
(
String
(
sLangIdx_in
,
RTL_TEXTENCODING_ASCII_US
)
);
rElem_out
[
sCur
]
=
pTmp
;
pTmp2
=
NULL
;
}
else
{
fprintf
(
stdout
,
"ERROR: No Fallback found for language %s:
\n
"
,
sCur
.
GetBuffer
());
rElem_out
[
sCur
]
=
new
XMLElement
();
// Use dummy element
...
...
@@ -322,7 +313,6 @@ bool ByteStringLess( const ByteString& rKey1, const ByteString& rKey2 ) {
void
HelpParser
::
parse_languages
(
std
::
vector
<
ByteString
>&
aLanguages
,
MergeDataFile
&
aMergeDataFile
){
std
::
vector
<
ByteString
>
aTmp
;
const
ByteString
DE
(
"de"
);
const
ByteString
ENUS
(
"en-US"
);
static
const
ByteString
ALL
(
"ALL"
);
...
...
@@ -331,7 +321,6 @@ void HelpParser::parse_languages( std::vector<ByteString>& aLanguages , MergeDat
if
(
Export
::
sLanguages
.
EqualsIgnoreCaseAscii
(
ALL
)
)
{
aLanguages
=
aMergeDataFile
.
GetLanguages
();
aLanguages
.
push_back
(
DE
);
aLanguages
.
push_back
(
ENUS
);
if
(
!
Export
::
sForcedLanguages
.
Equals
(
""
)
)
...
...
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