From e7808c250f1b82ca9566fc12c4d7de33c58fcb1b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Fri, 12 Apr 2013 03:32:48 -0700 Subject: make Photo Album warning string localizable Change-Id: Ib57d76313732fed18d1d3b91b27df33d60dabf2b --- sd/source/ui/app/strings.src | 5 +++++ sd/source/ui/dlg/PhotoAlbumDialog.cxx | 4 ++-- sd/source/ui/inc/strings.hrc | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'sd') 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! -- cgit