diff --git a/l10ntools/inc/export.hxx b/l10ntools/inc/export.hxx index 760a7454fb46..bf1809bfb54e 100644 --- a/l10ntools/inc/export.hxx +++ b/l10ntools/inc/export.hxx @@ -72,6 +72,7 @@ typedef boost::unordered_map MergeDataHashMap; #define SOURCE_LANGUAGE rtl::OString(RTL_CONSTASCII_STRINGPARAM("en-US")) +#define X_COMMENT rtl::OString(RTL_CONSTASCII_STRINGPARAM("x-comment")) #define LIST_REFID "LIST_REFID" typedef OStringHashMap ExportListEntry; diff --git a/l10ntools/scripts/po2lo b/l10ntools/scripts/po2lo index 4bcfb8b41e3a..cdf8892fc950 100755 --- a/l10ntools/scripts/po2lo +++ b/l10ntools/scripts/po2lo @@ -51,7 +51,7 @@ class Entry: prefix += "%s." % self.items[3] self.keys = [] # 10..13 are translation types - for idx in range(10, 14): + for idx in [10,12,13]: try: if len(self.items[idx]): t = {10:'text', 12:'quickhelptext', 13:'title'}[idx] diff --git a/l10ntools/source/cfgmerge.cxx b/l10ntools/source/cfgmerge.cxx index 2c39fc68ee52..b8f6c19c0d54 100644 --- a/l10ntools/source/cfgmerge.cxx +++ b/l10ntools/source/cfgmerge.cxx @@ -483,6 +483,7 @@ void CfgExport::WorkOnRessourceEnd() if ( pStackData->sText[rtl::OString(RTL_CONSTASCII_STRINGPARAM("en-US"))].getLength() ) { rtl::OString sFallback = pStackData->sText[rtl::OString(RTL_CONSTASCII_STRINGPARAM("en-US"))]; + rtl::OString sXComment = pStackData->sText[rtl::OString(RTL_CONSTASCII_STRINGPARAM("x-comment"))]; rtl::OString sLocalId = pStackData->sIdentifier; rtl::OString sGroupId; if ( aStack.size() == 1 ) { @@ -512,7 +513,8 @@ void CfgExport::WorkOnRessourceEnd() sOutput += sCur; sOutput += "\t"; - sOutput += sText; sOutput += "\t\t\t\t"; + sOutput += sText; sOutput += "\t"; + sOutput += sXComment; sOutput += "\t\t\t"; pOutputStream << sOutput.getStr() << '\n'; } diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index 60c4a7388b6f..329fd197f74f 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -1006,8 +1006,8 @@ sal_Bool Export::WriteData( ResData *pResData, sal_Bool bCreateNew ) sXText = pResData->sText[ SOURCE_LANGUAGE ]; } - if (!pResData->sHelpText[ sCur ].isEmpty()) - sXHText = pResData->sHelpText[ sCur ]; + if (!pResData->sText[ X_COMMENT ].isEmpty()) + sXHText = pResData->sText[ X_COMMENT ]; else { sXHText = pResData->sHelpText[ SOURCE_LANGUAGE ]; }