diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 10:36:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-23 10:37:20 -0400 |
commit | 35fe6b9587a22e9faa669ebab05bf577f09a3438 (patch) | |
tree | 1e15ac92e600f2cc769878b6cc09ba36f6c46875 | |
parent | 3751ab6910d06ca01d1980fce40792560afc9ebb (diff) |
Localize the group prefix for pivot table defult group names.
-rw-r--r-- | sc/inc/globstr.hrc | 3 | ||||
-rw-r--r-- | sc/source/ui/src/globstr.src | 4 | ||||
-rw-r--r-- | sc/source/ui/view/dbfunc3.cxx | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/sc/inc/globstr.hrc b/sc/inc/globstr.hrc index 5157eb6b3104..b02d250a14d6 100644 --- a/sc/inc/globstr.hrc +++ b/sc/inc/globstr.hrc @@ -599,8 +599,9 @@ #define STR_UNSAVED_EXT_REF 465 #define STR_CLOSE_WITH_UNSAVED_REFS 466 +#define STR_PIVOT_GROUP 467 -#define STR_COUNT 467 +#define STR_COUNT 468 #endif diff --git a/sc/source/ui/src/globstr.src b/sc/source/ui/src/globstr.src index 164e12d4a9b1..dcc4adb67c8b 100644 --- a/sc/source/ui/src/globstr.src +++ b/sc/source/ui/src/globstr.src @@ -553,6 +553,10 @@ Resource RID_GLOBSTR { Text [ en-US ] = "Data" ; }; + String STR_PIVOT_GROUP + { + Text [ en-US ] = "Group" ; + }; String STR_PIVOTFUNC_SUM { Text [ en-US ] = "SUM" ; diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index f6eb887b830e..6742928caf4f 100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -1221,8 +1221,7 @@ void ScDBFunc::GroupDataPilot() } rtl::OUString aGroupDimName = pGroupDimension->GetGroupDimName(); - //! localized prefix string - rtl::OUString aGroupName = pGroupDimension->CreateGroupName( String::CreateFromAscii("Group") ); + rtl::OUString aGroupName = pGroupDimension->CreateGroupName(ScGlobal::GetRscString(STR_PIVOT_GROUP)); ScDPSaveGroupItem aGroup( aGroupName ); ScDPUniqueStringSet::const_iterator it = aEntries.begin(), itEnd = aEntries.end(); for (; it != itEnd; ++it) |