Browse Source

redis国际化

paid
richie 6 years ago
parent
commit
922b467cd3
  1. 5
      src/main/java/com/fr/plugin/db/redis/core/RedisDatabaseConnection.java
  2. 2
      src/main/resources/com/fr/plugin/db/redis/locale/redis.properties

5
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") + "!";
}
}

2
src/main/resources/com/fr/plugin/db/redis/locale/redis.properties

@ -12,3 +12,5 @@ Plugin-Redis_Preview=Preview
Plugin-Redis_Refresh=Refresh
Plugin-Redis_Formula=Formula
Plugin-Redis_Query=Query
Plugin-Redis_Connection_Successfully=Connection Successfully
Plugin-Redis_Connection_Failed=Connection Failed
Loading…
Cancel
Save