diff --git a/sd/source/ui/app/strings.src b/sd/source/ui/app/strings.src index bc96afb7552a..a91003d96bc9 100644 --- a/sd/source/ui/app/strings.src +++ b/sd/source/ui/app/strings.src @@ -1278,4 +1278,9 @@ String STR_PHOTO_ALBUM_AUTHOR Text [ en-US ] = "Author:" ; }; +String STR_PHOTO_ALBUM_EMPTY_WARNING +{ + Text [ en-US ] = "Please add images to the album." ; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx index b5e7ee3423a1..4beabeb8061a 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx @@ -92,8 +92,8 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, CreateHdl) { if (pImagesLst->GetEntryCount() == 0) { - InfoBox aInfo(this, OUString("Please add images to the album.")); - aInfo.Execute(); + WarningBox aWarning(this, WB_OK, SD_RESSTR(STR_PHOTO_ALBUM_EMPTY_WARNING)); + aWarning.Execute(); } else { diff --git a/sd/source/ui/inc/strings.hrc b/sd/source/ui/inc/strings.hrc index c3d8268a6c49..928167819c19 100644 --- a/sd/source/ui/inc/strings.hrc +++ b/sd/source/ui/inc/strings.hrc @@ -417,6 +417,7 @@ #define STR_PHOTO_ALBUM_TITLE (RID_APP_START+729) #define STR_PHOTO_ALBUM_AUTHOR (RID_APP_START+730) +#define STR_PHOTO_ALBUM_EMPTY_WARNING (RID_APP_START+731) /****************************************************************************** * The ids in glob.hrc start at RID_APP_START+750!