mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
translate more
This commit is contained in:
@@ -280,7 +280,7 @@ public class MainFrame extends JFrame implements ISwingUI {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void showMessage(String message, String title, int messageType) {
|
public void showMessage(String message, String title, int messageType) {
|
||||||
JOptionPane.showMessageDialog(this, message, TranslateUtil.translate(title), messageType);
|
JOptionPane.showMessageDialog(this, message, title, messageType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -122,9 +122,9 @@ public class ActionBarPlugin implements IPlugIn {
|
|||||||
public ConfigToolbar getConfigToolbar() {
|
public ConfigToolbar getConfigToolbar() {
|
||||||
if (configToolbar == null) {
|
if (configToolbar == null) {
|
||||||
configToolbar = new ConfigToolbar();
|
configToolbar = new ConfigToolbar();
|
||||||
configToolbar.add("Continuous Creation", IPlugInPort.CONTINUOUS_CREATION_KEY, IconLoader.Elements.getIcon(), false);
|
configToolbar.add(TranslateUtil.translate("Continuous Creation"), IPlugInPort.CONTINUOUS_CREATION_KEY, IconLoader.Elements.getIcon(), false);
|
||||||
configToolbar.add("Highlight Connected Areas", IPlugInPort.HIGHLIGHT_CONTINUITY_AREA, IconLoader.LaserPointer.getIcon(), false);
|
configToolbar.add(TranslateUtil.translate("Highlight Connected Areas"), IPlugInPort.HIGHLIGHT_CONTINUITY_AREA, IconLoader.LaserPointer.getIcon(), false);
|
||||||
configToolbar.add("Sticky Points", IPlugInPort.STICKY_POINTS_KEY, IconLoader.GraphNodes.getIcon(), true);
|
configToolbar.add(TranslateUtil.translate("Sticky Points"), IPlugInPort.STICKY_POINTS_KEY, IconLoader.GraphNodes.getIcon(), true);
|
||||||
}
|
}
|
||||||
return configToolbar;
|
return configToolbar;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ import javax.swing.JLabel;
|
|||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import javax.swing.JSeparator;
|
import javax.swing.JSeparator;
|
||||||
|
|
||||||
|
import org.diylc.lang.TranslateUtil;
|
||||||
|
|
||||||
public class ActionToolbar extends JPanel {
|
public class ActionToolbar extends JPanel {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@@ -46,7 +48,7 @@ public class ActionToolbar extends JPanel {
|
|||||||
public void add(final Action action) {
|
public void add(final Action action) {
|
||||||
final JLabel l = new JLabel();
|
final JLabel l = new JLabel();
|
||||||
l.setIcon((Icon) action.getValue(AbstractAction.SMALL_ICON));
|
l.setIcon((Icon) action.getValue(AbstractAction.SMALL_ICON));
|
||||||
l.setToolTipText((String) action.getValue(AbstractAction.NAME));
|
l.setToolTipText(TranslateUtil.translate((String) action.getValue(AbstractAction.NAME)));
|
||||||
l.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
l.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
||||||
l.addMouseListener(new MouseAdapter() {
|
l.addMouseListener(new MouseAdapter() {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user