Browse Source

提错了,回退一下

persist/11.0-arabic
obo 4 months ago
parent
commit
e8529c0771
  1. 23
      designer-base/src/main/java/com/fr/base/i18n/ArabicI18nImpl.java
  2. 7
      designer-realize/src/main/java/com/fr/start/MainDesigner.java

23
designer-base/src/main/java/com/fr/base/i18n/ArabicI18nImpl.java

@ -0,0 +1,23 @@
package com.fr.base.i18n;
import com.fr.stable.fun.I18nProvider;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
/**
* description
*
* @author obo
* @since 11.0
* Created on 2024/08/06
*/
public class ArabicI18nImpl implements I18nProvider {
@Override
public Map<Locale, String> obtainAll() {
Map<Locale, String> map = new HashMap<>();
map.put(new Locale("ar", "SA"), "Fine-Core_Arabic_Language");
return map;
}
}

7
designer-realize/src/main/java/com/fr/start/MainDesigner.java

@ -2,6 +2,7 @@ package com.fr.start;
import com.fr.base.function.UITerminator; import com.fr.base.function.UITerminator;
import com.fr.base.i18n.ArabicI18nImpl;
import com.fr.base.i18n.BidiUtils; import com.fr.base.i18n.BidiUtils;
import com.fr.base.vcs.DesignerMode; import com.fr.base.vcs.DesignerMode;
import com.fr.design.DesignerEnvManager; import com.fr.design.DesignerEnvManager;
@ -28,7 +29,6 @@ import com.fr.design.gui.ibutton.UISaveForbiddenButton;
import com.fr.design.gui.imenu.UIMenuItem; import com.fr.design.gui.imenu.UIMenuItem;
import com.fr.design.gui.imenu.UIPopupMenu; import com.fr.design.gui.imenu.UIPopupMenu;
import com.fr.design.gui.itoolbar.UILargeToolbar; import com.fr.design.gui.itoolbar.UILargeToolbar;
import com.fr.design.i18n.DesignI18nProviderImpl;
import com.fr.design.mainframe.ActiveKeyGenerator; import com.fr.design.mainframe.ActiveKeyGenerator;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.InformationCollector; import com.fr.design.mainframe.InformationCollector;
@ -129,10 +129,7 @@ public class MainDesigner extends BaseDesigner {
DesignerStartupContext.getRecorder().start(); DesignerStartupContext.getRecorder().start();
// 设置一下默认的logger,启动后再Reset // 设置一下默认的logger,启动后再Reset
FineLoggerFactory.setLogger(SystemOutLoggerProvider.getInstance()); FineLoggerFactory.setLogger(SystemOutLoggerProvider.getInstance());
ServiceLoader<I18nProvider> i18nProviders = ServiceLoader.load(I18nProvider.class); StableFactoryBase.registerMarkedClass(I18nProvider.MARK_STRING, ArabicI18nImpl.class);
for (I18nProvider i18nProvider : i18nProviders) {
StableFactoryBase.registerMarkedClass(I18nProvider.MARK_STRING, i18nProvider.getClass());
}
showSplash(); showSplash();

Loading…
Cancel
Save