summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-16 21:57:33 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-16 21:57:33 +0100
commit753c44f991bed48d5e8c38dc3b865a347f71c053 (patch)
tree6b20cce0a90e8cbb6a602d5137ba85a411ce5e63 /pdf-over-gui/src/main/java
parent1138d85b78f30147b89265a0e4bffbc62eb298e5 (diff)
downloadpdf-over-753c44f991bed48d5e8c38dc3b865a347f71c053.tar.gz
pdf-over-753c44f991bed48d5e8c38dc3b865a347f71c053.tar.bz2
pdf-over-753c44f991bed48d5e8c38dc3b865a347f71c053.zip
properly localize "Signature Profile" in config (cf. #66)
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index e5637fbb..2002f8dc 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -167,14 +167,12 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
this.grpSignatureProfile = new Group(this, SWT.NONE);
ConfigurationCompositeBase.anchor(grpSignatureProfile).right(100,-5).left(0,5).top(grpHandySignatur, 5).set();
- this.grpSignatureProfile.setText("Signature Profile"); // TODO: move to message
this.grpSignatureProfile.setLayout(new FormLayout());
ConfigurationCompositeBase.setFontHeight(grpSignatureProfile, Constants.TEXT_SIZE_NORMAL);
this.cmbSignatureProfiles = new Combo(this.grpSignatureProfile, SWT.READ_ONLY);
ConfigurationCompositeBase.anchor(cmbSignatureProfiles).left(0,10).right(100,-10).top(0,10).bottom(100,-10).set();
ConfigurationCompositeBase.setFontHeight(cmbSignatureProfiles, Constants.TEXT_SIZE_NORMAL);
- this.cmbSignatureProfiles.setItems(Arrays.stream(Profile.values()).map(v -> Messages.getString("simple_config."+v.name())).toArray(String[]::new));
this.cmbSignatureProfiles.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
@@ -786,5 +784,8 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
this.grpSignatureLang.setText(Messages.getString("simple_config.SigBlockLang_Title"));
this.cmbSignatureLang.setToolTipText(Messages.getString("simple_config.SigBlockLang_ToolTip"));
+
+ this.grpSignatureProfile.setText(Messages.getString("simple_config.SigProfile_Title"));
+ this.cmbSignatureProfiles.setItems(Arrays.stream(Profile.values()).map(v -> Messages.getString("simple_config."+v.name())).toArray(String[]::new));
}
}