diff options
author | Andras Timar <timar@fsf.hu> | 2010-11-14 23:44:41 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-11-19 02:09:43 +0100 |
commit | 42e6e26255b21c1bfde893f5aaf23d4a37ecee91 (patch) | |
tree | 96ff5ef8b8b6df212150063196228235d7242320 | |
parent | f15fdaafe32ec4f93e780fda28ffcebeaac88443 (diff) |
Made the "My AutoText" string localizable, #i66304#
-rw-r--r-- | sw/source/ui/inc/misc.hrc | 1 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.cxx | 5 | ||||
-rw-r--r-- | sw/source/ui/misc/glossary.src | 93 |
3 files changed, 10 insertions, 89 deletions
diff --git a/sw/source/ui/inc/misc.hrc b/sw/source/ui/inc/misc.hrc index f7c7cfcde9a0..39f33d39d677 100644 --- a/sw/source/ui/inc/misc.hrc +++ b/sw/source/ui/inc/misc.hrc @@ -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 diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index a85c2921c81b..2439da3752c5 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -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()); diff --git a/sw/source/ui/misc/glossary.src b/sw/source/ui/misc/glossary.src index 3ed5c4939791..a09b17ad4282 100644 --- a/sw/source/ui/misc/glossary.src +++ b/sw/source/ui/misc/glossary.src @@ -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"; +}; |