make Photo Album warning string localizable

Change-Id: Ib57d76313732fed18d1d3b91b27df33d60dabf2b
This commit is contained in:
Andras Timar
2013-04-12 03:32:48 -07:00
parent d99f529676
commit e7808c250f
3 changed files with 8 additions and 2 deletions

View File

@@ -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: */

View File

@@ -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
{

View File

@@ -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!