From 9969730503ecd228ebca5df00fd840845d79f7df Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 10 Jun 2020 20:21:19 +0200 Subject: [PATCH] [ui] "create desktop entry" localization warnings GitOrigin-RevId: 0fe2ec1d84a5cfc9994c4ffdcff69e5e250431df --- .../resources/messages/ApplicationBundle.properties | 2 ++ .../com/intellij/ide/actions/CreateDesktopEntryAction.java | 4 ++-- .../intellij/ide/customize/CustomizeDesktopEntryStep.java | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/platform/platform-api/resources/messages/ApplicationBundle.properties b/platform/platform-api/resources/messages/ApplicationBundle.properties index 36b2941439b7..c522b4d24dc9 100644 --- a/platform/platform-api/resources/messages/ApplicationBundle.properties +++ b/platform/platform-api/resources/messages/ApplicationBundle.properties @@ -619,12 +619,14 @@ launcher.script.sudo.prompt=Please enter your password to create a launcher scri launcher.script.progress=Creating launcher script... desktop.entry.title=Create Desktop Entry +desktop.entry.system.wide=For all users (requires superuser privileges) desktop.entry.success=You may now exit {0} and start it from the system menu.
\ If a new menu entry is not shown, please restart your login session. desktop.entry.xdg.missing=Unfortunately, xdg-utils seem to be unavailable on your system. desktop.entry.icon.missing=Unable to locate suitable application icon in ''{0}''. desktop.entry.script.missing=Unable to locate suitable startup script in ''{0}''. desktop.entry.sudo.prompt=Please enter your password to create a desktop entry +desktop.entry.progress=Creating desktop entry... watcher.slow.sync=External file changes sync may be slow watcher.exe.not.found=Native file watcher executable not found diff --git a/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java b/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java index 8ab1185d9115..296b9dffb51d 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/CreateDesktopEntryAction.java @@ -1,4 +1,4 @@ -// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.actions; import com.intellij.execution.ExecutionException; @@ -64,7 +64,7 @@ public class CreateDesktopEntryAction extends DumbAwareAction { } boolean globalEntry = dialog.myGlobalEntryCheckBox.isSelected(); - new Task.Backgroundable(project, ApplicationBundle.message("desktop.entry.title")) { + new Task.Backgroundable(project, ApplicationBundle.message("desktop.entry.progress")) { @Override public void run(@NotNull ProgressIndicator indicator) { try { diff --git a/platform/platform-impl/src/com/intellij/ide/customize/CustomizeDesktopEntryStep.java b/platform/platform-impl/src/com/intellij/ide/customize/CustomizeDesktopEntryStep.java index dcd715293bcb..5a14d381795e 100644 --- a/platform/platform-impl/src/com/intellij/ide/customize/CustomizeDesktopEntryStep.java +++ b/platform/platform-impl/src/com/intellij/ide/customize/CustomizeDesktopEntryStep.java @@ -1,10 +1,11 @@ -// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.customize; import com.intellij.ide.IdeBundle; import com.intellij.ide.actions.CreateDesktopEntryAction; import com.intellij.ide.plugins.PluginManagerCore; import com.intellij.idea.ActionsBundle; +import com.intellij.openapi.application.ApplicationBundle; import com.intellij.openapi.ui.Messages; import com.intellij.openapi.util.EmptyRunnable; import com.intellij.openapi.util.IconLoader; @@ -24,7 +25,7 @@ public class CustomizeDesktopEntryStep extends AbstractCustomizeWizardStep { } private final JCheckBox myCreateEntryCheckBox = new JCheckBox(ActionsBundle.message("action.CreateDesktopEntry.description")); - private final JCheckBox myGlobalEntryCheckBox = new JCheckBox("For all users (requires superuser privileges)"); + private final JCheckBox myGlobalEntryCheckBox = new JCheckBox(ApplicationBundle.message("desktop.entry.system.wide")); public CustomizeDesktopEntryStep(String iconPath) { setLayout(new BorderLayout());