From df2d4c9ca9da101892e98fad36a96239433e08b2 Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 12 Jul 2023 11:02:37 +0000 Subject: [PATCH] Clarify portable update notice --- app/src/main/java/io/xpipe/app/prefs/UpdateCheckComp.java | 4 ++-- .../io/xpipe/app/resources/lang/translations_en.properties | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/prefs/UpdateCheckComp.java b/app/src/main/java/io/xpipe/app/prefs/UpdateCheckComp.java index ff703c28..7f056880 100644 --- a/app/src/main/java/io/xpipe/app/prefs/UpdateCheckComp.java +++ b/app/src/main/java/io/xpipe/app/prefs/UpdateCheckComp.java @@ -105,7 +105,7 @@ public class UpdateCheckComp extends SimpleComp { var name = Bindings.createStringBinding( () -> { if (updateReady.getValue()) { - return AppI18n.get("updateReady"); + return XPipeDistributionType.get() == XPipeDistributionType.PORTABLE ? AppI18n.get("updateReadyPortable") : AppI18n.get("updateReady"); } return AppI18n.get("checkForUpdates"); @@ -114,7 +114,7 @@ public class UpdateCheckComp extends SimpleComp { var description = Bindings.createStringBinding( () -> { if (updateReady.getValue()) { - return AppI18n.get("updateReadyDescription"); + return XPipeDistributionType.get() == XPipeDistributionType.PORTABLE ? AppI18n.get("updateReadyDescriptionPortable") : AppI18n.get("updateReadyDescription"); } return AppI18n.get("checkForUpdatesDescription"); diff --git a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties index 72adbde6..822417b4 100644 --- a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties +++ b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties @@ -188,7 +188,9 @@ build=Build runtimeVersion=Runtime version virtualMachine=Virtual machine updateReady=Install update +updateReadyPortable=Check out update updateReadyDescription=An update was downloaded and is ready to be installed +updateReadyDescriptionPortable=An update is available to download updateRestart=Restart to update never=Never updateAvailable=Update available: $VERSION$