From 922b467cd367ee9ae920dce5795b7e9428cc41a7 Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 30 Nov 2018 14:06:42 +0800 Subject: [PATCH] =?UTF-8?q?redis=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/plugin/db/redis/core/RedisDatabaseConnection.java | 5 +++-- .../resources/com/fr/plugin/db/redis/locale/redis.properties | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fr/plugin/db/redis/core/RedisDatabaseConnection.java b/src/main/java/com/fr/plugin/db/redis/core/RedisDatabaseConnection.java index 32e4059..299c739 100755 --- a/src/main/java/com/fr/plugin/db/redis/core/RedisDatabaseConnection.java +++ b/src/main/java/com/fr/plugin/db/redis/core/RedisDatabaseConnection.java @@ -5,6 +5,7 @@ import com.fr.config.holder.factory.Holders; import com.fr.data.impl.AbstractDatabaseConnection; import com.fr.data.impl.Connection; import com.fr.general.Inter; +import com.fr.locale.InterProviderFactory; import com.fr.security.SecurityToolbox; import com.fr.stable.ArrayUtils; import com.fr.stable.StableUtils; @@ -94,9 +95,9 @@ public class RedisDatabaseConnection extends AbstractDatabaseConnection { @Override public String connectMessage(boolean status) { if (status) { - return Inter.getLocText("Datasource-Connection_successfully") + "!"; + return InterProviderFactory.getProvider().getLocText("Plugin-Redis_Connection_Successfully") + "!"; } else { - return Inter.getLocText("Datasource-Connection_failed") + "!"; + return InterProviderFactory.getProvider().getLocText("Plugin-Redis_Connection_Failed") + "!"; } } diff --git a/src/main/resources/com/fr/plugin/db/redis/locale/redis.properties b/src/main/resources/com/fr/plugin/db/redis/locale/redis.properties index 3441097..4bbe711 100755 --- a/src/main/resources/com/fr/plugin/db/redis/locale/redis.properties +++ b/src/main/resources/com/fr/plugin/db/redis/locale/redis.properties @@ -11,4 +11,6 @@ Plugin-Redis_DB_Index=DB Index Plugin-Redis_Preview=Preview Plugin-Redis_Refresh=Refresh Plugin-Redis_Formula=Formula -Plugin-Redis_Query=Query \ No newline at end of file +Plugin-Redis_Query=Query +Plugin-Redis_Connection_Successfully=Connection Successfully +Plugin-Redis_Connection_Failed=Connection Failed \ No newline at end of file