Made the "My AutoText" string localizable, #i66304#

This commit is contained in:
Andras Timar
2010-11-19 02:09:43 +01:00
committed by Jan Holesovsky
parent f15fdaafe3
commit 42e6e26255
3 changed files with 10 additions and 89 deletions
+1
View File
@@ -96,6 +96,7 @@
#define MN_REDLINE_POPUP (RC_MISC_BEGIN + 61)
#define STR_REMOVE_WARNING (RC_MISC_BEGIN + 62)
#define STRRES_NUMTYPES (RC_MISC_BEGIN + 63)
#define STR_MY_AUTOTEXT (RC_MISC_BEGIN + 64)
#define MISC_ACT_END STRRES_NUMTYPES
+5
View File
@@ -742,6 +742,9 @@ void SwGlossaryDlg::Init()
SvLBoxEntry* pSelEntry = 0;
const String sSelStr(::GetCurrGlosGroup()->GetToken(0, GLOS_DELIM));
const sal_uInt16 nSelPath = static_cast< sal_uInt16 >(::GetCurrGlosGroup()->GetToken(1, GLOS_DELIM).ToInt32());
// #i66304# - "My AutoText" comes from mytexts.bau, but should be translated
const String sMyAutoTextEnglish(RTL_CONSTASCII_USTRINGPARAM("My AutoText"));
const String sMyAutoTextTranslated(SW_RESSTR(STR_MY_AUTOTEXT));
for(sal_uInt16 nId = 0; nId < nCnt; ++nId )
{
String sTitle;
@@ -750,6 +753,8 @@ void SwGlossaryDlg::Init()
continue;
if(!sTitle.Len())
sTitle = sGroupName.GetToken( 0, GLOS_DELIM );
if(sTitle == sMyAutoTextEnglish)
sTitle = sMyAutoTextTranslated;
SvLBoxEntry* pEntry = aCategoryBox.InsertEntry( sTitle );
sal_uInt16 nPath = static_cast< sal_uInt16 >(sGroupName.GetToken( 1, GLOS_DELIM ).ToInt32());
+4 -89
View File
@@ -372,92 +372,7 @@ InfoBox MSG_NO_GLOSSARIES
Message [ en-US ] = "There is no AutoText in this file.";
};
String STR_MY_AUTOTEXT
{
Text[ en-US ] = "My AutoText";
};