Skip to content

Commit

Permalink
fix: label initializer
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Nov 19, 2024
1 parent ee8b9ca commit fe14b9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aligner/src/main/java/org/omegat/gui/align/AlignPanel.form
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@
</Component>
<Component class="javax.swing.JLabel" name="averageDistanceLabel">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/omegat/gui/align/Bundle.properties" key="ALIGNER_PANEL_LABEL_AVGSCORE" replaceFormat="BUNDLE.getString(&quot;{key}&quot;)"/>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="StringUtil.format(BUNDLE.getString(&quot;ALIGNER_PANEL_LABEL_AVGSCORE&quot;), &quot;-&quot;)" type="code"/>
</Property>
</Properties>
<AuxValues>
Expand Down
3 changes: 2 additions & 1 deletion aligner/src/main/java/org/omegat/gui/align/AlignPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.omegat.gui.align.Aligner.CalculatorType;
import org.omegat.gui.align.Aligner.ComparisonMode;
import org.omegat.gui.align.Aligner.CounterType;
import org.omegat.util.StringUtil;

/**
* UI component for displaying and editing the results of algorithmic alignment.
Expand Down Expand Up @@ -204,7 +205,7 @@ private void initComponents() {
jPanel7.add(comparisonComboBox);
jPanel7.add(filler5);

averageDistanceLabel.setText(BUNDLE.getString("ALIGNER_PANEL_LABEL_AVGSCORE")); // NOI18N
averageDistanceLabel.setText(StringUtil.format(BUNDLE.getString("ALIGNER_PANEL_LABEL_AVGSCORE"), "-"));
jPanel7.add(averageDistanceLabel);
jPanel7.add(filler6);

Expand Down

0 comments on commit fe14b9e

Please sign in to comment.