mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
translations
This commit is contained in:
@@ -56,7 +56,7 @@ public class ActionBarPlugin implements IPlugIn {
|
||||
private ConfigToolbar configToolbar;
|
||||
private JLabel donateLabel;
|
||||
|
||||
private static final String DONATE_HTML = "<html><u>" + TranslateUtil.translate("Enjoying DIYLC? Click here to buy me a coffe :)") + "</u></html>";
|
||||
private static final String DONATE_HTML = "<html><u>" + TranslateUtil.translate("Enjoying DIYLC? Click here to buy me a coffee :)") + "</u></html>";
|
||||
|
||||
public ActionBarPlugin(ISwingUI swingUI) {
|
||||
this.swingUI = swingUI;
|
||||
|
||||
@@ -37,10 +37,11 @@ import javax.swing.UIManager;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
import javax.swing.event.DocumentListener;
|
||||
|
||||
import org.diylc.lang.TranslateUtil;
|
||||
import org.diylc.swingframework.ButtonDialog;
|
||||
|
||||
public class FindDialog extends ButtonDialog {
|
||||
|
||||
public class FindDialog extends ButtonDialog {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final String TOOLTIP_HTML = "<html>Use RegEx to search for component names, types and values.<br>"
|
||||
@@ -58,7 +59,10 @@ public class FindDialog extends ButtonDialog {
|
||||
+ "'R27' - matches a component named R27<br>"
|
||||
+ "'Resistor' - matches all resistors<br>"
|
||||
+ "'R\\d+' - matches components starting with R, followed by at least one digit"
|
||||
+ "</html>";
|
||||
+ "</html>";
|
||||
|
||||
private static final String FIND = TranslateUtil.translate("Find");
|
||||
private static final String LOOK_FOR = TranslateUtil.translate("Look for");
|
||||
|
||||
private JPanel mainPanel;
|
||||
|
||||
@@ -68,7 +72,7 @@ public class FindDialog extends ButtonDialog {
|
||||
private String criteria;
|
||||
|
||||
public FindDialog(JFrame owner) {
|
||||
super(owner, "Find", new String[] {OK, CANCEL});
|
||||
super(owner, FIND, new String[] {OK, CANCEL});
|
||||
setMinimumSize(new Dimension(400, 32));
|
||||
layoutGui();
|
||||
refreshState();
|
||||
@@ -92,7 +96,7 @@ public class FindDialog extends ButtonDialog {
|
||||
gbc.gridx = 0;
|
||||
|
||||
gbc.gridy = 0;
|
||||
mainPanel.add(new JLabel("Look for:"), gbc);
|
||||
mainPanel.add(new JLabel(LOOK_FOR + ":"), gbc);
|
||||
|
||||
gbc.gridx = 1;
|
||||
gbc.fill = GridBagConstraints.HORIZONTAL;
|
||||
|
||||
Reference in New Issue
Block a user