Kaydet (Commit) 87d683ea authored tarafından Zolnai Tamás's avatar Zolnai Tamás Kaydeden (comit) Zolnai Tamás

Transex3: no need to check whether a lang occurs twice

It was an old concept that besides the en-US entry
other language entries were also added and in this
case may happened that one lang occured twice.

Change-Id: Ifac7089309ecf4a59b128c0fea5e8b757ca2c8a8
üst 62b688f9
......@@ -628,13 +628,6 @@ int Export::Execute( int nToken, const char * pToken )
pResData->sTextTyp = sOrigKey;
if ( !bMergeMode )
{
if (!pResData->sText[ sLangIndex ].isEmpty())
{
OStringBuffer sError("Language ");
sError.append(sLangIndex);
sError.append("defined twice");
yyerror(sError.getStr());
}
pResData->sText[ sLangIndex ] = sText;
}
}
......@@ -643,13 +636,6 @@ int Export::Execute( int nToken, const char * pToken )
pResData->bQuickHelpText = sal_True;
if ( !bMergeMode )
{
if (!pResData->sQuickHelpText[ sLangIndex ].isEmpty())
{
OStringBuffer sError("Language ");
sError.append(sLangIndex);
sError.append(" defined twice");
YYWarning(sError.getStr());
}
pResData->sQuickHelpText[ sLangIndex ] = sText;
}
}
......@@ -658,13 +644,6 @@ int Export::Execute( int nToken, const char * pToken )
pResData->bTitle = sal_True;
if ( !bMergeMode )
{
if ( !pResData->sTitle[ sLangIndex ].isEmpty())
{
OStringBuffer sError("Language ");
sError.append(sLangIndex);
sError.append(" defined twice");
YYWarning(sError.getStr());
}
pResData->sTitle[ sLangIndex ] = sText;
}
}
......
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