summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmmerge.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2012-10-08 22:43:26 +0200
committerZolnai Tamás <zolnaitamas2000@gmail.com>2012-10-08 22:53:14 +0200
commit247bac3266ee933716ecf85e0204b0d6b8c6da74 (patch)
treeabe9748744e98b70cfcc5c3a1731335660907325 /l10ntools/source/xrmmerge.cxx
parent297531a3b3aa531ebb6d32761680b308d8fa3f9e (diff)
Make an end of xrmex id duplication
Use GroupId instead of LocalId because that is the primary id. Thus usage of LocalId becomes unneeded. Change-Id: I2770141fab47c07294ab15322848e8aef0de2cec
Diffstat (limited to 'l10ntools/source/xrmmerge.cxx')
-rw-r--r--l10ntools/source/xrmmerge.cxx22
1 files changed, 8 insertions, 14 deletions
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index 4cf4d9e94253..a3eb0e5418ee 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -192,9 +192,9 @@ int XRMResParser::Execute( int nToken, char * pToken )
switch ( nToken ) {
case XRM_TEXT_START:{
- rtl::OString sNewLID = GetAttribute( rToken, "id" );
- if ( sNewLID != sLID ) {
- sLID = sNewLID;
+ rtl::OString sNewGID = GetAttribute( rToken, "id" );
+ if ( sNewGID != sGID ) {
+ sGID = sNewGID;
}
bText = sal_True;
sCurrentText = "";
@@ -228,7 +228,7 @@ int XRMResParser::Execute( int nToken, char * pToken )
case DESC_TEXT_START:{
if (bDisplayName) {
- sLID = rtl::OString("dispname");
+ sGID = rtl::OString("dispname");
bText = sal_True;
sCurrentText = "";
sCurrentOpenTag = rToken;
@@ -264,7 +264,7 @@ int XRMResParser::Execute( int nToken, char * pToken )
case DESC_EXTENSION_DESCRIPTION_SRC: {
if (bExtensionDescription) {
- sLID = rtl::OString("extdesc");
+ sGID = rtl::OString("extdesc");
sResourceType = rtl::OString ( "description" );
sLangAttribute = rtl::OString ( "lang" );
sCurrentOpenTag = rToken;
@@ -429,7 +429,6 @@ void XRMResExport::WorkOnText(
{
rtl::OString sPlatform( "" );
pResData = new ResData( sPlatform, GetGID() );
- pResData->sId = GetLID();
}
rtl::OString sText(rText);
@@ -459,12 +458,8 @@ void XRMResExport::EndOfText(
sOutput += "\t0\t";
sOutput += sResourceType;
sOutput += "\t";
- sOutput += pResData->sId;
- // USE LID AS GID OR MERGE DON'T WORK
- //sOutput += pResData->sGId;
- sOutput += "\t";
- sOutput += pResData->sId;
- sOutput += "\t\t\t0\t";
+ sOutput += pResData->sGId;
+ sOutput += "\t\t\t\t0\t";
sOutput += sCur;
sOutput += "\t";
@@ -601,8 +596,7 @@ void XRMResMerge::WorkOnText(
if ( pMergeDataFile ) {
if ( !pResData ) {
rtl::OString sPlatform( "" );
- pResData = new ResData( sPlatform, GetLID() , sFilename );
- pResData->sId = GetLID();
+ pResData = new ResData( sPlatform, GetGID() , sFilename );
pResData->sResTyp = sResourceType;
}