diff --git a/app/src/processing/app/Mode.java b/app/src/processing/app/Mode.java index b51e50438..7fdd7ed8c 100644 --- a/app/src/processing/app/Mode.java +++ b/app/src/processing/app/Mode.java @@ -414,7 +414,7 @@ public abstract class Mode { }); toolbarMenu.add(item); - item = new JMenuItem("Add Examples..."); + item = new JMenuItem(Language.text("examples.add_examples")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { base.handleOpenExampleManager(); @@ -843,7 +843,7 @@ public abstract class Mode { examplesPanel.setBackground(Color.WHITE); final JPanel openExamplesManagerPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); - JLabel openExamplesManagerLabel = new JLabel("Add Examples..."); + JLabel openExamplesManagerLabel = new JLabel(Language.text("examples.add_examples")); // openExamplesManagerLabel.setAlignmentX(Component.LEFT_ALIGNMENT); openExamplesManagerPanel.add(openExamplesManagerLabel); openExamplesManagerPanel.setOpaque(false); diff --git a/app/src/processing/app/contrib/ContributionManagerDialog.java b/app/src/processing/app/contrib/ContributionManagerDialog.java index 927a88104..284565b7b 100644 --- a/app/src/processing/app/contrib/ContributionManagerDialog.java +++ b/app/src/processing/app/contrib/ContributionManagerDialog.java @@ -57,7 +57,7 @@ public class ContributionManagerDialog { // the calling editor, so updates can be applied Editor editor; String category; - String compatibleContribType; + String compatibleCheckboxLabel; boolean isCompatibilityFilter; ContributionListing contribListing; @@ -66,21 +66,26 @@ public class ContributionManagerDialog { if (type == null) { title = Language.text("contrib.manager_title.update"); filter = ContributionType.createUpdateFilter(); - compatibleContribType = "Updates"; + compatibleCheckboxLabel = Language.text("contrib.show_only_compatible.update"); } else { - if (type == ContributionType.MODE) + if (type == ContributionType.MODE) { title = Language.text("contrib.manager_title.mode"); - else if (type == ContributionType.TOOL) + compatibleCheckboxLabel = Language.text("contrib.show_only_compatible.mode"); + } + else if (type == ContributionType.TOOL) { title = Language.text("contrib.manager_title.tool"); - else if (type == ContributionType.LIBRARY) + compatibleCheckboxLabel = Language.text("contrib.show_only_compatible.tool"); + } + else if (type == ContributionType.LIBRARY) { title = Language.text("contrib.manager_title.library"); + compatibleCheckboxLabel = Language.text("contrib.show_only_compatible.library"); + } + else if (type == ContributionType.EXAMPLES_PACKAGE) { + title = Language.text("contrib.manager_title.examples-package"); + compatibleCheckboxLabel = Language.text("contrib.show_only_compatible.examples-package"); + } - filter = type.createFilter(); - - if (type == ContributionType.LIBRARY) - compatibleContribType = "Libraries"; - else - compatibleContribType = type.getTitle() + "s"; + filter = type.createFilter(); } contribListing = ContributionListing.getInstance(); contributionListPanel = new ContributionListPanel(this, filter); @@ -237,7 +242,7 @@ public class ContributionManagerDialog { filterPanel.add(Box.createHorizontalStrut(5)); - final JCheckBox compatibleContrib = new JCheckBox("Show Only Compatible " + compatibleContribType); + final JCheckBox compatibleContrib = new JCheckBox(compatibleCheckboxLabel); compatibleContrib.addItemListener(new ItemListener() { @Override diff --git a/app/src/processing/app/languages/PDE.properties b/app/src/processing/app/languages/PDE.properties index 6e4850983..67d4fe656 100644 --- a/app/src/processing/app/languages/PDE.properties +++ b/app/src/processing/app/languages/PDE.properties @@ -166,6 +166,7 @@ sketchbook.tree = Sketchbook # examples (Frame) examples = Examples +examples.add_examples = Add Examples... # Export (Frame) export = Export Options @@ -264,8 +265,14 @@ contrib.manager_title.update = Update Manager contrib.manager_title.mode = Mode Manager contrib.manager_title.tool = Tool Manager contrib.manager_title.library = Library Manager +contrib.manager_title.examples-package = Examples-Package Manager contrib.category = Category: contrib.filter_your_search = Filter your search... +contrib.show_only_compatible.mode = Show Only Compatible Modes +contrib.show_only_compatible.tool = Show Only Compatible Tools +contrib.show_only_compatible.library = Show Only Compatible Libraries +contrib.show_only_compatible.examples-package = Show Only Compatible Examples +contrib.show_only_compatible.update = Show Only Compatible Updates contrib.restart = Restart Processing contrib.unsaved_changes = Unsaved changes have been found contrib.unsaved_changes.prompt = Are you sure you want to restart Processing without saving first?