make hardcoded string localizable

Change-Id: Ie0bc8e8bd5e0770b85130496359e64358e34c836
Reviewed-on: https://gerrit.libreoffice.org/15727
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Andras Timar
2015-05-14 10:32:26 +02:00
committed by Caolán McNamara
parent 53fe42375e
commit bf6a14e0ba
3 changed files with 19 additions and 1 deletions

View File

@@ -73,6 +73,7 @@ MacroWarning::MacroWarning( vcl::Window* _pParent, bool _bWithSignatures, ResMgr
get(mpSymbolImg, "symbolImage"); get(mpSymbolImg, "symbolImage");
get(mpDocNameFI, "docNameLabel"); get(mpDocNameFI, "docNameLabel");
get(mpDescr1FI, "descr1Label"); get(mpDescr1FI, "descr1Label");
get(mpDescr1aFI, "descr1aLabel");
get(mpSignsFI, "signsLabel"); get(mpSignsFI, "signsLabel");
get(mpViewSignsBtn, "viewSignsButton"); get(mpViewSignsBtn, "viewSignsButton");
get(mpDescr2FI, "descr2Label"); get(mpDescr2FI, "descr2Label");
@@ -96,6 +97,7 @@ void MacroWarning::dispose()
{ {
mpSymbolImg.clear(); mpSymbolImg.clear();
mpDocNameFI.clear(); mpDocNameFI.clear();
mpDescr1aFI.clear();
mpDescr1FI.clear(); mpDescr1FI.clear();
mpSignsFI.clear(); mpSignsFI.clear();
mpViewSignsBtn.clear(); mpViewSignsBtn.clear();
@@ -191,7 +193,8 @@ void MacroWarning::InitControls()
} }
else else
{ {
mpDescr1FI->SetText("The document contains document macros."); mpDescr1FI->Hide();
mpDescr1aFI->Show();
mpSignsFI->Hide(); mpSignsFI->Hide();
mpViewSignsBtn->Hide(); mpViewSignsBtn->Hide();
mpAlwaysTrustCB->Hide(); mpAlwaysTrustCB->Hide();

View File

@@ -47,6 +47,7 @@ private:
VclPtr<FixedImage> mpSymbolImg; VclPtr<FixedImage> mpSymbolImg;
VclPtr<FixedText> mpDocNameFI; VclPtr<FixedText> mpDocNameFI;
VclPtr<FixedText> mpDescr1FI; VclPtr<FixedText> mpDescr1FI;
VclPtr<FixedText> mpDescr1aFI;
VclPtr<FixedText> mpSignsFI; VclPtr<FixedText> mpSignsFI;
VclPtr<PushButton> mpViewSignsBtn; VclPtr<PushButton> mpViewSignsBtn;
VclPtr<FixedText> mpDescr2FI; VclPtr<FixedText> mpDescr2FI;

View File

@@ -132,6 +132,20 @@
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkLabel" id="descr1aLabel">
<property name="visible">False</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">The document contains document macros.</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child> <child>
<object class="GtkBox" id="box3"> <object class="GtkBox" id="box3">
<property name="visible">True</property> <property name="visible">True</property>