summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-09-19 03:47:10 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-09-19 03:49:08 +0200
commitc8d0afbfd0b68e1c8227fe35029287b874bac654 (patch)
tree6380914f763af11cdb645e85a79957c198306cd7
parent046f3aa2d9285da7661c4d9f59c0baf406227553 (diff)
Use localized name for pivot groups created via API
Same string used in ScDBFunc::GroupDataPilot() method. Change-Id: I5b4d1b32af039caee76121fc534418a05a0882e0
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 94b01ec37242..6797982fe433 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -39,6 +39,7 @@
#include "dpdimsave.hxx"
#include "hints.hxx"
#include <dputil.hxx>
+#include "globstr.hrc"
#include <com/sun/star/sheet/XHierarchiesSupplier.hpp>
#include <com/sun/star/sheet/XLevelsSupplier.hpp>
@@ -2612,8 +2613,7 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotFieldObj::createNameGroup( cons
}
OUString aGroupDimName = pGroupDimension->GetGroupDimName();
- //! localized prefix string
- OUString aGroupName = pGroupDimension->CreateGroupName( "Group" );
+ OUString aGroupName = pGroupDimension->CreateGroupName( ScGlobal::GetRscString(STR_PIVOT_GROUP) );
ScDPSaveGroupItem aGroup( aGroupName );
Reference< XMembersAccess > xMembers = GetMembers();
if (!xMembers.is())