added missing language keys

This commit is contained in:
hneemann 2017-07-03 21:03:47 +02:00
parent b51abacc8c
commit 80bcfe82ac
5 changed files with 11 additions and 4 deletions

View File

@ -838,7 +838,9 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
if (tsl.isEmpty())
throw new TestingDataException(Lang.get("err_noTestData"));
windowPosManager.register("testResult", new ValueTableDialog(Main.this).addTestResult(tsl, circuitComponent.getCircuit(), library)).setVisible(true);
windowPosManager.register("testResult", new ValueTableDialog(Main.this, Lang.get("msg_testResult"))
.addTestResult(tsl, circuitComponent.getCircuit(), library))
.setVisible(true);
ensureModelIsStopped();
} catch (NodeException | ElementNotFoundException | PinException | TestingDataException | RuntimeException e1) {

View File

@ -130,7 +130,9 @@ public class GraphDialog extends JDialog implements ModelStateObserver {
showTable = new ToolTipAction(Lang.get("menu_showDataAsTable")) {
@Override
public void actionPerformed(ActionEvent e) {
new ValueTableDialog(owner).addValueTable("Data", logData).disableGraph().setVisible(true);
new ValueTableDialog(owner, title)
.addValueTable(Lang.get("win_data"), logData).disableGraph()
.setVisible(true);
}
}.setToolTip(Lang.get("menu_showDataAsTable_tt"));

View File

@ -46,9 +46,10 @@ public class ValueTableDialog extends JDialog {
* Creates a new result dialog.
*
* @param owner the parent frame
* @param title the frame title
*/
public ValueTableDialog(JFrame owner) {
super(owner, Lang.get("msg_testResult"), false);
public ValueTableDialog(JFrame owner, String title) {
super(owner, title, false);
this.owner = owner;
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
setAlwaysOnTop(true);

View File

@ -950,6 +950,7 @@ Die Icons stammen aus dem Tango Desktop Project.</string>
<string name="tt_moveItemUp">Eintrag nach oben schieben</string>
<string name="win_allSolutions">Alle möglichen Lösungen</string>
<string name="win_testdata_N">Testdaten {0}</string>
<string name="win_data">Daten</string>
<string name="win_confirmExit">Beenden bestätigen!</string>
<string name="win_measures">Messwerte</string>
<string name="win_measures_fullstep">Messwerte im Vollschrittmodus</string>

View File

@ -946,6 +946,7 @@ The icons are taken from the Tango Desktop Project.</string>
<string name="win_table_exportDialog">Export</string>
<string name="win_itempicker_title">Select</string>
<string name="win_testdata_N">Testdata {0}</string>
<string name="win_data">Data</string>
<string name="btn_help">Help</string>