Kaydet (Commit) f6789641 authored tarafından Andras Timar's avatar Andras Timar

Photo Album: make localizable the hardcoded strings

Change-Id: I9ffb10ddce9a8fba053c3adbb789854917595dd0
üst 19d263f0
...@@ -1268,4 +1268,14 @@ String STRING_DRAG_AND_DROP_SLIDES ...@@ -1268,4 +1268,14 @@ String STRING_DRAG_AND_DROP_SLIDES
Text [ en-US ] = "Drag and Drop Slides" ; Text [ en-US ] = "Drag and Drop Slides" ;
}; };
String STR_PHOTO_ALBUM_TITLE
{
Text [ en-US ] = "Photo Album" ;
};
String STR_PHOTO_ALBUM_AUTHOR
{
Text [ en-US ] = "Author:" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
#include "PhotoAlbumDialog.hxx"
#include <comphelper/namedvaluecollection.hxx> #include <comphelper/namedvaluecollection.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <comphelper/componentcontext.hxx> #include <comphelper/componentcontext.hxx>
...@@ -31,6 +29,10 @@ ...@@ -31,6 +29,10 @@
#include <vcl/msgbox.hxx> #include <vcl/msgbox.hxx>
#include <svx/unoshape.hxx> #include <svx/unoshape.hxx>
#include "PhotoAlbumDialog.hxx"
#include "strings.hrc"
#include "sdresid.hxx"
namespace sd namespace sd
{ {
...@@ -107,12 +109,12 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, CreateHdl) ...@@ -107,12 +109,12 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, CreateHdl)
SdrObject* pTitleObj = pFirstSlide->GetPresObj(PRESOBJ_TITLE, 0); SdrObject* pTitleObj = pFirstSlide->GetPresObj(PRESOBJ_TITLE, 0);
SvxShapeText* pTitleText = new SvxShapeText(pTitleObj); SvxShapeText* pTitleText = new SvxShapeText(pTitleObj);
pTitleText->SetShapeType("com.sun.star.presentation.TitleTextShape"); pTitleText->SetShapeType("com.sun.star.presentation.TitleTextShape");
pTitleText->setString(OUString("Photoalbum\n")); pTitleText->setString(SD_RESSTR(STR_PHOTO_ALBUM_TITLE));
SdrObject* pTextObj = pFirstSlide->GetPresObj(PRESOBJ_TEXT, 0); SdrObject* pTextObj = pFirstSlide->GetPresObj(PRESOBJ_TEXT, 0);
SvxShapeText* pTextShape = new SvxShapeText(pTextObj); SvxShapeText* pTextShape = new SvxShapeText(pTextObj);
pTextShape->SetShapeType("com.sun.star.presentation.TextShape"); pTextShape->SetShapeType("com.sun.star.presentation.TextShape");
pTextShape->setString(OUString("Author: ") + aUserOptions.GetFullName()); pTextShape->setString(SD_RESSTR(STR_PHOTO_ALBUM_AUTHOR) + " " + aUserOptions.GetFullName());
Reference< XComponentContext > xContext(::comphelper::getProcessComponentContext()); Reference< XComponentContext > xContext(::comphelper::getProcessComponentContext());
Reference< graphic::XGraphicProvider> xProvider(graphic::GraphicProvider::create(xContext)); Reference< graphic::XGraphicProvider> xProvider(graphic::GraphicProvider::create(xContext));
......
...@@ -415,6 +415,9 @@ ...@@ -415,6 +415,9 @@
#define STR_ACC_DIALOG_DESC (RID_APP_START+728) #define STR_ACC_DIALOG_DESC (RID_APP_START+728)
#define STR_PHOTO_ALBUM_TITLE (RID_APP_START+729)
#define STR_PHOTO_ALBUM_AUTHOR (RID_APP_START+730)
/****************************************************************************** /******************************************************************************
* The ids in glob.hrc start at RID_APP_START+750! * The ids in glob.hrc start at RID_APP_START+750!
******************************************************************************/ ******************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment