diff options
author | Andras Timar <atimar@suse.com> | 2011-09-16 19:22:38 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2011-09-17 10:18:19 +0200 |
commit | 5b465d87703e4843be36d7175aa3d5a969f86282 (patch) | |
tree | 5a490048a9c2cb680d7dfbc98c921cfd92dc15c2 /l10ntools/source | |
parent | a705aec5117fe9123236ebdeb0d6f271b83f8af4 (diff) |
cleanup: don't use German as fallback language
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/helpmerge.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/l10ntools/source/helpmerge.cxx b/l10ntools/source/helpmerge.cxx index 8b2eee4ad3a3..ba6cda8fb9fb 100644 --- a/l10ntools/source/helpmerge.cxx +++ b/l10ntools/source/helpmerge.cxx @@ -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("") ) |