summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/AllLangMoTarget_flt.mk13
-rw-r--r--filter/AllLangResTarget_eps.mk31
-rw-r--r--filter/AllLangResTarget_pdffilter.mk40
-rw-r--r--filter/AllLangResTarget_t602filter.mk31
-rw-r--r--filter/AllLangResTarget_xsltdlg.mk36
-rw-r--r--filter/Library_gie.mk5
-rw-r--r--filter/Library_graphicfilter.mk2
-rw-r--r--filter/Library_t602filter.mk5
-rw-r--r--filter/Module_filter.mk7
-rw-r--r--filter/inc/strings.hrc83
-rw-r--r--filter/inc/strings.hxx4
-rw-r--r--filter/source/flash/impswfdialog.hxx1
-rw-r--r--filter/source/flash/swfdialog.hxx1
-rw-r--r--filter/source/graphicfilter/eps/eps.cxx12
-rw-r--r--filter/source/graphicfilter/eps/epsstr.src27
-rw-r--r--filter/source/graphicfilter/eps/strings.hrc22
-rw-r--r--filter/source/pdf/impdialog.cxx23
-rw-r--r--filter/source/pdf/impdialog.hrc45
-rw-r--r--filter/source/pdf/impdialog.hxx9
-rw-r--r--filter/source/pdf/impdialog.src91
-rw-r--r--filter/source/pdf/pdf.hrc22
-rw-r--r--filter/source/pdf/pdf.src27
-rw-r--r--filter/source/pdf/pdfexport.cxx16
-rw-r--r--filter/source/svg/impsvgdialog.hxx3
-rw-r--r--filter/source/svg/svgdialog.hxx2
-rw-r--r--filter/source/t602/t602filter.cxx23
-rw-r--r--filter/source/t602/t602filter.hrc39
-rw-r--r--filter/source/t602/t602filter.hxx7
-rw-r--r--filter/source/t602/t602filter.src77
-rw-r--r--filter/source/xsltdialog/xmlfilterdialogstrings.hrc55
-rw-r--r--filter/source/xsltdialog/xmlfilterdialogstrings.src132
-rw-r--r--filter/source/xsltdialog/xmlfilterjar.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.cxx32
-rw-r--r--filter/source/xsltdialog/xmlfiltersettingsdialog.hxx12
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.cxx37
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.hxx5
-rw-r--r--filter/source/xsltdialog/xmlfiltertabpagebasic.cxx2
-rw-r--r--filter/source/xsltdialog/xmlfiltertabpagebasic.hxx1
-rw-r--r--filter/source/xsltdialog/xmlfiltertabpagexslt.hxx1
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.cxx2
-rw-r--r--filter/uiconfig/ui/impswfdialog.ui20
-rw-r--r--filter/uiconfig/ui/pdfgeneralpage.ui90
-rw-r--r--filter/uiconfig/ui/pdflinkspage.ui18
-rw-r--r--filter/uiconfig/ui/pdfoptionsdialog.ui18
-rw-r--r--filter/uiconfig/ui/pdfsecuritypage.ui54
-rw-r--r--filter/uiconfig/ui/pdfsignpage.ui20
-rw-r--r--filter/uiconfig/ui/pdfuserinterfacepage.ui30
-rw-r--r--filter/uiconfig/ui/pdfviewpage.ui36
-rw-r--r--filter/uiconfig/ui/testxmlfilter.ui28
-rw-r--r--filter/uiconfig/ui/warnpdfdialog.ui6
-rw-r--r--filter/uiconfig/ui/xmlfiltersettings.ui18
-rw-r--r--filter/uiconfig/ui/xmlfiltertabpagegeneral.ui12
-rw-r--r--filter/uiconfig/ui/xmlfiltertabpagetransformation.ui18
-rw-r--r--filter/uiconfig/ui/xsltfilterdialog.ui8
54 files changed, 384 insertions, 977 deletions
diff --git a/filter/AllLangMoTarget_flt.mk b/filter/AllLangMoTarget_flt.mk
new file mode 100644
index 000000000000..3c491bc95728
--- /dev/null
+++ b/filter/AllLangMoTarget_flt.mk
@@ -0,0 +1,13 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# 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/.
+
+$(eval $(call gb_AllLangMoTarget_AllLangMoTarget,flt))
+
+$(eval $(call gb_AllLangMoTarget_set_polocation,flt,filter))
+
+# vim: set noet sw=4 ts=4:
diff --git a/filter/AllLangResTarget_eps.mk b/filter/AllLangResTarget_eps.mk
deleted file mode 100644
index ea1d21a0a6e4..000000000000
--- a/filter/AllLangResTarget_eps.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,eps))
-
-$(eval $(call gb_AllLangResTarget_add_srs,eps,\
- filter/eps \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,filter/eps))
-
-$(eval $(call gb_SrsTarget_add_files,filter/eps,\
- filter/source/graphicfilter/eps/epsstr.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/filter/AllLangResTarget_pdffilter.mk b/filter/AllLangResTarget_pdffilter.mk
deleted file mode 100644
index fddc6ff8323d..000000000000
--- a/filter/AllLangResTarget_pdffilter.mk
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,pdffilter))
-
-# this is ugly; why is it necessary to set this manually?
-$(eval $(call gb_AllLangResTarget_set_reslocation,pdffilter,res))
-
-$(eval $(call gb_AllLangResTarget_add_srs,pdffilter,\
- filter/pdffilter \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,filter/pdffilter))
-
-$(eval $(call gb_SrsTarget_set_include,filter/pdffilter,\
- $$(INCLUDE) \
- -I$(SRCDIR)/filter/inc \
-))
-
-$(eval $(call gb_SrsTarget_add_files,filter/pdffilter,\
- filter/source/pdf/impdialog.src \
- filter/source/pdf/pdf.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/filter/AllLangResTarget_t602filter.mk b/filter/AllLangResTarget_t602filter.mk
deleted file mode 100644
index 43cf03db6ffd..000000000000
--- a/filter/AllLangResTarget_t602filter.mk
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,t602filter))
-
-$(eval $(call gb_AllLangResTarget_add_srs,t602filter,\
- filter/t602filter \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,filter/t602filter))
-
-$(eval $(call gb_SrsTarget_add_files,filter/t602filter,\
- filter/source/t602/t602filter.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/filter/AllLangResTarget_xsltdlg.mk b/filter/AllLangResTarget_xsltdlg.mk
deleted file mode 100644
index 34262e21926e..000000000000
--- a/filter/AllLangResTarget_xsltdlg.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-$(eval $(call gb_AllLangResTarget_AllLangResTarget,xsltdlg))
-
-$(eval $(call gb_AllLangResTarget_add_srs,xsltdlg,\
- filter/xsltdlg \
-))
-
-$(eval $(call gb_SrsTarget_SrsTarget,filter/xsltdlg))
-
-$(eval $(call gb_SrsTarget_set_include,filter/xsltdlg,\
- $$(INCLUDE) \
- -I$(SRCDIR)/filter/inc \
-))
-
-$(eval $(call gb_SrsTarget_add_files,filter/xsltdlg,\
- filter/source/xsltdialog/xmlfilterdialogstrings.src \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/filter/Library_gie.mk b/filter/Library_gie.mk
index 167f6c758b34..d1513b25aed6 100644
--- a/filter/Library_gie.mk
+++ b/filter/Library_gie.mk
@@ -19,6 +19,11 @@
$(eval $(call gb_Library_Library,gie))
+$(eval $(call gb_Library_set_include,gie,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/filter/inc \
+))
+
$(eval $(call gb_Library_use_external,gie,boost_headers))
$(eval $(call gb_Library_use_sdk_api,gie))
diff --git a/filter/Library_graphicfilter.mk b/filter/Library_graphicfilter.mk
index 60b20eb2491d..e0e60357cb13 100644
--- a/filter/Library_graphicfilter.mk
+++ b/filter/Library_graphicfilter.mk
@@ -26,8 +26,8 @@ $(eval $(call gb_Library_use_external,graphicfilter,boost_headers))
$(eval $(call gb_Library_use_sdk_api,graphicfilter))
$(eval $(call gb_Library_set_include,graphicfilter,\
- -I$(SRCDIR)/filter/inc \
$$(INCLUDE) \
+ -I$(SRCDIR)/filter/inc \
))
$(eval $(call gb_Library_use_libraries,graphicfilter,\
diff --git a/filter/Library_t602filter.mk b/filter/Library_t602filter.mk
index 1b2d3ed6fa89..82b616434e47 100644
--- a/filter/Library_t602filter.mk
+++ b/filter/Library_t602filter.mk
@@ -19,6 +19,11 @@
$(eval $(call gb_Library_Library,t602filter))
+$(eval $(call gb_Library_set_include,t602filter,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/filter/inc \
+))
+
$(eval $(call gb_Library_set_componentfile,t602filter,filter/source/t602/t602filter))
$(eval $(call gb_Library_use_external,t602filter,boost_headers))
diff --git a/filter/Module_filter.mk b/filter/Module_filter.mk
index 45cd54501c03..a7834b6dc631 100644
--- a/filter/Module_filter.mk
+++ b/filter/Module_filter.mk
@@ -40,14 +40,11 @@ $(eval $(call gb_Module_add_targets,filter,\
Package_docbook \
Package_xhtml \
Package_xslt \
+ UIConfig_filter \
))
$(eval $(call gb_Module_add_l10n_targets,filter,\
- AllLangResTarget_eps \
- AllLangResTarget_pdffilter \
- AllLangResTarget_t602filter \
- AllLangResTarget_xsltdlg \
- UIConfig_filter \
+ AllLangMoTarget_flt \
))
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
diff --git a/filter/inc/strings.hrc b/filter/inc/strings.hrc
new file mode 100644
index 000000000000..279fee3eedbf
--- /dev/null
+++ b/filter/inc/strings.hrc
@@ -0,0 +1,83 @@
+/* -*- 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/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_FILTER_INC_STRINGS_HRC
+#define INCLUDED_FILTER_INC_STRINGS_HRC
+
+#define NC_(Context, String) (Context "\004" u8##String)
+
+#define STR_COLUMN_HEADER_NAME NC_("STR_COLUMN_HEADER_NAME", "Name")
+#define STR_COLUMN_HEADER_TYPE NC_("STR_COLUMN_HEADER_TYPE", "Type")
+#define STR_UNKNOWN_APPLICATION NC_("STR_UNKNOWN_APPLICATION", "Unknown")
+#define STR_IMPORT_ONLY NC_("STR_IMPORT_ONLY", "import filter")
+#define STR_IMPORT_EXPORT NC_("STR_IMPORT_EXPORT", "import/export filter")
+#define STR_EXPORT_ONLY NC_("STR_EXPORT_ONLY", "export filter")
+#define STR_WARN_DELETE NC_("STR_WARN_DELETE", "Do you really want to delete the XML Filter '%s'? This action cannot be undone.")
+#define STR_ERROR_FILTER_NAME_EXISTS NC_("STR_ERROR_FILTER_NAME_EXISTS", "An XML filter with the name '%s' already exists. Please enter a different name.")
+#define STR_ERROR_TYPE_NAME_EXISTS NC_("STR_ERROR_TYPE_NAME_EXISTS", "The name for the user interface '%s1' is already used by the XML filter '%s2'. Please enter a different name.")
+#define STR_ERROR_EXPORT_XSLT_NOT_FOUND NC_("STR_ERROR_EXPORT_XSLT_NOT_FOUND", "The XSLT for export cannot be found. Please enter a valid path.")
+#define STR_ERROR_IMPORT_XSLT_NOT_FOUND NC_("STR_ERROR_IMPORT_XSLT_NOT_FOUND", "The XSLT for import cannot be found. Please enter a valid path.")
+#define STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND NC_("STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND", "The given import template cannot be found. Please enter a valid path.")
+#define STR_DEFAULT_FILTER_NAME NC_("STR_DEFAULT_FILTER_NAME", "New Filter")
+#define STR_DEFAULT_UI_NAME NC_("STR_DEFAULT_UI_NAME", "Untitled")
+#define STR_UNDEFINED_FILTER NC_("STR_UNDEFINED_FILTER", "undefined filter")
+#define STR_FILTER_HAS_BEEN_SAVED NC_("STR_FILTER_HAS_BEEN_SAVED", "The XML filter '%s' has been saved as package '%s'. ")
+#define STR_FILTERS_HAVE_BEEN_SAVED NC_("STR_FILTERS_HAVE_BEEN_SAVED", "%s XML filters have been saved in the package '%s'.")
+#define STR_FILTER_PACKAGE NC_("STR_FILTER_PACKAGE", "XSLT filter package")
+#define STR_FILTER_INSTALLED NC_("STR_FILTER_INSTALLED", "The XML filter '%s' has been installed successfully.")
+#define STR_FILTERS_INSTALLED NC_("STR_FILTERS_INSTALLED", "%s XML filters have been installed successfully.")
+#define STR_NO_FILTERS_FOUND NC_("STR_NO_FILTERS_FOUND", "No XML filter could be installed because the package '%s' does not contain any XML filters.")
+#define STR_XML_FILTER_LISTBOX NC_("STR_XML_FILTER_LISTBOX", "XML Filter List")
+
+#define T602FILTER_STR_IMPORT_DIALOG_TITLE NC_("T602FILTER_STR_IMPORT_DIALOG_TITLE", "Settings for T602 import")
+#define T602FILTER_STR_ENCODING_LABEL NC_("T602FILTER_STR_ENCODING_LABEL", "Encoding")
+#define T602FILTER_STR_ENCODING_AUTO NC_("T602FILTER_STR_ENCODING_AUTO", "Automatic")
+#define T602FILTER_STR_ENCODING_CP852 NC_("T602FILTER_STR_ENCODING_CP852", "CP852 (Latin2)")
+#define T602FILTER_STR_ENCODING_CP895 NC_("T602FILTER_STR_ENCODING_CP895", "CP895 (KEYB2CS, Kamenicky)")
+#define T602FILTER_STR_ENCODING_KOI8CS2 NC_("T602FILTER_STR_ENCODING_KOI8CS2", "KOI8 CS2")
+#define T602FILTER_STR_CYRILLIC_MODE NC_("T602FILTER_STR_CYRILLIC_MODE", "Mode for Russian language (Cyrillic)")
+#define T602FILTER_STR_REFORMAT_TEXT NC_("T602FILTER_STR_REFORMAT_TEXT", "Reformat the text")
+#define T602FILTER_STR_DOT_COMMANDS NC_("T602FILTER_STR_DOT_COMMANDS", "Display dot commands")
+#define T602FILTER_STR_CANCEL_BUTTON NC_("T602FILTER_STR_CANCEL_BUTTON", "Cancel")
+#define T602FILTER_STR_OK_BUTTON NC_("T602FILTER_STR_OK_BUTTON", "OK")
+
+#define KEY_VERSION_CHECK NC_("KEY_VERSION_CHECK", "Warning: Not all of the imported EPS graphics could be saved at level1\nas some are at a higher level!")
+
+#define PDF_PROGRESS_BAR NC_("PDF_PROGRESS_BAR", "Export as PDF")
+
+//strings used in encryption UI
+//password dialog title
+#define STR_PDF_EXPORT_UDPWD NC_("STR_PDF_EXPORT_UDPWD", "Set open password")
+//password dialog title
+#define STR_PDF_EXPORT_ODPWD NC_("STR_PDF_EXPORT_ODPWD", "Set permission password")
+#define STR_WARN_PASSWORD_PDFA NC_("STR_WARN_PASSWORD_PDFA", "PDF/A does not allow encryption. The exported PDF file will not be password protected.")
+#define STR_WARN_TRANSP_PDFA_SHORT NC_("STR_WARN_TRANSP_PDFA_SHORT", "PDF/A transparency")
+#define STR_WARN_TRANSP_PDFA NC_("STR_WARN_TRANSP_PDFA", "PDF/A forbids transparency. A transparent object was painted opaque instead.")
+#define STR_WARN_TRANSP_VERSION_SHORT NC_("STR_WARN_TRANSP_VERSION_SHORT", "PDF version conflict")
+#define STR_WARN_TRANSP_VERSION NC_("STR_WARN_TRANSP_VERSION", "Transparency is not supported in PDF versions earlier than PDF 1.4. A transparent object was painted opaque instead")
+#define STR_WARN_FORMACTION_PDFA_SHORT NC_("STR_WARN_FORMACTION_PDFA_SHORT", "PDF/A form action")
+#define STR_WARN_FORMACTION_PDFA NC_("STR_WARN_FORMACTION_PDFA", "A form control contained an action not supported by the PDF/A standard. The action was skipped")
+#define STR_WARN_TRANSP_CONVERTED NC_("STR_WARN_TRANSP_CONVERTED", "Some objects were converted to an image in order to remove transparencies, because the target PDF format does not support transparencies. Possibly better results can be achieved if you remove the transparent objects before exporting.")
+#define STR_WARN_TRANSP_CONVERTED_SHORT NC_("STR_WARN_TRANSP_CONVERTED_SHORT", "Transparencies removed")
+#define STR_ERR_SIGNATURE_FAILED NC_("STR_ERR_SIGNATURE_FAILED", "Signature generation failed")
+#define STR_ERR_PDF_EXPORT_ABORTED NC_("STR_ERR_PDF_EXPORT_ABORTED", "PDF export aborted")
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/inc/strings.hxx b/filter/inc/strings.hxx
index 3a25ef921b31..c405e61121ab 100644
--- a/filter/inc/strings.hxx
+++ b/filter/inc/strings.hxx
@@ -7,8 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_FILTER_INC_STRINGS_HRC
-#define INCLUDED_FILTER_INC_STRINGS_HRC
+#ifndef INCLUDED_FILTER_INC_STRINGS_HXX
+#define INCLUDED_FILTER_INC_STRINGS_HXX
#define STR_APPL_NAME_WRITER "%PRODUCTNAME Writer (.sxw)"
#define STR_APPL_NAME_CALC "%PRODUCTNAME Calc (.sxc)"
diff --git a/filter/source/flash/impswfdialog.hxx b/filter/source/flash/impswfdialog.hxx
index adf3a349f715..5dfe84de0d13 100644
--- a/filter/source/flash/impswfdialog.hxx
+++ b/filter/source/flash/impswfdialog.hxx
@@ -31,7 +31,6 @@
#include <vcl/FilterConfigItem.hxx>
-class ResMgr;
namespace vcl { class Window; }
diff --git a/filter/source/flash/swfdialog.hxx b/filter/source/flash/swfdialog.hxx
index c659b51750cd..e75d8ba08a87 100644
--- a/filter/source/flash/swfdialog.hxx
+++ b/filter/source/flash/swfdialog.hxx
@@ -27,7 +27,6 @@
namespace vcl { class Window; }
-class ResMgr;
class SWFDialog final:
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx
index a8bfd98c4410..f84093afa558 100644
--- a/filter/source/graphicfilter/eps/eps.cxx
+++ b/filter/source/graphicfilter/eps/eps.cxx
@@ -21,6 +21,7 @@
#include <tools/stream.hxx>
#include <tools/poly.hxx>
#include <tools/fract.hxx>
+#include <tools/resmgr.hxx>
#include <vcl/svapp.hxx>
#include <vcl/metaact.hxx>
#include <vcl/graph.hxx>
@@ -436,14 +437,9 @@ bool PSWriter::WritePS( const Graphic& rGraphic, SvStream& rTargetStream, Filter
if ( mbStatus && mnLevelWarning && pFilterConfigItem )
{
- ResMgr* pResMgr;
- pResMgr = ResMgr::CreateResMgr( "eps", Application::GetSettings().GetUILanguageTag() );
- if( pResMgr )
- {
- ScopedVclPtrInstance< InfoBox > aInfoBox( nullptr, ResId(KEY_VERSION_CHECK, *pResMgr) );
- aInfoBox->Execute();
- delete pResMgr;
- }
+ std::locale loc = Translate::Create("flt", Application::GetSettings().GetUILanguageTag());
+ ScopedVclPtrInstance< InfoBox > aInfoBox(nullptr, Translate::get(KEY_VERSION_CHECK, loc));
+ aInfoBox->Execute();
}
if ( xStatusIndicator.is() )
diff --git a/filter/source/graphicfilter/eps/epsstr.src b/filter/source/graphicfilter/eps/epsstr.src
deleted file mode 100644
index 2a1139514450..000000000000
--- a/filter/source/graphicfilter/eps/epsstr.src
+++ /dev/null
@@ -1,27 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "strings.hrc"
-
-String KEY_VERSION_CHECK
-{
- Text [ en-US ] = "Warning: Not all of the imported EPS graphics could be saved at level1\nas some are at a higher level!";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/graphicfilter/eps/strings.hrc b/filter/source/graphicfilter/eps/strings.hrc
deleted file mode 100644
index 531cc7d7c4cb..000000000000
--- a/filter/source/graphicfilter/eps/strings.hrc
+++ /dev/null
@@ -1,22 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define KEY_VERSION_CHECK 260
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index e509e43e867a..56e3370158e0 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -20,7 +20,7 @@
#include <string.h>
#include "impdialog.hxx"
-#include "impdialog.hrc"
+#include "strings.hrc"
#include "bitmaps.hlst"
#include <officecfg/Office/Common.hxx>
#include <vcl/layout.hxx>
@@ -28,6 +28,7 @@
#include <vcl/svapp.hxx>
#include "sfx2/passwd.hxx"
#include "svtools/miscopt.hxx"
+#include "tools/resmgr.hxx"
#include "comphelper/propertyvalue.hxx"
#include "comphelper/sequence.hxx"
@@ -41,17 +42,17 @@
#include "com/sun/star/security/DocumentDigitalSignatures.hpp"
#include "com/sun/star/security/XCertificate.hpp"
-static ResMgr& getPDFFilterResMgr()
+static std::locale& getPDFFilterResLocale()
{
- static ResMgr *pRes = ResMgr::CreateResMgr( "pdffilter", Application::GetSettings().GetUILanguageTag());
- return *pRes;
+ static std::locale loc = Translate::Create("flt", Application::GetSettings().GetUILanguageTag());
+ return loc;
}
-PDFFilterResId::PDFFilterResId( sal_uInt32 nId ) : ResId( nId, getPDFFilterResMgr() )
+OUString PDFFilterResId(const char* pId)
{
+ return Translate::get(pId, getPDFFilterResLocale());
}
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -1613,35 +1614,35 @@ ImplErrorDialog::ImplErrorDialog(const std::set< vcl::PDFWriter::ErrorCode >& rE
{
case vcl::PDFWriter::Warning_Transparency_Omitted_PDFA:
{
- sal_uInt16 nPos = m_pErrors->InsertEntry( OUString( PDFFilterResId( STR_WARN_TRANSP_PDFA_SHORT ) ),
+ sal_uInt16 nPos = m_pErrors->InsertEntry( PDFFilterResId( STR_WARN_TRANSP_PDFA_SHORT ),
aWarnImg );
m_pErrors->SetEntryData( nPos, new OUString( PDFFilterResId( STR_WARN_TRANSP_PDFA ) ) );
}
break;
case vcl::PDFWriter::Warning_Transparency_Omitted_PDF13:
{
- sal_uInt16 nPos = m_pErrors->InsertEntry( OUString( PDFFilterResId( STR_WARN_TRANSP_VERSION_SHORT ) ),
+ sal_uInt16 nPos = m_pErrors->InsertEntry( PDFFilterResId( STR_WARN_TRANSP_VERSION_SHORT ),
aWarnImg );
m_pErrors->SetEntryData( nPos, new OUString( PDFFilterResId( STR_WARN_TRANSP_VERSION ) ) );
}
break;
case vcl::PDFWriter::Warning_FormAction_Omitted_PDFA:
{
- sal_uInt16 nPos = m_pErrors->InsertEntry( OUString( PDFFilterResId( STR_WARN_FORMACTION_PDFA_SHORT ) ),
+ sal_uInt16 nPos = m_pErrors->InsertEntry( PDFFilterResId( STR_WARN_FORMACTION_PDFA_SHORT ),
aWarnImg );
m_pErrors->SetEntryData( nPos, new OUString( PDFFilterResId( STR_WARN_FORMACTION_PDFA ) ) );
}
break;
case vcl::PDFWriter::Warning_Transparency_Converted:
{
- sal_uInt16 nPos = m_pErrors->InsertEntry( OUString( PDFFilterResId( STR_WARN_TRANSP_CONVERTED_SHORT ) ),
+ sal_uInt16 nPos = m_pErrors->InsertEntry( PDFFilterResId( STR_WARN_TRANSP_CONVERTED_SHORT ),
aWarnImg );
m_pErrors->SetEntryData( nPos, new OUString( PDFFilterResId( STR_WARN_TRANSP_CONVERTED ) ) );
}
break;
case vcl::PDFWriter::Error_Signature_Failed:
{
- sal_uInt16 nPos = m_pErrors->InsertEntry( OUString( PDFFilterResId( STR_ERR_SIGNATURE_FAILED ) ),
+ sal_uInt16 nPos = m_pErrors->InsertEntry( PDFFilterResId( STR_ERR_SIGNATURE_FAILED ),
aErrImg );
m_pErrors->SetEntryData( nPos, new OUString( PDFFilterResId( STR_ERR_PDF_EXPORT_ABORTED ) ) );
}
diff --git a/filter/source/pdf/impdialog.hrc b/filter/source/pdf/impdialog.hrc
deleted file mode 100644
index cd9f7772cb8b..000000000000
--- a/filter/source/pdf/impdialog.hrc
+++ /dev/null
@@ -1,45 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <filter.hrc>
-
-#define STR_ERR_SIGNATURE_FAILED (RID_PDF_DIALOG_START + 0)
-#define STR_ERR_PDF_EXPORT_ABORTED (RID_PDF_DIALOG_START + 1)
-
-#define STR_WARN_PASSWORD_PDFA (RID_PDF_DIALOG_START + 6)
-
-//strings for PDF security, user password management
-#define STR_PDF_EXPORT_UDPWD (RID_PDF_DIALOG_START + 7)
-
-//strings for PDF security, owner password management
-#define STR_PDF_EXPORT_ODPWD (RID_PDF_DIALOG_START + 8)
-
-#define STR_WARN_TRANSP_PDFA (RID_PDF_DIALOG_START + 9)
-#define STR_WARN_TRANSP_PDFA_SHORT (RID_PDF_DIALOG_START + 10)
-#define STR_WARN_TRANSP_VERSION (RID_PDF_DIALOG_START + 11)
-#define STR_WARN_TRANSP_VERSION_SHORT (RID_PDF_DIALOG_START + 12)
-#define STR_WARN_FORMACTION_PDFA (RID_PDF_DIALOG_START + 13)
-#define STR_WARN_FORMACTION_PDFA_SHORT (RID_PDF_DIALOG_START + 14)
-#define STR_WARN_TRANSP_CONVERTED (RID_PDF_DIALOG_START + 15)
-#define STR_WARN_TRANSP_CONVERTED_SHORT (RID_PDF_DIALOG_START + 16)
-
-//ATTENTION: maximum allowed value is (RID_PDF_DIALOG_START + 19)
-//(see filter/inc/filter.hrc)
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/impdialog.hxx b/filter/source/pdf/impdialog.hxx
index 2def0c7ffd83..526fa0cdf96f 100644
--- a/filter/source/pdf/impdialog.hxx
+++ b/filter/source/pdf/impdialog.hxx
@@ -38,20 +38,11 @@
#include <com/sun/star/beans/NamedValue.hpp>
-
class ImpPDFTabGeneralPage;
class ImpPDFTabViewerPage;
class ImpPDFTabOpnFtrPage;
class ImpPDFTabLinksPage;
-
-class PDFFilterResId : public ResId
-{
-public:
- explicit PDFFilterResId( sal_uInt32 nId );
-};
-
-
class ImplErrorDialog : public MessageDialog
{
private:
diff --git a/filter/source/pdf/impdialog.src b/filter/source/pdf/impdialog.src
deleted file mode 100644
index cb5b68a61ae8..000000000000
--- a/filter/source/pdf/impdialog.src
+++ /dev/null
@@ -1,91 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "impdialog.hrc"
-
-//strings used in encryption UI
-
-//password dialog title
-String STR_PDF_EXPORT_UDPWD
-{
- Text[ en-US ] = "Set open password";
-};
-
-//password dialog title
-String STR_PDF_EXPORT_ODPWD
-{
- Text[ en-US ] = "Set permission password";
-};
-
-String STR_WARN_PASSWORD_PDFA
-{
- Text [ en-US ] = "PDF/A does not allow encryption. The exported PDF file will not be password protected.";
-};
-
-String STR_WARN_TRANSP_PDFA_SHORT
-{
- Text [en-US] = "PDF/A transparency";
-};
-
-String STR_WARN_TRANSP_PDFA
-{
- Text [en-US] = "PDF/A forbids transparency. A transparent object was painted opaque instead.";
-};
-
-String STR_WARN_TRANSP_VERSION_SHORT
-{
- Text [en-US] = "PDF version conflict";
-};
-
-String STR_WARN_TRANSP_VERSION
-{
- Text [en-US] = "Transparency is not supported in PDF versions earlier than PDF 1.4. A transparent object was painted opaque instead";
-};
-
-String STR_WARN_FORMACTION_PDFA_SHORT
-{
- Text [en-US] = "PDF/A form action";
-};
-
-String STR_WARN_FORMACTION_PDFA
-{
- Text [en-US] = "A form control contained an action not supported by the PDF/A standard. The action was skipped";
-};
-
-String STR_WARN_TRANSP_CONVERTED
-{
- Text [en-US] = "Some objects were converted to an image in order to remove transparencies, because the target PDF format does not support transparencies. Possibly better results can be achieved if you remove the transparent objects before exporting.";
-};
-
-String STR_WARN_TRANSP_CONVERTED_SHORT
-{
- Text [en-US] = "Transparencies removed";
-};
-
-String STR_ERR_SIGNATURE_FAILED
-{
- Text [en-US] = "Signature generation failed";
-};
-
-String STR_ERR_PDF_EXPORT_ABORTED
-{
- Text [en-US] = "PDF export aborted";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/pdf.hrc b/filter/source/pdf/pdf.hrc
deleted file mode 100644
index 64b4dab38afc..000000000000
--- a/filter/source/pdf/pdf.hrc
+++ /dev/null
@@ -1,22 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define PDF_PROGRESS_BAR 260
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/pdf.src b/filter/source/pdf/pdf.src
deleted file mode 100644
index bf491d31856c..000000000000
--- a/filter/source/pdf/pdf.src
+++ /dev/null
@@ -1,27 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "pdf.hrc"
-
-String PDF_PROGRESS_BAR
-{
- Text [ en-US ] = "Export as PDF";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/pdf/pdfexport.cxx b/filter/source/pdf/pdfexport.cxx
index 1d24b3e0bf5e..d260e0308d59 100644
--- a/filter/source/pdf/pdfexport.cxx
+++ b/filter/source/pdf/pdfexport.cxx
@@ -22,6 +22,7 @@
#include <tools/urlobj.hxx>
#include <tools/fract.hxx>
#include <tools/poly.hxx>
+#include <tools/resmgr.hxx>
#include <vcl/mapmod.hxx>
#include <vcl/virdev.hxx>
#include <vcl/metaact.hxx>
@@ -50,7 +51,7 @@
#include "pdfexport.hxx"
#include "impdialog.hxx"
-#include "pdf.hrc"
+#include "strings.hrc"
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
@@ -883,14 +884,11 @@ bool PDFExport::Export( const OUString& rFile, const Sequence< PropertyValue >&
if ( mxStatusIndicator.is() )
{
- std::unique_ptr<ResMgr> pResMgr(ResMgr::CreateResMgr( "pdffilter", Application::GetSettings().GetUILanguageTag() ));
- if ( pResMgr )
- {
- sal_Int32 nTotalPageCount = aRangeEnum.size();
- if ( bExportPages && bExportNotesPages )
- nTotalPageCount *= 2;
- mxStatusIndicator->start( ResId( PDF_PROGRESS_BAR, *pResMgr ), nTotalPageCount );
- }
+ std::locale loc(Translate::Create("flt", Application::GetSettings().GetUILanguageTag()));
+ sal_Int32 nTotalPageCount = aRangeEnum.size();
+ if ( bExportPages && bExportNotesPages )
+ nTotalPageCount *= 2;
+ mxStatusIndicator->start(Translate::get(PDF_PROGRESS_BAR, loc), nTotalPageCount);
}
bRet = nPageCount > 0;
diff --git a/filter/source/svg/impsvgdialog.hxx b/filter/source/svg/impsvgdialog.hxx
index 205a3417e118..0e31fc33bef1 100644
--- a/filter/source/svg/impsvgdialog.hxx
+++ b/filter/source/svg/impsvgdialog.hxx
@@ -37,7 +37,6 @@
#define SVG_PROP_POSITIONED_CHARACTERS "UsePositionedCharacters"
-class ResMgr;
namespace vcl { class Window; }
@@ -61,7 +60,7 @@ private:
public:
- ImpSVGDialog( vcl::Window* pParent, /*ResMgr& rResMgr,*/
+ ImpSVGDialog( vcl::Window* pParent,
css::uno::Sequence< css::beans::PropertyValue >& rFilterData );
virtual ~ImpSVGDialog() override;
virtual void dispose() override;
diff --git a/filter/source/svg/svgdialog.hxx b/filter/source/svg/svgdialog.hxx
index 812e6efa9a5f..92d3d0432938 100644
--- a/filter/source/svg/svgdialog.hxx
+++ b/filter/source/svg/svgdialog.hxx
@@ -28,8 +28,6 @@
#include <memory>
-class ResMgr;
-
class SVGDialog final:
public ::svt::OGenericUnoDialog,
public ::comphelper::OPropertyArrayUsageHelper< SVGDialog >,
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index b5cebf5ec5fd..ea20785d4995 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -18,7 +18,7 @@
*/
#include "t602filter.hxx"
-#include "t602filter.hrc"
+#include "strings.hrc"
#include <stdio.h>
@@ -35,8 +35,10 @@
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
+#include <osl/diagnose.h>
#include <rtl/ref.hxx>
#include <rtl/character.hxx>
+#include <tools/resmgr.hxx>
#include <unotools/streamwrap.hxx>
using namespace ::cppu;
@@ -883,8 +885,10 @@ Reference< XInterface > SAL_CALL T602ImportFilter_createInstance( const Referenc
return static_cast<cppu::OWeakObject*>(new T602ImportFilter( rSMgr ));
}
-T602ImportFilterDialog::T602ImportFilterDialog() :
- mpResMgr( nullptr ) {}
+T602ImportFilterDialog::T602ImportFilterDialog()
+ : mpResLocale(nullptr)
+{
+}
T602ImportFilterDialog::~T602ImportFilterDialog()
{
@@ -1086,14 +1090,14 @@ bool T602ImportFilterDialog::OptionsDlg()
void T602ImportFilterDialog::initLocale()
{
- mpResMgr.reset( ResMgr::CreateResMgr( "t602filter", LanguageTag( meLocale) ) );
+ mpResLocale.reset(new std::locale(Translate::Create("flt", LanguageTag(meLocale))));
}
-ResMgr* T602ImportFilterDialog::getResMgr()
+const std::locale* T602ImportFilterDialog::getResLocale()
{
- if( !mpResMgr )
+ if (!mpResLocale)
initLocale();
- return mpResMgr.get();
+ return mpResLocale.get();
}
void SAL_CALL T602ImportFilterDialog::setTitle( const OUString& )
@@ -1108,10 +1112,9 @@ sal_Int16 SAL_CALL T602ImportFilterDialog::execute()
return css::ui::dialogs::ExecutableDialogResults::CANCEL;
}
-OUString T602ImportFilterDialog::getResStr( sal_Int16 resid )
+OUString T602ImportFilterDialog::getResStr(const char* resid)
{
- OUString sStr( ResId( resid, *getResMgr() ) );
- return sStr;
+ return Translate::get(resid, *getResLocale());
}
uno::Sequence<beans::PropertyValue> SAL_CALL T602ImportFilterDialog::getPropertyValues()
diff --git a/filter/source/t602/t602filter.hrc b/filter/source/t602/t602filter.hrc
deleted file mode 100644
index 7cb9a9d1f712..000000000000
--- a/filter/source/t602/t602filter.hrc
+++ /dev/null
@@ -1,39 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef T602FILTER_HRC
-#define T602FILTER_HRC
-
-#define T602FILTER_RES_START 1000
-
-#define T602FILTER_STR_IMPORT_DIALOG_TITLE (T602FILTER_RES_START)
-#define T602FILTER_STR_ENCODING_LABEL (T602FILTER_RES_START+1)
-#define T602FILTER_STR_ENCODING_AUTO (T602FILTER_RES_START+2)
-#define T602FILTER_STR_ENCODING_CP852 (T602FILTER_RES_START+3)
-#define T602FILTER_STR_ENCODING_CP895 (T602FILTER_RES_START+4)
-#define T602FILTER_STR_ENCODING_KOI8CS2 (T602FILTER_RES_START+5)
-#define T602FILTER_STR_CYRILLIC_MODE (T602FILTER_RES_START+6)
-#define T602FILTER_STR_REFORMAT_TEXT (T602FILTER_RES_START+7)
-#define T602FILTER_STR_DOT_COMMANDS (T602FILTER_RES_START+8)
-#define T602FILTER_STR_CANCEL_BUTTON (T602FILTER_RES_START+9)
-#define T602FILTER_STR_OK_BUTTON (T602FILTER_RES_START+10)
-
-#endif // T602FILTER_HRC
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/t602/t602filter.hxx b/filter/source/t602/t602filter.hxx
index e7b0c452b64c..8d81fb1b476a 100644
--- a/filter/source/t602/t602filter.hxx
+++ b/filter/source/t602/t602filter.hxx
@@ -33,7 +33,6 @@
#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
#include <cppuhelper/implbase.hxx>
#include <xmloff/attrlist.hxx>
-#include <tools/resmgr.hxx>
namespace T602ImportFilter {
@@ -84,10 +83,10 @@ class T602ImportFilterDialog : public cppu::WeakImplHelper <
>
{
css::lang::Locale meLocale;
- std::unique_ptr<ResMgr> mpResMgr;
+ std::unique_ptr<std::locale> mpResLocale;
bool OptionsDlg();
- ResMgr* getResMgr();
- OUString getResStr( sal_Int16 resid );
+ const std::locale* getResLocale();
+ OUString getResStr(const char* resid);
void initLocale();
virtual ~T602ImportFilterDialog() override;
diff --git a/filter/source/t602/t602filter.src b/filter/source/t602/t602filter.src
deleted file mode 100644
index 6771ee28ff20..000000000000
--- a/filter/source/t602/t602filter.src
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "t602filter.hrc"
-
-String T602FILTER_STR_IMPORT_DIALOG_TITLE
-{
- Text [ en-US ] = "Settings for T602 import";
-};
-
-String T602FILTER_STR_ENCODING_LABEL
-{
- Text [ en-US ] = "Encoding";
-};
-
-String T602FILTER_STR_ENCODING_AUTO
-{
- Text [ en-US ] = "Automatic";
-};
-
-String T602FILTER_STR_ENCODING_CP852
-{
- Text [ en-US ] = "CP852 (Latin2)";
-};
-
-String T602FILTER_STR_ENCODING_CP895
-{
- Text [ en-US ] = "CP895 (KEYB2CS, Kamenicky)";
-};
-
-String T602FILTER_STR_ENCODING_KOI8CS2
-{
- Text [ en-US ] = "KOI8 CS2";
-};
-
-String T602FILTER_STR_CYRILLIC_MODE
-{
- Text [ en-US ] = "Mode for Russian language (Cyrillic)";
-};
-
-String T602FILTER_STR_REFORMAT_TEXT
-{
- Text [ en-US ] = "Reformat the text";
-};
-
-String T602FILTER_STR_DOT_COMMANDS
-{
- Text [ en-US ] = "Display dot commands";
-};
-
-String T602FILTER_STR_CANCEL_BUTTON
-{
- Text [ en-US ] = "Cancel";
-};
-
-String T602FILTER_STR_OK_BUTTON
-{
- Text [ en-US ] = "OK";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/xsltdialog/xmlfilterdialogstrings.hrc b/filter/source/xsltdialog/xmlfilterdialogstrings.hrc
deleted file mode 100644
index 8db23c2ad6bc..000000000000
--- a/filter/source/xsltdialog/xmlfilterdialogstrings.hrc
+++ /dev/null
@@ -1,55 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERDIALOGSTRINGS_HRC
-#define INCLUDED_FILTER_SOURCE_XSLTDIALOG_XMLFILTERDIALOGSTRINGS_HRC
-
-#include "filter.hrc"
-
-#define STR_COLUMN_HEADER_NAME (RID_XSLT_DIALOG_START + 0)
-#define STR_COLUMN_HEADER_TYPE (RID_XSLT_DIALOG_START + 1)
-#define STR_UNKNOWN_APPLICATION (RID_XSLT_DIALOG_START + 2)
-#define STR_IMPORT_ONLY (RID_XSLT_DIALOG_START + 3)
-#define STR_IMPORT_EXPORT (RID_XSLT_DIALOG_START + 4)
-#define STR_EXPORT_ONLY (RID_XSLT_DIALOG_START + 5)
-
-#define STR_WARN_DELETE (RID_XSLT_DIALOG_START + 10)
-
-#define STR_DEFAULT_FILTER_NAME (RID_XSLT_DIALOG_START + 13)
-
-#define STR_ERROR_FILTER_NAME_EXISTS (RID_XSLT_DIALOG_START + 15)
-#define STR_ERROR_TYPE_NAME_EXISTS (RID_XSLT_DIALOG_START + 16)
-#define STR_ERROR_EXPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 18)
-#define STR_ERROR_IMPORT_XSLT_NOT_FOUND (RID_XSLT_DIALOG_START + 19)
-#define STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND (RID_XSLT_DIALOG_START + 20)
-#define STR_DEFAULT_UI_NAME (RID_XSLT_DIALOG_START + 21)
-#define STR_UNDEFINED_FILTER (RID_XSLT_DIALOG_START + 22)
-
-#define STR_FILTER_HAS_BEEN_SAVED (RID_XSLT_DIALOG_START + 23)
-#define STR_FILTERS_HAVE_BEEN_SAVED (RID_XSLT_DIALOG_START + 24)
-#define STR_FILTER_PACKAGE (RID_XSLT_DIALOG_START + 25)
-#define STR_FILTER_INSTALLED (RID_XSLT_DIALOG_START + 26)
-#define STR_FILTERS_INSTALLED (RID_XSLT_DIALOG_START + 27)
-#define STR_NO_FILTERS_FOUND (RID_XSLT_DIALOG_START + 28)
-
-#define STR_XML_FILTER_LISTBOX (RID_XSLT_DIALOG_START + 38)
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/xsltdialog/xmlfilterdialogstrings.src b/filter/source/xsltdialog/xmlfilterdialogstrings.src
deleted file mode 100644
index ea7a693a2257..000000000000
--- a/filter/source/xsltdialog/xmlfilterdialogstrings.src
+++ /dev/null
@@ -1,132 +0,0 @@
-/* -*- 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/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "xmlfilterdialogstrings.hrc"
-
-String STR_COLUMN_HEADER_NAME
-{
- Text [ en-US ] = "Name";
-};
-
-String STR_COLUMN_HEADER_TYPE
-{
- Text [ en-US ] = "Type";
-};
-
-String STR_UNKNOWN_APPLICATION
-{
- Text [ en-US ] = "Unknown";
-};
-
-String STR_IMPORT_ONLY
-{
- Text [ en-US ] = "import filter";
-};
-
-String STR_IMPORT_EXPORT
-{
- Text [ en-US ] = "import/export filter";
-};
-
-String STR_EXPORT_ONLY
-{
- Text [ en-US ] = "export filter";
-};
-
-String STR_WARN_DELETE
-{
- Text [ en-US ] = "Do you really want to delete the XML Filter '%s'? This action cannot be undone.";
-};
-
-String STR_ERROR_FILTER_NAME_EXISTS
-{
- Text [ en-US ] = "An XML filter with the name '%s' already exists. Please enter a different name.";
-};
-
-String STR_ERROR_TYPE_NAME_EXISTS
-{
- Text [ en-US ] = "The name for the user interface '%s1' is already used by the XML filter '%s2'. Please enter a different name.";
-};
-
-String STR_ERROR_EXPORT_XSLT_NOT_FOUND
-{
- Text [ en-US ] = "The XSLT for export cannot be found. Please enter a valid path.";
-};
-
-String STR_ERROR_IMPORT_XSLT_NOT_FOUND
-{
- Text [ en-US ] = "The XSLT for import cannot be found. Please enter a valid path.";
-};
-
-String STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND
-{
- Text [ en-US ] = "The given import template cannot be found. Please enter a valid path.";
-};
-
-String STR_DEFAULT_FILTER_NAME
-{
- Text [ en-US ] = "New Filter";
-};
-
-String STR_DEFAULT_UI_NAME
-{
- Text [ en-US ] = "Untitled";
-};
-
-String STR_UNDEFINED_FILTER
-{
- Text [ en-US ] = "undefined filter";
-};
-
-String STR_FILTER_HAS_BEEN_SAVED
-{
- Text [ en-US ] = "The XML filter '%s' has been saved as package '%s'. ";
-};
-
-String STR_FILTERS_HAVE_BEEN_SAVED
-{
- Text [ en-US ] = "%s XML filters have been saved in the package '%s'.";
-};
-
-String STR_FILTER_PACKAGE
-{
- Text [ en-US ] = "XSLT filter package";
-};
-
-String STR_FILTER_INSTALLED
-{
- Text [ en-US ] = "The XML filter '%s' has been installed successfully.";
-};
-
-String STR_FILTERS_INSTALLED
-{
- Text [ en-US ] = "%s XML filters have been installed successfully.";
-};
-
-String STR_NO_FILTERS_FOUND
-{
- Text [ en-US ] = "No XML filter could be installed because the package '%s' does not contain any XML filters.";
-};
-
-String STR_XML_FILTER_LISTBOX
-{
- Text [ en-US ] = "XML Filter List";
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/xsltdialog/xmlfilterjar.cxx b/filter/source/xsltdialog/xmlfilterjar.cxx
index f80e8f8a5820..388235716aef 100644
--- a/filter/source/xsltdialog/xmlfilterjar.cxx
+++ b/filter/source/xsltdialog/xmlfilterjar.cxx
@@ -42,7 +42,7 @@
#include <rtl/uri.hxx>
#include "xmlfilterjar.hxx"
-#include "xmlfilterdialogstrings.hrc"
+#include "strings.hrc"
#include "xmlfiltersettingsdialog.hxx"
#include "typedetectionexport.hxx"
#include "typedetectionimport.hxx"
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
index 1abaf3c1b3ac..5d26460f1a00 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.cxx
@@ -41,7 +41,7 @@
#include <algorithm>
#include <memory>
-#include "xmlfilterdialogstrings.hrc"
+#include "strings.hrc"
#include "xmlfiltersettingsdialog.hxx"
#include "xmlfiltertabdialog.hxx"
#include "xmlfiltertestdialog.hxx"
@@ -59,34 +59,34 @@ using namespace com::sun::star::util;
using ::rtl::Uri;
namespace {
- static ResMgr* pXSLTResMgr = nullptr;
+ static std::locale* pXSLTResLocale = nullptr;
- ResMgr* getXSLTDialogResMgr()
+ const std::locale* getXSLTDialogResLocale()
{
- return pXSLTResMgr;
+ return pXSLTResLocale;
}
}
-EnsureResMgr::EnsureResMgr()
+EnsureResLocale::EnsureResLocale()
{
- if (!pXSLTResMgr)
+ if (!pXSLTResLocale)
{
- m_xResMgr.reset(ResMgr::CreateResMgr("xsltdlg", Application::GetSettings().GetUILanguageTag()));
- pXSLTResMgr = m_xResMgr.get();
+ m_xResLocale.reset(new std::locale(Translate::Create("flt", Application::GetSettings().GetUILanguageTag())));
+ pXSLTResLocale = m_xResLocale.get();
}
}
-EnsureResMgr::~EnsureResMgr()
+EnsureResLocale::~EnsureResLocale()
{
- if (m_xResMgr)
- pXSLTResMgr = nullptr;
+ if (m_xResLocale)
+ pXSLTResLocale = nullptr;
}
namespace
{
- OUString XsltResId(sal_uInt16 nId)
+ OUString XsltResId(const char* pId)
{
- return ResId(nId, *getXSLTDialogResMgr());
+ return Translate::get(pId, *getXSLTDialogResLocale());
}
}
@@ -263,7 +263,7 @@ void XMLFilterSettingsDialog::onNew()
aTempInfo.maDocumentService = "com.sun.star.text.TextDocument";
// execute XML Filter Dialog
- ScopedVclPtrInstance< XMLFilterTabDialog > aDlg( this, *getXSLTDialogResMgr(), mxContext, &aTempInfo );
+ ScopedVclPtrInstance< XMLFilterTabDialog > aDlg( this, *getXSLTDialogResLocale(), mxContext, &aTempInfo );
if ( aDlg->Execute() == RET_OK )
{
// insert the new filter
@@ -282,7 +282,7 @@ void XMLFilterSettingsDialog::onEdit()
filter_info_impl* pOldInfo = static_cast<filter_info_impl*>(pEntry->GetUserData());
// execute XML Filter Dialog
- ScopedVclPtrInstance< XMLFilterTabDialog > aDlg( this, *getXSLTDialogResMgr(), mxContext, pOldInfo );
+ ScopedVclPtrInstance< XMLFilterTabDialog > aDlg( this, *getXSLTDialogResLocale(), mxContext, pOldInfo );
if ( aDlg->Execute() == RET_OK )
{
filter_info_impl* pNewInfo = aDlg->getNewFilterInfo();
@@ -1209,7 +1209,7 @@ void XMLFilterSettingsDialog::initFilterList()
application_info_impl::application_info_impl( const sal_Char * pDocumentService, const OUString& rUINameRes, const sal_Char * mpXMLImporter, const sal_Char * mpXMLExporter )
: maDocumentService( pDocumentService, strlen( pDocumentService ), RTL_TEXTENCODING_ASCII_US ),
- maDocumentUIName(ResMgr::ExpandVariables(rUINameRes)),
+ maDocumentUIName(Translate::ExpandVariables(rUINameRes)),
maXMLImporter( mpXMLImporter, strlen( mpXMLImporter ), RTL_TEXTENCODING_ASCII_US ),
maXMLExporter( mpXMLExporter, strlen( mpXMLExporter ), RTL_TEXTENCODING_ASCII_US )
{
diff --git a/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx b/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx
index 5105c67936c2..7dfc307ce057 100644
--- a/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx
+++ b/filter/source/xsltdialog/xmlfiltersettingsdialog.hxx
@@ -55,12 +55,12 @@ public:
virtual bool EventNotify( NotifyEvent& rNEvt ) override;
};
-class EnsureResMgr
+class EnsureResLocale
{
- std::unique_ptr<ResMgr> m_xResMgr;
+ std::unique_ptr<std::locale> m_xResLocale;
public:
- EnsureResMgr();
- ~EnsureResMgr();
+ EnsureResLocale();
+ ~EnsureResLocale();
};
class HeaderBar;
@@ -68,7 +68,7 @@ class HeaderBar;
class XMLFilterListBox : public SvTabListBox
{
private:
- EnsureResMgr m_aEnsureResMgr;
+ EnsureResLocale m_aEnsureResLocale;
VclPtr<HeaderBar> m_pHeaderBar;
DECL_LINK( TabBoxScrollHdl_Impl, SvTreeListBox*, void );
@@ -127,7 +127,7 @@ private:
OUString createUniqueInterfaceName( const OUString& rInterfaceName );
private:
- EnsureResMgr maEnsureResMgr;
+ EnsureResLocale maEnsureResLocale;
css::uno::Reference< css::uno::XComponentContext > mxContext;
css::uno::Reference< css::container::XNameContainer > mxFilterContainer;
css::uno::Reference< css::container::XNameContainer > mxTypeDetection;
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
index 7da2fdee4bbd..2db0f6a08707 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
@@ -21,11 +21,11 @@
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <comphelper/fileurl.hxx>
-#include <tools/resid.hxx>
+#include <tools/resmgr.hxx>
#include <vcl/layout.hxx>
#include <osl/file.hxx>
-#include "xmlfilterdialogstrings.hrc"
+#include "strings.hrc"
#include "xmlfiltertabdialog.hxx"
#include "xmlfiltertabpagebasic.hxx"
#include "xmlfiltertabpagexslt.hxx"
@@ -36,11 +36,11 @@ using namespace com::sun::star::container;
using namespace com::sun::star::beans;
using namespace com::sun::star::lang;
-XMLFilterTabDialog::XMLFilterTabDialog(vcl::Window *pParent, ResMgr& rResMgr,
+XMLFilterTabDialog::XMLFilterTabDialog(vcl::Window *pParent, const std::locale& rResLocale,
const Reference< XComponentContext >& rxContext, const filter_info_impl* pInfo)
: TabDialog(pParent, "XSLTFilterDialog","filter/ui/xsltfilterdialog.ui")
, mxContext(rxContext)
- , mrResMgr(rResMgr)
+ , mrResLocale(rResLocale)
{
get(m_pOKBtn, "ok");
get(m_pTabCtrl, "tabcontrol");
@@ -94,7 +94,7 @@ bool XMLFilterTabDialog::onOk()
mpBasicPage->FillInfo( mpNewInfo );
sal_uInt16 nErrorPage = 0;
- sal_uInt16 nErrorId = 0;
+ const char* pErrorId = nullptr;
vcl::Window* pFocusWindow = nullptr;
OUString aReplace1;
OUString aReplace2;
@@ -117,7 +117,7 @@ bool XMLFilterTabDialog::onOk()
if( xFilterContainer->hasByName( mpNewInfo->maFilterName ) )
{
nErrorPage = m_nBasicPageId;
- nErrorId = STR_ERROR_FILTER_NAME_EXISTS;
+ pErrorId = STR_ERROR_FILTER_NAME_EXISTS;
pFocusWindow = (mpBasicPage->m_pEDFilterName);
aReplace1 = mpNewInfo->maFilterName;
}
@@ -153,7 +153,7 @@ bool XMLFilterTabDialog::onOk()
sal_Int32 nFilter;
Sequence< PropertyValue > aValues;
- for( nFilter = 0; (nFilter < nCount) && (nErrorId == 0); nFilter++, pFilterName++ )
+ for( nFilter = 0; (nFilter < nCount) && (pErrorId == nullptr); nFilter++, pFilterName++ )
{
Any aAny( xFilterContainer->getByName( *pFilterName ) );
if( !(aAny >>= aValues) )
@@ -163,7 +163,7 @@ bool XMLFilterTabDialog::onOk()
PropertyValue* pValues = aValues.getArray();
sal_Int32 nValue;
- for( nValue = 0; (nValue < nValueCount) && (nErrorId == 0); nValue++, pValues++ )
+ for( nValue = 0; (nValue < nValueCount) && (pErrorId == nullptr); nValue++, pValues++ )
{
if ( pValues->Name == "UIName" )
{
@@ -172,7 +172,7 @@ bool XMLFilterTabDialog::onOk()
if( aInterfaceName == mpNewInfo->maInterfaceName )
{
nErrorPage = m_nBasicPageId;
- nErrorId = STR_ERROR_TYPE_NAME_EXISTS;
+ pErrorId = STR_ERROR_TYPE_NAME_EXISTS;
pFocusWindow = (mpBasicPage->m_pEDInterfaceName);
aReplace1 = mpNewInfo->maInterfaceName;
aReplace2 = *pFilterName;
@@ -189,7 +189,7 @@ bool XMLFilterTabDialog::onOk()
}
}
- if( 0 == nErrorId )
+ if (!pErrorId)
{
// 4. see if the export xslt is valid
if( (mpNewInfo->maExportXSLT != mpOldInfo->maExportXSLT) && comphelper::isFileUrl( mpNewInfo->maExportXSLT ) )
@@ -198,14 +198,14 @@ bool XMLFilterTabDialog::onOk()
osl::File::RC aRC = aFile.open( osl_File_OpenFlag_Read );
if( aRC != osl::File::E_None )
{
- nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
+ pErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
nErrorPage = m_nXSLTPageId;
pFocusWindow = (mpXSLTPage->m_pEDExportXSLT);
}
}
}
- if( 0 == nErrorId )
+ if (!pErrorId)
{
// 5. see if the import xslt is valid
if( (mpNewInfo->maImportXSLT != mpOldInfo->maImportXSLT) && comphelper::isFileUrl( mpNewInfo->maImportXSLT ) )
@@ -214,7 +214,7 @@ bool XMLFilterTabDialog::onOk()
osl::File::RC aRC = aFile.open( osl_File_OpenFlag_Read );
if( aRC != osl::File::E_None )
{
- nErrorId = STR_ERROR_IMPORT_XSLT_NOT_FOUND;
+ pErrorId = STR_ERROR_IMPORT_XSLT_NOT_FOUND;
nErrorPage = m_nXSLTPageId;
pFocusWindow = (mpXSLTPage->m_pEDImportTemplate);
}
@@ -224,12 +224,12 @@ bool XMLFilterTabDialog::onOk()
// see if we have at least an import or an export xslt
if((mpNewInfo->maImportXSLT.isEmpty()) && (mpNewInfo->maExportXSLT.isEmpty()) )
{
- nErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
+ pErrorId = STR_ERROR_EXPORT_XSLT_NOT_FOUND;
nErrorPage = m_nXSLTPageId;
pFocusWindow = (mpXSLTPage->m_pEDExportXSLT);
}
- if( 0 == nErrorId )
+ if (!pErrorId)
{
// 6. see if the import template is valid
if( (mpNewInfo->maImportTemplate != mpOldInfo->maImportTemplate) && comphelper::isFileUrl( mpNewInfo->maImportTemplate ) )
@@ -238,20 +238,19 @@ bool XMLFilterTabDialog::onOk()
osl::File::RC aRC = aFile.open( osl_File_OpenFlag_Read );
if( aRC != osl::File::E_None )
{
- nErrorId = STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND;
+ pErrorId = STR_ERROR_IMPORT_TEMPLATE_NOT_FOUND;
nErrorPage = m_nXSLTPageId;
pFocusWindow = (mpXSLTPage->m_pEDImportTemplate);
}
}
}
- if( 0 != nErrorId )
+ if (pErrorId)
{
m_pTabCtrl->SetCurPageId(nErrorPage);
ActivatePageHdl(nullptr, m_pTabCtrl);
- ResId aResId( nErrorId, mrResMgr );
- OUString aMessage( aResId );
+ OUString aMessage(Translate::get(pErrorId, mrResLocale));
if( aReplace2.getLength() )
{
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.hxx b/filter/source/xsltdialog/xmlfiltertabdialog.hxx
index 4602af7907b9..c51656b84742 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.hxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.hxx
@@ -25,7 +25,6 @@
#include <vcl/button.hxx>
namespace vcl { class Window; }
-class ResMgr;
class filter_info_impl;
class XMLFilterTabPageBasic;
@@ -34,7 +33,7 @@ class XMLFilterTabPageXSLT;
class XMLFilterTabDialog: public TabDialog
{
public:
- XMLFilterTabDialog(vcl::Window *pParent, ResMgr& rResMgr, const css::uno::Reference< css::uno::XComponentContext >& rxContext, const filter_info_impl* pInfo);
+ XMLFilterTabDialog(vcl::Window *pParent, const std::locale& rResLocale, const css::uno::Reference< css::uno::XComponentContext >& rxContext, const filter_info_impl* pInfo);
virtual ~XMLFilterTabDialog() override;
virtual void dispose() override;
@@ -48,7 +47,7 @@ private:
DECL_STATIC_LINK( XMLFilterTabDialog, ActivatePageHdl, TabControl*, void );
DECL_LINK(OkHdl, Button*, void);
- ResMgr& mrResMgr;
+ const std::locale& mrResLocale;
const filter_info_impl* mpOldInfo;
filter_info_impl* mpNewInfo;
diff --git a/filter/source/xsltdialog/xmlfiltertabpagebasic.cxx b/filter/source/xsltdialog/xmlfiltertabpagebasic.cxx
index fe6a2b7f449c..a868fb244b06 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagebasic.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagebasic.cxx
@@ -19,7 +19,7 @@
#include <rtl/ustrbuf.hxx>
-#include "xmlfilterdialogstrings.hrc"
+#include "strings.hrc"
#include "xmlfiltertabpagebasic.hxx"
#include "xmlfiltersettingsdialog.hxx"
diff --git a/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx b/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx
index ce6e9fc20d48..e366703e8a0c 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagebasic.hxx
@@ -26,7 +26,6 @@
#include <svtools/svmedit.hxx>
namespace vcl { class Window; }
-class ResMgr;
class filter_info_impl;
class XMLFilterTabPageBasic : public TabPage
diff --git a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
index 9d88183cdf96..c5e84aa0072e 100644
--- a/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
+++ b/filter/source/xsltdialog/xmlfiltertabpagexslt.hxx
@@ -27,7 +27,6 @@
#include <svtools/inettbc.hxx>
namespace vcl { class Window; }
-class ResMgr;
class filter_info_impl;
class XMLFilterTabPageXSLT : public TabPage
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
index 3cf1f5abd618..65c150db33b2 100644
--- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
@@ -44,7 +44,7 @@
#include <tools/urlobj.hxx>
#include <comphelper/processfactory.hxx>
-#include "xmlfilterdialogstrings.hrc"
+#include "strings.hrc"
#include "xmlfiltersettingsdialog.hxx"
#include "xmlfiltertestdialog.hxx"
diff --git a/filter/uiconfig/ui/impswfdialog.ui b/filter/uiconfig/ui/impswfdialog.ui
index 756fbe65eb41..c32d4c936c27 100644
--- a/filter/uiconfig/ui/impswfdialog.ui
+++ b/filter/uiconfig/ui/impswfdialog.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkAdjustment" id="adjustmentquality">
<property name="lower">1</property>
@@ -11,7 +11,7 @@
<object class="GtkDialog" id="ImpSWFDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Flash (SWF) Options</property>
+ <property name="title" translatable="yes" context="impswfdialog|ImpSWFDialog">Flash (SWF) Options</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -92,7 +92,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">1: min. quality
+ <property name="label" translatable="yes" context="impswfdialog|label1">1: min. quality
100: max. quality</property>
<property name="use_underline">True</property>
<property name="justify">fill</property>
@@ -133,7 +133,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportall">
- <property name="label" translatable="yes">Export _all slides (uncheck to export current slide)</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportall">Export _all slides (uncheck to export current slide)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -155,7 +155,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="exportmultiplefiles">
- <property name="label" translatable="yes">Export as _multiple files</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportmultiplefiles">Export as _multiple files</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -178,7 +178,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="exportbackgrounds">
- <property name="label" translatable="yes">Export _backgrounds</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportbackgrounds">Export _backgrounds</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -195,7 +195,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportbackgroundobjects">
- <property name="label" translatable="yes">Export back_ground objects</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportbackgroundobjects">Export back_ground objects</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -212,7 +212,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportslidecontents">
- <property name="label" translatable="yes">Export _slide contents</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportslidecontents">Export _slide contents</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -245,7 +245,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportsound">
- <property name="label" translatable="yes">Export _Verilogix Slide Annotations</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportsound">Export _Verilogix Slide Annotations</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -262,7 +262,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportoleasjpeg">
- <property name="label" translatable="yes">Export OLE objects as _JPEG images</property>
+ <property name="label" translatable="yes" context="impswfdialog|exportoleasjpeg">Export OLE objects as _JPEG images</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
diff --git a/filter/uiconfig/ui/pdfgeneralpage.ui b/filter/uiconfig/ui/pdfgeneralpage.ui
index 67612f59c197..554d736523af 100644
--- a/filter/uiconfig/ui/pdfgeneralpage.ui
+++ b/filter/uiconfig/ui/pdfgeneralpage.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">1</property>
@@ -40,7 +40,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkRadioButton" id="all">
- <property name="label" translatable="yes">_All</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|all">_All</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -58,7 +58,7 @@
</child>
<child>
<object class="GtkRadioButton" id="range">
- <property name="label" translatable="yes">_Pages:</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|range">_Pages:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -77,7 +77,7 @@
</child>
<child>
<object class="GtkRadioButton" id="selection">
- <property name="label" translatable="yes">_Selection</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|selection">_Selection</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -111,7 +111,7 @@
<object class="GtkLabel" id="slides">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
- <property name="label" translatable="yes">Slides:</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|slides">Slides:</property>
<property name="xalign">0</property>
</object>
<packing>
@@ -123,7 +123,7 @@
<object class="GtkLabel" id="selectedsheets">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
- <property name="label" translatable="yes">_Selection/Selected sheet(s)</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|selectedsheets">_Selection/Selected sheet(s)</property>
<property name="xalign">0</property>
</object>
<packing>
@@ -139,7 +139,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Range</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label1">Range</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -200,7 +200,7 @@
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">_Quality:</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label6">_Quality:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
</object>
@@ -225,7 +225,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkCheckButton" id="reduceresolution">
- <property name="label" translatable="yes">_Reduce image resolution</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|reduceresolution">_Reduce image resolution</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -247,17 +247,17 @@
<property name="can_focus">False</property>
<property name="has_entry">True</property>
<items>
- <item translatable="yes">75 DPI</item>
- <item translatable="yes">150 DPI</item>
- <item translatable="yes">300 DPI</item>
- <item translatable="yes">600 DPI</item>
- <item translatable="yes">1200 DPI</item>
+ <item translatable="yes" context="pdfgeneralpage|resolution">75 DPI</item>
+ <item translatable="yes" context="pdfgeneralpage|resolution">150 DPI</item>
+ <item translatable="yes" context="pdfgeneralpage|resolution">300 DPI</item>
+ <item translatable="yes" context="pdfgeneralpage|resolution">600 DPI</item>
+ <item translatable="yes" context="pdfgeneralpage|resolution">1200 DPI</item>
</items>
<child internal-child="entry">
<object class="GtkEntry" id="comboboxtext-entry">
<property name="can_focus">False</property>
<property name="invisible_char">●</property>
- <property name="text" translatable="yes">75 DPI</property>
+ <property name="text" translatable="yes" context="pdfgeneralpage|comboboxtext-entry">75 DPI</property>
</object>
</child>
</object>
@@ -281,7 +281,7 @@
</child>
<child>
<object class="GtkRadioButton" id="losslesscompress">
- <property name="label" translatable="yes">_Lossless compression</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|losslesscompress">_Lossless compression</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -298,7 +298,7 @@
</child>
<child>
<object class="GtkRadioButton" id="jpegcompress">
- <property name="label" translatable="yes">_JPEG compression</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|jpegcompress">_JPEG compression</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -320,7 +320,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Images</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label2">Images</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -352,7 +352,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkCheckButton" id="watermark">
- <property name="label" translatable="yes">Sign with _watermark</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|watermark">Sign with _watermark</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -387,7 +387,7 @@
<object class="GtkLabel" id="watermarklabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Text:</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|watermarklabel">Text:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">watermarkentry</property>
<property name="xalign">0</property>
@@ -407,7 +407,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Watermark</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label3">Watermark</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -444,11 +444,11 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="embed">
- <property name="label" translatable="yes">Hybrid PDF (em_bed ODF file)</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|embed">Hybrid PDF (em_bed ODF file)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Creates a PDF that is easily editable in %PRODUCTNAME</property>
+ <property name="tooltip_text" translatable="yes" context="pdfgeneralpage|embed|tooltip_text">Creates a PDF that is easily editable in %PRODUCTNAME</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
@@ -460,11 +460,11 @@
</child>
<child>
<object class="GtkCheckButton" id="pdfa">
- <property name="label" translatable="yes">Archive P_DF/A-1a (ISO 19005-1)</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|pdfa">Archive P_DF/A-1a (ISO 19005-1)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Creates an ISO 19005-1 compliant PDF file, ideal for long-term document preservation</property>
+ <property name="tooltip_text" translatable="yes" context="pdfgeneralpage|pdfa|tooltip_text">Creates an ISO 19005-1 compliant PDF file, ideal for long-term document preservation</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
@@ -476,11 +476,11 @@
</child>
<child>
<object class="GtkCheckButton" id="tagged">
- <property name="label" translatable="yes">_Tagged PDF (add document structure)</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|tagged">_Tagged PDF (add document structure)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Includes a document's content structure information in a PDF</property>
+ <property name="tooltip_text" translatable="yes" context="pdfgeneralpage|tagged|tooltip_text">Includes a document's content structure information in a PDF</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
@@ -492,11 +492,11 @@
</child>
<child>
<object class="GtkCheckButton" id="forms">
- <property name="label" translatable="yes">_Create PDF form</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|forms">_Create PDF form</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="tooltip_text" translatable="yes">Creates a PDF with fields that can be filled out</property>
+ <property name="tooltip_text" translatable="yes" context="pdfgeneralpage|forms|tooltip_text">Creates a PDF with fields that can be filled out</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
@@ -521,7 +521,7 @@
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Submit _format:</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label7">Submit _format:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">format</property>
<property name="xalign">0</property>
@@ -536,10 +536,10 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<items>
- <item translatable="yes">FDF</item>
- <item translatable="yes">PDF</item>
- <item translatable="yes">HTML</item>
- <item translatable="yes">XML</item>
+ <item translatable="yes" context="pdfgeneralpage|format">FDF</item>
+ <item translatable="yes" context="pdfgeneralpage|format">PDF</item>
+ <item translatable="yes" context="pdfgeneralpage|format">HTML</item>
+ <item translatable="yes" context="pdfgeneralpage|format">XML</item>
</items>
</object>
<packing>
@@ -549,7 +549,7 @@
</child>
<child>
<object class="GtkCheckButton" id="allowdups">
- <property name="label" translatable="yes">Allow duplicate field _names</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|allowdups">Allow duplicate field _names</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -573,7 +573,7 @@
</child>
<child>
<object class="GtkCheckButton" id="bookmarks">
- <property name="label" translatable="yes">Export _bookmarks</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|bookmarks">Export _bookmarks</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -588,7 +588,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exportplaceholders">
- <property name="label" translatable="yes">Expo_rt placeholders</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|exportplaceholders">Expo_rt placeholders</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -603,7 +603,7 @@
</child>
<child>
<object class="GtkCheckButton" id="comments">
- <property name="label" translatable="yes">_Export comments</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|comments">_Export comments</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -618,7 +618,7 @@
</child>
<child>
<object class="GtkCheckButton" id="emptypages">
- <property name="label" translatable="yes">Exp_ort automatically inserted blank pages</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|emptypages">Exp_ort automatically inserted blank pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -633,7 +633,7 @@
</child>
<child>
<object class="GtkCheckButton" id="viewpdf">
- <property name="label" translatable="yes">_View PDF after export</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|viewpdf">_View PDF after export</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -648,7 +648,7 @@
</child>
<child>
<object class="GtkCheckButton" id="usereferencexobject">
- <property name="label" translatable="yes">Use reference XObjects</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|usereferencexobject">Use reference XObjects</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -663,7 +663,7 @@
</child>
<child>
<object class="GtkCheckButton" id="hiddenpages">
- <property name="label" translatable="yes">Export _hidden pages</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|hiddenpages">Export _hidden pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -678,7 +678,7 @@
</child>
<child>
<object class="GtkCheckButton" id="notes">
- <property name="label" translatable="yes">Export _notes pages</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|notes">Export _notes pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -698,7 +698,7 @@
<property name="left_padding">12</property>
<child>
<object class="GtkCheckButton" id="onlynotes">
- <property name="label" translatable="yes">Export onl_y notes pages</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|onlynotes">Export onl_y notes pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -721,7 +721,7 @@
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">General</property>
+ <property name="label" translatable="yes" context="pdfgeneralpage|label4">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/pdflinkspage.ui b/filter/uiconfig/ui/pdflinkspage.ui
index f7a5d2e755d1..ba3562afc3df 100644
--- a/filter/uiconfig/ui/pdflinkspage.ui
+++ b/filter/uiconfig/ui/pdflinkspage.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<interface>
+<interface domain="flt">
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkBox" id="PdfLinksPage">
<property name="visible">True</property>
@@ -26,7 +26,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="export">
- <property name="label" translatable="yes">Export bookmarks as named destinations</property>
+ <property name="label" translatable="yes" context="pdflinkspage|export">Export bookmarks as named destinations</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -44,7 +44,7 @@
</child>
<child>
<object class="GtkCheckButton" id="convert">
- <property name="label" translatable="yes">_Convert document references to PDF targets</property>
+ <property name="label" translatable="yes" context="pdflinkspage|convert">_Convert document references to PDF targets</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -62,7 +62,7 @@
</child>
<child>
<object class="GtkCheckButton" id="exporturl">
- <property name="label" translatable="yes">Export _URLs relative to file system</property>
+ <property name="label" translatable="yes" context="pdflinkspage|exporturl">Export _URLs relative to file system</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -86,7 +86,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">General</property>
+ <property name="label" translatable="yes" context="pdflinkspage|label1">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -118,7 +118,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="default">
- <property name="label" translatable="yes">Default mode</property>
+ <property name="label" translatable="yes" context="pdflinkspage|default">Default mode</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -137,7 +137,7 @@
</child>
<child>
<object class="GtkRadioButton" id="openpdf">
- <property name="label" translatable="yes">Open with PDF reader application</property>
+ <property name="label" translatable="yes" context="pdflinkspage|openpdf">Open with PDF reader application</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -155,7 +155,7 @@
</child>
<child>
<object class="GtkRadioButton" id="openinternet">
- <property name="label" translatable="yes">Open _with Internet browser</property>
+ <property name="label" translatable="yes" context="pdflinkspage|openinternet">Open _with Internet browser</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -179,7 +179,7 @@
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Cross-document Links</property>
+ <property name="label" translatable="yes" context="pdflinkspage|label5">Cross-document Links</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/pdfoptionsdialog.ui b/filter/uiconfig/ui/pdfoptionsdialog.ui
index f8a7a409e63b..632ccec0df25 100644
--- a/filter/uiconfig/ui/pdfoptionsdialog.ui
+++ b/filter/uiconfig/ui/pdfoptionsdialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.6"/>
<object class="GtkDialog" id="PdfOptionsDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">PDF Options</property>
+ <property name="title" translatable="yes" context="pdfoptionsdialog|PdfOptionsDialog">PDF Options</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -19,7 +19,7 @@
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="ok">
- <property name="label" translatable="yes">E_xport</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|ok">E_xport</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
@@ -83,7 +83,7 @@
<object class="GtkLabel" id="general">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">General</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|general">General</property>
</object>
<packing>
<property name="tab_fill">False</property>
@@ -96,7 +96,7 @@
<object class="GtkLabel" id="initialview">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Initial View</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|initialview">Initial View</property>
</object>
<packing>
<property name="position">1</property>
@@ -110,7 +110,7 @@
<object class="GtkLabel" id="userinterface">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">User Interface</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|userinterface">User Interface</property>
</object>
<packing>
<property name="position">2</property>
@@ -124,7 +124,7 @@
<object class="GtkLabel" id="links">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Links</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|links">Links</property>
</object>
<packing>
<property name="position">3</property>
@@ -138,7 +138,7 @@
<object class="GtkLabel" id="security">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Security</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|security">Security</property>
</object>
<packing>
<property name="position">4</property>
@@ -152,7 +152,7 @@
<object class="GtkLabel" id="digitalsignatures">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Digital Signatures</property>
+ <property name="label" translatable="yes" context="pdfoptionsdialog|digitalsignatures">Digital Signatures</property>
</object>
<packing>
<property name="position">5</property>
diff --git a/filter/uiconfig/ui/pdfsecuritypage.ui b/filter/uiconfig/ui/pdfsecuritypage.ui
index 6d2658dbbe9a..4d9f73f5a5bc 100644
--- a/filter/uiconfig/ui/pdfsecuritypage.ui
+++ b/filter/uiconfig/ui/pdfsecuritypage.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.6"/>
<object class="GtkBox" id="PdfSecurityPage">
<property name="visible">True</property>
@@ -28,7 +28,7 @@
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="setpassword">
- <property name="label" translatable="yes">Set _Passwords…</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|setpassword">Set _Passwords…</property>
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
@@ -51,7 +51,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Open password set</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label5">Open password set</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -63,7 +63,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will be encrypted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label6">PDF document will be encrypted</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -86,7 +86,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">No open password set</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label7">No open password set</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -98,7 +98,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will not be encrypted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label8">PDF document will not be encrypted</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -121,7 +121,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will not be encrypted due to PDF/A export.</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label30">PDF document will not be encrypted due to PDF/A export.</property>
<property name="wrap">True</property>
</object>
<packing>
@@ -145,7 +145,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Permission password set</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label9">Permission password set</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -157,7 +157,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will be restricted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label11">PDF document will be restricted</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -180,7 +180,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">No permission password set</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label12">No permission password set</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -192,7 +192,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will be unrestricted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label13">PDF document will be unrestricted</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -215,7 +215,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">PDF document will not be restricted due to PDF/A export.</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label14">PDF document will not be restricted due to PDF/A export.</property>
<property name="wrap">True</property>
</object>
<packing>
@@ -235,7 +235,7 @@
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Set Passwords</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|setpasswordstitle">Set Passwords</property>
</object>
<packing>
<property name="expand">False</property>
@@ -251,7 +251,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">File Encryption and Permission</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label2">File Encryption and Permission</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -289,7 +289,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="printnone">
- <property name="label" translatable="yes">_Not permitted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|printnone">_Not permitted</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -305,7 +305,7 @@
</child>
<child>
<object class="GtkRadioButton" id="printlow">
- <property name="label" translatable="yes">_Low resolution (150 dpi)</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|printlow">_Low resolution (150 dpi)</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -321,7 +321,7 @@
</child>
<child>
<object class="GtkRadioButton" id="printhigh">
- <property name="label" translatable="yes">_High resolution</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|printhigh">_High resolution</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -344,7 +344,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Printing</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label1">Printing</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -376,7 +376,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="changenone">
- <property name="label" translatable="yes">No_t permitted</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|changenone">No_t permitted</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -392,7 +392,7 @@
</child>
<child>
<object class="GtkRadioButton" id="changeinsdel">
- <property name="label" translatable="yes">_Inserting, deleting, and rotating pages</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|changeinsdel">_Inserting, deleting, and rotating pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -408,7 +408,7 @@
</child>
<child>
<object class="GtkRadioButton" id="changeform">
- <property name="label" translatable="yes">_Filling in form fields</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|changeform">_Filling in form fields</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -424,7 +424,7 @@
</child>
<child>
<object class="GtkRadioButton" id="changecomment">
- <property name="label" translatable="yes">_Commenting, filling in form fields</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|changecomment">_Commenting, filling in form fields</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -440,7 +440,7 @@
</child>
<child>
<object class="GtkRadioButton" id="changeany">
- <property name="label" translatable="yes">_Any except extracting pages</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|changeany">_Any except extracting pages</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -463,7 +463,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Changes</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label3">Changes</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -495,7 +495,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="enablecopy">
- <property name="label" translatable="yes">Ena_ble copying of content</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|enablecopy">Ena_ble copying of content</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -511,7 +511,7 @@
</child>
<child>
<object class="GtkCheckButton" id="enablea11y">
- <property name="label" translatable="yes">Enable text access for acce_ssibility tools</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|enablea11y">Enable text access for acce_ssibility tools</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -533,7 +533,7 @@
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Content</property>
+ <property name="label" translatable="yes" context="pdfsecuritypage|label4">Content</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/pdfsignpage.ui b/filter/uiconfig/ui/pdfsignpage.ui
index fe10e299496a..542bc5eb7dc7 100644
--- a/filter/uiconfig/ui/pdfsignpage.ui
+++ b/filter/uiconfig/ui/pdfsignpage.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkFrame" id="PdfSignPage">
<property name="visible">True</property>
@@ -34,7 +34,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Use this certificate to digitally sign PDF documents:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label2">Use this certificate to digitally sign PDF documents:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">cert</property>
</object>
@@ -57,7 +57,7 @@
</child>
<child>
<object class="GtkButton" id="select">
- <property name="label" translatable="yes">Select...</property>
+ <property name="label" translatable="yes" context="pdfsignpage|select">Select...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -156,7 +156,7 @@
<property name="can_focus">True</property>
<property name="has_entry">False</property>
<items>
- <item translatable="yes">None</item>
+ <item translatable="yes" context="pdfsignpage|tsa">None</item>
</items>
</object>
<packing>
@@ -169,7 +169,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Certificate password:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label7">Certificate password:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">password</property>
</object>
@@ -183,7 +183,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Location:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label12">Location:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">location</property>
</object>
@@ -197,7 +197,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Contact information:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label13">Contact information:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">contact</property>
</object>
@@ -211,7 +211,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Reason:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label14">Reason:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">reason</property>
</object>
@@ -225,7 +225,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Time Stamp Authority:</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label15">Time Stamp Authority:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">reason</property>
</object>
@@ -248,7 +248,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Certificate</property>
+ <property name="label" translatable="yes" context="pdfsignpage|label1">Certificate</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/pdfuserinterfacepage.ui b/filter/uiconfig/ui/pdfuserinterfacepage.ui
index ab359c815277..199cf8e55d20 100644
--- a/filter/uiconfig/ui/pdfuserinterfacepage.ui
+++ b/filter/uiconfig/ui/pdfuserinterfacepage.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">1</property>
@@ -41,7 +41,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="center">
- <property name="label" translatable="yes">_Center window on screen</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|center">_Center window on screen</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -57,7 +57,7 @@
</child>
<child>
<object class="GtkCheckButton" id="resize">
- <property name="label" translatable="yes">_Resize window to initial page</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|resize">_Resize window to initial page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -73,7 +73,7 @@
</child>
<child>
<object class="GtkCheckButton" id="open">
- <property name="label" translatable="yes">_Open in full screen mode</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|open">_Open in full screen mode</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -89,7 +89,7 @@
</child>
<child>
<object class="GtkCheckButton" id="display">
- <property name="label" translatable="yes">_Display document title</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|display">_Display document title</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -111,7 +111,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Window Options</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|label1">Window Options</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -142,7 +142,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkCheckButton" id="toolbar">
- <property name="label" translatable="yes">Hide _toolbar</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|toolbar">Hide _toolbar</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -158,7 +158,7 @@
</child>
<child>
<object class="GtkCheckButton" id="menubar">
- <property name="label" translatable="yes">Hide _menubar</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|menubar">Hide _menubar</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -174,7 +174,7 @@
</child>
<child>
<object class="GtkCheckButton" id="window">
- <property name="label" translatable="yes">Hide _window controls</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|window">Hide _window controls</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -196,7 +196,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">User Interface Options</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|label2">User Interface Options</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -226,7 +226,7 @@
<property name="can_focus">False</property>
<child>
<object class="GtkCheckButton" id="effects">
- <property name="label" translatable="yes">_Use transition effects</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|effects">_Use transition effects</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -248,7 +248,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Transitions</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|label3">Transitions</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -280,7 +280,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkRadioButton" id="allbookmarks">
- <property name="label" translatable="yes">_All bookmark levels</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|allbookmarks">_All bookmark levels</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -297,7 +297,7 @@
</child>
<child>
<object class="GtkRadioButton" id="visiblebookmark">
- <property name="label" translatable="yes">_Visible bookmark levels:</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|visiblebookmark">_Visible bookmark levels:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -341,7 +341,7 @@
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Bookmarks</property>
+ <property name="label" translatable="yes" context="pdfuserinterfacepage|label4">Bookmarks</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/pdfviewpage.ui b/filter/uiconfig/ui/pdfviewpage.ui
index 4640de4438aa..d6f6f24834b1 100644
--- a/filter/uiconfig/ui/pdfviewpage.ui
+++ b/filter/uiconfig/ui/pdfviewpage.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.6"/>
<object class="GtkAdjustment" id="adjustment1">
<property name="lower">1</property>
@@ -47,7 +47,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="pageonly">
- <property name="label" translatable="yes">_Page only</property>
+ <property name="label" translatable="yes" context="pdfviewpage|pageonly">_Page only</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -64,7 +64,7 @@
</child>
<child>
<object class="GtkRadioButton" id="outline">
- <property name="label" translatable="yes">_Bookmarks and page</property>
+ <property name="label" translatable="yes" context="pdfviewpage|outline">_Bookmarks and page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -80,7 +80,7 @@
</child>
<child>
<object class="GtkRadioButton" id="thumbs">
- <property name="label" translatable="yes">_Thumbnails and page</property>
+ <property name="label" translatable="yes" context="pdfviewpage|thumbs">_Thumbnails and page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -104,7 +104,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Open on pa_ge:</property>
+ <property name="label" translatable="yes" context="pdfviewpage|label4">Open on pa_ge:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">page</property>
</object>
@@ -139,7 +139,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Panes</property>
+ <property name="label" translatable="yes" context="pdfviewpage|label2">Panes</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -171,7 +171,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="fitdefault">
- <property name="label" translatable="yes">_Default</property>
+ <property name="label" translatable="yes" context="pdfviewpage|fitdefault">_Default</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -188,7 +188,7 @@
</child>
<child>
<object class="GtkRadioButton" id="fitwin">
- <property name="label" translatable="yes">_Fit in window</property>
+ <property name="label" translatable="yes" context="pdfviewpage|fitwin">_Fit in window</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -204,7 +204,7 @@
</child>
<child>
<object class="GtkRadioButton" id="fitwidth">
- <property name="label" translatable="yes">Fit _width</property>
+ <property name="label" translatable="yes" context="pdfviewpage|fitwidth">Fit _width</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -220,7 +220,7 @@
</child>
<child>
<object class="GtkRadioButton" id="fitvis">
- <property name="label" translatable="yes">Fit _visible</property>
+ <property name="label" translatable="yes" context="pdfviewpage|fitvis">Fit _visible</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -241,7 +241,7 @@
<property name="column_spacing">12</property>
<child>
<object class="GtkRadioButton" id="fitzoom">
- <property name="label" translatable="yes">_Zoom factor:</property>
+ <property name="label" translatable="yes" context="pdfviewpage|fitzoom">_Zoom factor:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -287,7 +287,7 @@
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Magnification</property>
+ <property name="label" translatable="yes" context="pdfviewpage|label3">Magnification</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -326,7 +326,7 @@
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="defaultlayout">
- <property name="label" translatable="yes">D_efault</property>
+ <property name="label" translatable="yes" context="pdfviewpage|defaultlayout">D_efault</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -343,7 +343,7 @@
</child>
<child>
<object class="GtkRadioButton" id="singlelayout">
- <property name="label" translatable="yes">_Single page</property>
+ <property name="label" translatable="yes" context="pdfviewpage|singlelayout">_Single page</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -359,7 +359,7 @@
</child>
<child>
<object class="GtkRadioButton" id="contlayout">
- <property name="label" translatable="yes">_Continuous</property>
+ <property name="label" translatable="yes" context="pdfviewpage|contlayout">_Continuous</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -375,7 +375,7 @@
</child>
<child>
<object class="GtkRadioButton" id="contfacinglayout">
- <property name="label" translatable="yes">C_ontinuous facing</property>
+ <property name="label" translatable="yes" context="pdfviewpage|contfacinglayout">C_ontinuous facing</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -391,7 +391,7 @@
</child>
<child>
<object class="GtkCheckButton" id="firstonleft">
- <property name="label" translatable="yes">First page is _left</property>
+ <property name="label" translatable="yes" context="pdfviewpage|firstonleft">First page is _left</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -413,7 +413,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Page Layout</property>
+ <property name="label" translatable="yes" context="pdfviewpage|label1">Page Layout</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/testxmlfilter.ui b/filter/uiconfig/ui/testxmlfilter.ui
index fcc3b951192a..c23502c7f29f 100644
--- a/filter/uiconfig/ui/testxmlfilter.ui
+++ b/filter/uiconfig/ui/testxmlfilter.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="TestXMLFilterDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">Test XML Filter: %s</property>
+ <property name="title" translatable="yes" context="testxmlfilter|TestXMLFilterDialog">Test XML Filter: %s</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -86,7 +86,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">XSLT for export</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label3">XSLT for export</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -99,7 +99,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Transform document</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label4">Transform document</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -108,7 +108,7 @@
</child>
<child>
<object class="GtkButton" id="exportbrowse">
- <property name="label" translatable="yes">Browse...</property>
+ <property name="label" translatable="yes" context="testxmlfilter|exportbrowse">Browse...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -120,7 +120,7 @@
</child>
<child>
<object class="GtkButton" id="currentdocument">
- <property name="label" translatable="yes">Current Document</property>
+ <property name="label" translatable="yes" context="testxmlfilter|currentdocument">Current Document</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -165,7 +165,7 @@
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Export</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label1">Export</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
@@ -202,7 +202,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">XSLT for import</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label5">XSLT for import</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -211,7 +211,7 @@
</child>
<child>
<object class="GtkButton" id="importbrowse">
- <property name="label" translatable="yes">Browse...</property>
+ <property name="label" translatable="yes" context="testxmlfilter|importbrowse">Browse...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -223,7 +223,7 @@
</child>
<child>
<object class="GtkButton" id="recentfile">
- <property name="label" translatable="yes">Recent File</property>
+ <property name="label" translatable="yes" context="testxmlfilter|recentfile">Recent File</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -239,7 +239,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Template for import</property>
+ <property name="label" translatable="yes" context="testxmlfilter|templateimport">Template for import</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -259,7 +259,7 @@
</child>
<child>
<object class="GtkCheckButton" id="displaysource">
- <property name="label" translatable="yes">Display source</property>
+ <property name="label" translatable="yes" context="testxmlfilter|displaysource">Display source</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
@@ -278,7 +278,7 @@
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Transform file</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label6">Transform file</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -323,7 +323,7 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Import</property>
+ <property name="label" translatable="yes" context="testxmlfilter|label2">Import</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
diff --git a/filter/uiconfig/ui/warnpdfdialog.ui b/filter/uiconfig/ui/warnpdfdialog.ui
index 1860e84e99d9..0eda449ff96d 100644
--- a/filter/uiconfig/ui/warnpdfdialog.ui
+++ b/filter/uiconfig/ui/warnpdfdialog.ui
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.6"/>
<object class="GtkMessageDialog" id="WarnPDFDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="type">popup</property>
- <property name="title" translatable="yes">Problems During PDF Export</property>
+ <property name="title" translatable="yes" context="warnpdfdialog|WarnPDFDialog">Problems During PDF Export</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<property name="message_type">warning</property>
<property name="buttons">ok</property>
- <property name="text" translatable="yes">During PDF export the following problems occurred:</property>
+ <property name="text" translatable="yes" context="warnpdfdialog|WarnPDFDialog">During PDF export the following problems occurred:</property>
<child internal-child="vbox">
<object class="GtkBox" id="messagedialog-vbox">
<property name="can_focus">False</property>
diff --git a/filter/uiconfig/ui/xmlfiltersettings.ui b/filter/uiconfig/ui/xmlfiltersettings.ui
index 79de962e1205..bacfeebdaebb 100644
--- a/filter/uiconfig/ui/xmlfiltersettings.ui
+++ b/filter/uiconfig/ui/xmlfiltersettings.ui
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<requires lib="LibreOffice" version="1.0"/>
<object class="GtkDialog" id="XMLFilterSettingsDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">XML Filter Settings</property>
+ <property name="title" translatable="yes" context="xmlfiltersettings|XMLFilterSettingsDialog">XML Filter Settings</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -21,7 +21,7 @@
<property name="layout_style">start</property>
<child>
<object class="GtkButton" id="new">
- <property name="label" translatable="yes">_New...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|new">_New...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -35,7 +35,7 @@
</child>
<child>
<object class="GtkButton" id="edit">
- <property name="label" translatable="yes">_Edit...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|edit">_Edit...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -49,7 +49,7 @@
</child>
<child>
<object class="GtkButton" id="test">
- <property name="label" translatable="yes">_Test XSLTs...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|test">_Test XSLTs...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -63,7 +63,7 @@
</child>
<child>
<object class="GtkButton" id="delete">
- <property name="label" translatable="yes">_Delete...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|delete">_Delete...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -77,7 +77,7 @@
</child>
<child>
<object class="GtkButton" id="save">
- <property name="label" translatable="yes">_Save as Package...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|save">_Save as Package...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -91,7 +91,7 @@
</child>
<child>
<object class="GtkButton" id="open">
- <property name="label" translatable="yes">_Open Package...</property>
+ <property name="label" translatable="yes" context="xmlfiltersettings|open">_Open Package...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -148,7 +148,7 @@
<property name="can_focus">False</property>
<child internal-child="accessible">
<object class="AtkObject" id="filterlist-atkobject">
- <property name="AtkObject::accessible-name" translatable="yes">XML Filter List</property>
+ <property name="AtkObject::accessible-name" translatable="yes" context="xmlfiltersettings|filterlist-atkobject">XML Filter List</property>
</object>
</child>
</object>
diff --git a/filter/uiconfig/ui/xmlfiltertabpagegeneral.ui b/filter/uiconfig/ui/xmlfiltertabpagegeneral.ui
index 9b0f4773bf25..7d0a00304eb8 100644
--- a/filter/uiconfig/ui/xmlfiltertabpagegeneral.ui
+++ b/filter/uiconfig/ui/xmlfiltertabpagegeneral.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkBox" id="XmlFilterTabPageGeneral">
<property name="visible">True</property>
@@ -20,7 +20,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">_Filter name:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagegeneral|label2">_Filter name:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">filtername</property>
</object>
@@ -34,7 +34,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">_Application:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagegeneral|label3">_Application:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">application</property>
</object>
@@ -48,7 +48,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">_Name of file type:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagegeneral|label4">_Name of file type:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">interfacename</property>
</object>
@@ -62,7 +62,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">File _extension:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagegeneral|label5">File _extension:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">extension</property>
</object>
@@ -77,7 +77,7 @@
<property name="can_focus">False</property>
<property name="xalign">1</property>
<property name="yalign">0</property>
- <property name="label" translatable="yes">Comment_s:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagegeneral|label6">Comment_s:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">description:border</property>
</object>
diff --git a/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui b/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui
index 44d0e77e9983..9dc0724d7b49 100644
--- a/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui
+++ b/filter/uiconfig/ui/xmlfiltertabpagetransformation.ui
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<requires lib="LibreOffice" version="1.0"/>
<object class="GtkBox" id="XmlFilterTabPageTransformation">
@@ -22,7 +22,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">_DocType:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|label2">_DocType:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">doc</property>
</object>
@@ -49,7 +49,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">_XSLT for export:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|label4">_XSLT for export:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">xsltexport</property>
</object>
@@ -60,7 +60,7 @@
</child>
<child>
<object class="GtkButton" id="browseexport">
- <property name="label" translatable="yes">Brows_e...</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|browseexport">Brows_e...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -76,7 +76,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">XSLT _for import:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|label5">XSLT _for import:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">xsltimport</property>
</object>
@@ -87,7 +87,7 @@
</child>
<child>
<object class="GtkButton" id="browseimport">
- <property name="label" translatable="yes">B_rowse...</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|browseimport">B_rowse...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -103,7 +103,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">1</property>
- <property name="label" translatable="yes">Template for _import:</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|label6">Template for _import:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">tempimport</property>
</object>
@@ -114,7 +114,7 @@
</child>
<child>
<object class="GtkButton" id="browsetemp">
- <property name="label" translatable="yes">Browse...</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|browsetemp">Browse...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
@@ -172,7 +172,7 @@
</child>
<child>
<object class="GtkCheckButton" id="filtercb">
- <property name="label" translatable="yes">The filter needs XSLT 2.0 processor</property>
+ <property name="label" translatable="yes" context="xmlfiltertabpagetransformation|filtercb">The filter needs XSLT 2.0 processor</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
diff --git a/filter/uiconfig/ui/xsltfilterdialog.ui b/filter/uiconfig/ui/xsltfilterdialog.ui
index 8c68701e9697..baa2b3918292 100644
--- a/filter/uiconfig/ui/xsltfilterdialog.ui
+++ b/filter/uiconfig/ui/xsltfilterdialog.ui
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="flt">
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="XSLTFilterDialog">
<property name="can_focus">False</property>
<property name="border_width">6</property>
- <property name="title" translatable="yes">XML Filter: %s</property>
+ <property name="title" translatable="yes" context="xsltfilterdialog|XSLTFilterDialog">XML Filter: %s</property>
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
@@ -83,7 +83,7 @@
<object class="GtkLabel" id="general">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">General</property>
+ <property name="label" translatable="yes" context="xsltfilterdialog|general">General</property>
</object>
<packing>
<property name="tab_fill">False</property>
@@ -96,7 +96,7 @@
<object class="GtkLabel" id="transformation">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Transformation</property>
+ <property name="label" translatable="yes" context="xsltfilterdialog|transformation">Transformation</property>
</object>
<packing>
<property name="position">1</property>