diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-03-07 21:44:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-03-11 13:10:45 +0100 |
commit | 3307afa99c28fd282094e9558795b0a20ba5c6a0 (patch) | |
tree | 5879ac4acbea451c772b368af2ed4f7160ee8cc3 /include/fpicker | |
parent | d680b29e05dd3ac2e64e47c4e1f83a4e38b1db24 (diff) |
tdf#114150: Remove duplication of strings found in file dialogs
Change-Id: I86f720a23dd9d400d39d9606e073b483850a9df2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131153
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/fpicker')
-rw-r--r-- | include/fpicker/fpsofficeResMgr.hxx | 15 | ||||
-rw-r--r-- | include/fpicker/strings.hrc | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/fpicker/fpsofficeResMgr.hxx b/include/fpicker/fpsofficeResMgr.hxx new file mode 100644 index 000000000000..a86a91509c38 --- /dev/null +++ b/include/fpicker/fpsofficeResMgr.hxx @@ -0,0 +1,15 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +#pragma once + +#include <unotools/resmgr.hxx> + +inline OUString FpsResId(TranslateId aId) { return Translate::get(aId, Translate::Create("fps")); }; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/fpicker/strings.hrc b/include/fpicker/strings.hrc index 4dd7fb5fa50c..efce3a69f9da 100644 --- a/include/fpicker/strings.hrc +++ b/include/fpicker/strings.hrc @@ -29,6 +29,8 @@ #define STR_SVT_FOLDERPICKER_DEFAULT_TITLE NC_("STR_SVT_FOLDERPICKER_DEFAULT_TITLE", "Select Path") #define STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION NC_("STR_SVT_FOLDERPICKER_DEFAULT_DESCRIPTION", "Please select a folder.") #define STR_SVT_ALREADYEXISTOVERWRITE NC_("STR_SVT_ALREADYEXISTOVERWRITE", "A file named \"$filename$\" already exists.\n\nDo you want to replace it?") +#define STR_SVT_ALREADYEXISTOVERWRITE_SECONDARY NC_("STR_SVT_ALREADYEXISTOVERWRITE_SECONDARY", "The file already exists in \"$dirname$\". Replacing it will overwrite its contents.") +#define STR_SVT_ALLFORMATS NC_("STR_SVT_ALLFORMATS", "All Formats") #define STR_SVT_DELETESERVICE NC_("STR_SVT_DELETESERVICE", "Are you sure you want to delete the service?\n\"$servicename$\"") #define STR_SVT_ROOTLABEL NC_("STR_SVT_ROOTLABEL", "Root") #define STR_FILTERNAME_ALL NC_("STR_FILTERNAME_ALL", "All files") |