summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2013-04-12 03:32:48 -0700
committerAndras Timar <atimar@suse.com>2013-04-12 03:39:55 -0700
commite7808c250f1b82ca9566fc12c4d7de33c58fcb1b (patch)
treedc43650412e3eb21eccc9eaa01af77044bacddab /sd
parentd99f529676e78895996d50064dbcb0dc1b2ad986 (diff)
make Photo Album warning string localizable
Change-Id: Ib57d76313732fed18d1d3b91b27df33d60dabf2b
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/strings.src5
-rw-r--r--sd/source/ui/dlg/PhotoAlbumDialog.cxx4
-rw-r--r--sd/source/ui/inc/strings.hrc1
3 files changed, 8 insertions, 2 deletions
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!