Kaydet (Commit) 9a783cf7 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Andras Timar

tdf#92794: '$' should be replaced in error dialog of addressbook

Change-Id: Ic57611be96f160037fbff2e9452f9206083c80e4
Reviewed-on: https://gerrit.libreoffice.org/18324Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
(cherry picked from commit 01547985)
Reviewed-on: https://gerrit.libreoffice.org/18520
üst 954f96ea
......@@ -143,7 +143,9 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
if (!m_pBook->open(strPath.getStr()))
{
SAL_WARN("connectivity.mork", "Can not parse abook mork file: " << strPath);
throwGenericSQLException( STR_COULD_NOT_LOAD_FILE, *this );
const OUString sError( getResources().getResourceStringWithSubstitution(
STR_COULD_NOT_LOAD_FILE, "$filename$", abook));
::dbtools::throwGenericSQLException( sError, *this );
}
// read history only in production
......@@ -153,7 +155,9 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
if (!m_pHistory->open(strPath.getStr()))
{
SAL_WARN("connectivity.mork", "Can not parse history mork file: " << strPath);
throwGenericSQLException( STR_COULD_NOT_LOAD_FILE, *this );
const OUString sError( getResources().getResourceStringWithSubstitution(
STR_COULD_NOT_LOAD_FILE, "$filename$", history));
::dbtools::throwGenericSQLException( sError, *this );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment