move %PRODUCTNAME using accessible description into a .hrc
similar reason as
commit 3cca2c6053
Author: Caolán McNamara <caolanm@redhat.com>
Date: Sat Jun 4 21:10:16 2022 +0100
restore %PRODUCTNAME to accessible descriptions that need them
reading all a11y desc at load time in order to possibly substitute
%PRODUCTNAME and re-write a11y desc at runtime explodes gtk's a11y, so
we limit it to where we have to do it.
Change-Id: I6e92bfa7db2ba769e2bd899b31d3ef42b4d37e8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154896
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -398,6 +398,8 @@
|
||||
#define RID_LANGUAGETOOL_LEAVE_EMPTY NC_("RID_LANGUAGETOOL_LEAVE_EMPTY", "Leave this field empty to use the free version")
|
||||
#define RID_LANGUAGETOOL_REST_LEAVE_EMPTY NC_("RID_LANGUAGETOOL_REST_LEAVE_EMPTY", "Leave this field empty to use LanguageTool protocol")
|
||||
|
||||
#define RID_CUISTR_A11Y_DESC_BACKUP NC_("RID_CUISTR_A11Y_DESC_BACKUP", "Specifies if the backup copy should be stored in the same folder as the original document. If not selected, the backup copy is stored in the folder specified in Tools - Options - %PRODUCTNAME - Paths - Backups.")
|
||||
|
||||
// Translatable names of color schemes
|
||||
#define RID_COLOR_SCHEME_LIBREOFFICE_AUTOMATIC NC_("RID_COLOR_SCHEME_LIBREOFFICE_AUTOMATIC", "Automatic")
|
||||
|
||||
|
||||
@@ -24,7 +24,9 @@
|
||||
#include <o3tl/string_view.hxx>
|
||||
#include <svl/eitem.hxx>
|
||||
#include <svl/intitem.hxx>
|
||||
#include <dialmgr.hxx>
|
||||
#include "optsave.hxx"
|
||||
#include <strings.hrc>
|
||||
#include <treeopt.hxx>
|
||||
#include <officecfg/Office/Common.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
@@ -99,6 +101,7 @@ SvxSaveTabPage::SvxSaveTabPage(weld::Container* pPage, weld::DialogController* p
|
||||
, m_xODFWarningFT(m_xBuilder->weld_label("odfwarning_label"))
|
||||
{
|
||||
m_xAutoSaveEdit->set_max_length(2);
|
||||
m_xBackupIntoDocumentFolderCB->set_accessible_description(CuiResId(RID_CUISTR_A11Y_DESC_BACKUP));
|
||||
|
||||
m_xODFVersionLB->set_id(0, OUString::number(SvtSaveOptions::ODFVER_011)); // 1.0/1.1
|
||||
m_xODFVersionLB->set_id(1, OUString::number(SvtSaveOptions::ODFVER_012)); // 1.2
|
||||
|
||||
@@ -284,11 +284,6 @@
|
||||
<property name="margin-start">18</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<child internal-child="accessible">
|
||||
<object class="AtkObject" id="backupintodocumentfolder-atkobject">
|
||||
<property name="AtkObject::accessible-description" translatable="yes" context="optsavepage|backupintodocumentfolder">Specifies if the backup copy should be stored in the same folder as the original document. If not selected, the backup copy is stored in the folder specified in Tools - Options - %PRODUCTNAME - Paths - Backups.</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
|
||||
Reference in New Issue
Block a user