summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorSébastien Le Ray <sebastien-libreoffice@orniz.org>2011-02-10 18:54:59 +0100
committerJan Holesovsky <kendy@noe.suse.cz>2011-02-11 19:39:41 +0100
commitcef949150d91fe4cc727f62c9338e277b6e6a7af (patch)
treea02d9d259be0248c86143cd8330a920dddfbc789 /fpicker
parentcda4ec28135cae431fa24fcbe5c36ee422d63b38 (diff)
Fixes bug fdo#31252 - Overwrite dialog improvment.
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx7
-rw-r--r--fpicker/source/office/iodlg.src2
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