diff options
author | Sébastien Le Ray <sebastien-libreoffice@orniz.org> | 2011-02-10 18:54:59 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@noe.suse.cz> | 2011-02-11 19:39:41 +0100 |
commit | cef949150d91fe4cc727f62c9338e277b6e6a7af (patch) | |
tree | a02d9d259be0248c86143cd8330a920dddfbc789 | |
parent | cda4ec28135cae431fa24fcbe5c36ee422d63b38 (diff) |
Fixes bug fdo#31252 - Overwrite dialog improvment.
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 7 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.src | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 0b8d9c2f0a9f..35551217b0f0 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1247,7 +1247,12 @@ IMPL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void*, pVoid ) { if ( ::utl::UCBContentHelper::Exists( aFileObj.GetMainURL( INetURLObject::NO_DECODE ) ) ) { - QueryBox aBox( pThis, WB_YES_NO, SvtResId( STR_SVT_ALREADYEXISTOVERWRITE ) ); + String aMsg = SvtResId( STR_SVT_ALREADYEXISTOVERWRITE ); + aMsg.SearchAndReplace( + String( RTL_CONSTASCII_USTRINGPARAM( "$filename$" ) ), + aFileObj.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DECODE_WITH_CHARSET) + ); + QueryBox aBox( pThis, WB_YES_NO, aMsg ); if ( aBox.Execute() != RET_YES ) return 0; } diff --git a/fpicker/source/office/iodlg.src b/fpicker/source/office/iodlg.src index af24bd0ffeee..08ad36f4704c 100644 --- a/fpicker/source/office/iodlg.src +++ b/fpicker/source/office/iodlg.src @@ -280,7 +280,7 @@ String STR_FILTERNAME_ALL String STR_SVT_ALREADYEXISTOVERWRITE { - Text [ en-US ] = "The file already exists. Overwrite?" ; + Text [ en-US ] = "A file named \"$filename$\" already exists.\n\nDo you want to replace it?" ; }; String STR_SVT_NEW_FOLDER |