Kaydet (Commit) 5acc994f authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Remove obsolote 'empty string -> "-"' behaviour

Change-Id: I1d81d4c5716c397b84c0a8959b21beacbbbf1138
üst 0583907f
dictionaries @ 26b7c425
Subproject commit 36776c334cf3bae5bdd5929fad8e11a8bdf830a4
Subproject commit 26b7c425b0cecaad38249bfdc17b8d5cecee2670
helpcontent2 @ f25d6a10
Subproject commit 4fa871622ae5cb247520fc113d2278be758fa62c
Subproject commit f25d6a1081dd929a8872fcd9305b5f06355d3337
......@@ -500,8 +500,7 @@ void CfgMerge::WorkOnText(OString &rText, const OString& rLangIndex)
OString sContent;
pEntrys->GetText( sContent, STRING_TYP_TEXT, rLangIndex );
if ( !rLangIndex.equalsIgnoreAsciiCase("en-US") &&
( sContent != "-" ) && !sContent.isEmpty())
if ( !rLangIndex.equalsIgnoreAsciiCase("en-US") && !sContent.isEmpty())
{
rText = helper::QuotHTML( rText );
}
......@@ -530,9 +529,7 @@ void CfgMerge::WorkOnResourceEnd()
OString sContent;
pEntrys->GetText( sContent, STRING_TYP_TEXT, sCur , sal_True );
if (
( !sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) ) &&
( sContent != "-" ) && !sContent.isEmpty())
( !sCur.equalsIgnoreAsciiCase("en-US") ) && !sContent.isEmpty())
{
OString sText = helper::QuotHTML( sContent);
......
......@@ -919,26 +919,28 @@ sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew )
sXQHText = pResData->sQuickHelpText[ SOURCE_LANGUAGE ];
sXTitle = pResData->sTitle[ SOURCE_LANGUAGE ];
if (sXText.isEmpty())
sXText = "-";
ConvertExportContent(sXText);
ConvertExportContent(sXHText);
ConvertExportContent(sXQHText);
ConvertExportContent(sXTitle);
common::writePoEntry(
"Transex3", *aOutput.mPo, global::inputPathname,
pResData->sResTyp, sGID, sLID, sXHText, sXText);
if( !sXText.isEmpty() )
{
ConvertExportContent(sXText);
ConvertExportContent(sXHText);
common::writePoEntry(
"Transex3", *aOutput.mPo, global::inputPathname,
pResData->sResTyp, sGID, sLID, sXHText, sXText);
}
if( !sXQHText.isEmpty() )
{
ConvertExportContent(sXQHText);
common::writePoEntry(
"Transex3", *aOutput.mPo, global::inputPathname, pResData->sResTyp,
sGID, sLID, OString(), sXQHText, PoEntry::TQUICKHELPTEXT );
}
if( !sXTitle.isEmpty() )
{
ConvertExportContent(sXTitle);
common::writePoEntry(
"Transex3", *aOutput.mPo, global::inputPathname, pResData->sResTyp,
sGID, sLID, OString(), sXTitle, PoEntry::TTITLE );
}
if ( bCreateNew ) {
pResData->sText[ SOURCE_LANGUAGE ] = "";
......@@ -1508,7 +1510,7 @@ void Export::ResData2Output( MergeEntrys *pEntry, sal_uInt16 nType, const OStrin
OString sText;
sal_Bool bText = pEntry->GetText( sText, nType, sCur , sal_True );
if ( bText && !sText.isEmpty() && sText != "-" ) {
if ( bText && !sText.isEmpty() ) {
OString sOutput;
if ( bNextMustBeDefineEOL) {
if ( bFirst )
......
......@@ -297,8 +297,7 @@ sal_Bool LngParser::Merge(
pEntrys->GetText( sNewText, STRING_TYP_TEXT, sCur, sal_True );
if( sCur == "qtz" )
sNewText = sNewText.copy(sNewText.indexOf("|") + 2);
if (( !sNewText.isEmpty()) &&
!(( sCur.equalsL(RTL_CONSTASCII_STRINGPARAM("x-comment"))) && ( sNewText == "-" )))
if ( !sNewText.isEmpty() && sCur != "x-comment")
{
OString sLine;
sLine += sCur;
......
......@@ -472,7 +472,7 @@ void XRMResMerge::WorkOnDesc(
if ( !sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) &&
( pEntrys->GetText(
sContent, STRING_TYP_TEXT, sCur, sal_True )) &&
( sContent != "-" ) && !sContent.isEmpty())
!sContent.isEmpty())
{
OString sText( sContent );
OString sAdditionalLine( "\n " );
......@@ -547,8 +547,7 @@ void XRMResMerge::WorkOnText(
OString sContent;
if ( !sLang.equalsIgnoreAsciiCase("en-US") &&
( pEntrys->GetText(
sContent, STRING_TYP_TEXT, sLang )) &&
( sContent != "-" ) && !sContent.isEmpty() &&
sContent, STRING_TYP_TEXT, sLang )) && !sContent.isEmpty() &&
helper::isWellFormedXML( sContent ))
{
rText = sContent;
......@@ -584,7 +583,7 @@ void XRMResMerge::EndOfText(
if (!sCur.equalsIgnoreAsciiCaseL(RTL_CONSTASCII_STRINGPARAM("en-US")) &&
( pEntrys->GetText(
sContent, STRING_TYP_TEXT, sCur, sal_True )) &&
( sContent != "-" ) && !sContent.isEmpty() &&
!sContent.isEmpty() &&
helper::isWellFormedXML( sContent ))
{
OString sText( sContent );
......
translations @ 85f724f5
Subproject commit d3a0a08f6d4e27af6960010fa774b96a009bf6bd
Subproject commit 85f724f5aa1d6a59662a7d1c7ea406a641814bd2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment