Skip to content

Commit

Permalink
Make more consistent titles of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
praszuk committed Sep 6, 2024
1 parent 58acb24 commit 8d33eb6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

public class BuildingsImportAction extends JosmAction {
static final String DESCRIPTION = tr("Import building at cursor position or replace/update selected.");
static final String TITLE = tr("Download building");
static final String TITLE = "PlBuildings: " + tr("Download building");
static final BuildingsImportStats importStats = BuildingsImportStats.getInstance();

public BuildingsImportAction() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import org.openstreetmap.josm.tools.Shortcut;

public class BuildingsSettingsAction extends JosmAction {
public static final String DESCRIPTION = tr("Show PlBuildings settings");
public static final String TITLE = tr("PlBuildings settings");
public static final String DESCRIPTION = tr("Show settings");
public static final String TITLE = "PlBuildings: " + tr("Settings");

private final SettingsController settingsController;

Expand All @@ -23,7 +23,7 @@ public BuildingsSettingsAction(SettingsController settingsController) {
DESCRIPTION,
Shortcut.registerShortcut(
BuildingsPlugin.info.name + ":settings",
tr("Open") + " " + TITLE,
TITLE,
KeyEvent.CHAR_UNDEFINED,
Shortcut.NONE
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,32 @@
import static org.openstreetmap.josm.tools.I18n.tr;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.LinkedHashMap;
import javax.swing.JOptionPane;
import org.openstreetmap.josm.actions.JosmAction;
import org.openstreetmap.josm.plugins.plbuildings.BuildingsPlugin;
import org.openstreetmap.josm.plugins.plbuildings.gui.BuildingsImportStatsPanel;
import org.openstreetmap.josm.plugins.plbuildings.models.BuildingsImportStats;
import org.openstreetmap.josm.tools.ImageProvider;
import org.openstreetmap.josm.tools.Shortcut;

public class BuildingsStatsAction extends JosmAction {

public static final String DESCRIPTION = tr("Show buildings import stats");
public static final String TITLE = tr("Buildings import stats");
public static final String TITLE = "PlBuildings: " + tr("Buildings import stats");

public BuildingsStatsAction() {
super(
TITLE,
(ImageProvider) null,
DESCRIPTION,
null,
Shortcut.registerShortcut(
BuildingsPlugin.info.name + ":import_stats",
TITLE,
KeyEvent.CHAR_UNDEFINED,
Shortcut.NONE
),
true,
BuildingsPlugin.info.name + ":buildings_stats",
false
Expand Down

0 comments on commit 8d33eb6

Please sign in to comment.