diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2016-07-28 17:50:07 +0300 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-01 06:22:14 +0000 |
commit | 3e79c2f8c274c906d8ac259b4984b9637498e87b (patch) | |
tree | 59fb8e662e7a81da53c7954ca2b28a44e9e70b1e /basctl/source | |
parent | be53870adbae52613f35496296cac7b0dff66aa8 (diff) |
tdf#91665 l10n: replace string lists - by separate strings
Convert the stingarray to resource strings.
Change-Id: Iae9c52c21fd004c052fa78d959dfa92ad1d16a7d
Reviewed-on: https://gerrit.libreoffice.org/27641
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/basicprint.src | 17 | ||||
-rw-r--r-- | basctl/source/basicide/basicrenderable.cxx | 11 |
2 files changed, 13 insertions, 15 deletions
diff --git a/basctl/source/basicide/basicprint.src b/basctl/source/basicide/basicprint.src index 1e2ba17a4098..7eb01d2ea2cc 100644 --- a/basctl/source/basicide/basicprint.src +++ b/basctl/source/basicide/basicprint.src @@ -19,14 +19,17 @@ #include <basidesh.hrc> -StringArray RID_PRINTDLG_STRLIST +String RID_STR_PRINTDLG_RANGE { - ItemList [en-US] = - { - < "Print range"; >; - < "All ~Pages"; >; - < "Pa~ges"; >; - }; + Text [ en-US ] = "Print range"; +}; +String RID_STR_PRINTDLG_ALLPAGES +{ + Text [ en-US ] = "All ~Pages"; +}; +String RID_STR_PRINTDLG_PAGES +{ + Text [ en-US ] = "Pa~ges"; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/source/basicide/basicrenderable.cxx b/basctl/source/basicide/basicrenderable.cxx index 86afd2003fcf..6983244adfd0 100644 --- a/basctl/source/basicide/basicrenderable.cxx +++ b/basctl/source/basicide/basicrenderable.cxx @@ -37,11 +37,6 @@ Renderable::Renderable (BaseWindow* pWin) : cppu::WeakComponentImplHelper< css::view::XRenderable >( maMutex ) , mpWindow( pWin ) { - ResStringArray aStrings( IDEResId( RID_PRINTDLG_STRLIST ) ); - DBG_ASSERT( aStrings.Count() >= 3, "resource incomplete" ); - if( aStrings.Count() < 3 ) // bad resource ? - return; - m_aUIProperties.resize( 3 ); // show Subgroup for print range @@ -49,16 +44,16 @@ Renderable::Renderable (BaseWindow* pWin) aPrintRangeOpt.maGroupHint = "PrintRange" ; aPrintRangeOpt.mbInternalOnly = true; m_aUIProperties[0].Value = setSubgroupControlOpt("printrange", - OUString(aStrings.GetString(0)), OUString(), aPrintRangeOpt); + IDE_RESSTR( RID_STR_PRINTDLG_RANGE ), OUString(), aPrintRangeOpt); // create a choice for the range to print OUString aPrintContentName( "PrintContent" ); Sequence< OUString > aChoices( 2 ); Sequence< OUString > aHelpIds( 2 ); Sequence< OUString > aWidgetIds( 2 ); - aChoices[0] = aStrings.GetString( 1 ); + aChoices[0] = IDE_RESSTR( RID_STR_PRINTDLG_ALLPAGES ); aHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:0" ; - aChoices[1] = aStrings.GetString( 2 ); + aChoices[1] = IDE_RESSTR( RID_STR_PRINTDLG_PAGES ); aHelpIds[1] = ".HelpID:vcl:PrintDialog:PrintContent:RadioButton:1" ; aWidgetIds[0] = "printallpages" ; aWidgetIds[1] = "printpages" ; |