Browse Source

REPORT-7867 删除不在i18n下的国际化文件

master
plough 7 years ago
parent
commit
ad82af29f5
  1. 7
      designer-base/src/com/fr/design/gui/syntax/ui/rsyntaxtextarea/RSyntaxTextAreaEditorKit.java
  2. 10
      designer-base/src/com/fr/design/gui/syntax/ui/rtextarea/RUndoManager.java

7
designer-base/src/com/fr/design/gui/syntax/ui/rsyntaxtextarea/RSyntaxTextAreaEditorKit.java

@ -24,6 +24,7 @@ import com.fr.design.gui.syntax.ui.rtextarea.IconRowHeader;
import com.fr.design.gui.syntax.ui.rtextarea.RecordableTextAction;
import com.fr.design.gui.syntax.ui.rtextarea.RTextArea;
import com.fr.design.gui.syntax.ui.rtextarea.RTextAreaEditorKit;
import com.fr.general.Inter;
/**
@ -72,10 +73,6 @@ public class RSyntaxTextAreaEditorKit extends RTextAreaEditorKit {
public static final String rstaToggleCommentAction = "RSTA.ToggleCommentAction";
public static final String rstaToggleCurrentFoldAction = "RSTA.ToggleCurrentFoldAction";
private static final String MSG = "com.fr.design.gui.syntax.ui.rsyntaxtextarea.RSyntaxTextArea";
private static final ResourceBundle msg = ResourceBundle.getBundle(MSG);
/**
* The actions that <code>RSyntaxTextAreaEditorKit</code> adds to those of
* <code>RTextAreaEditorKit</code>.
@ -163,7 +160,7 @@ public class RSyntaxTextAreaEditorKit extends RTextAreaEditorKit {
* @return The localized text.
*/
public static String getString(String key) {
return msg.getString(key);
return Inter.getLocText(key);
}

10
designer-base/src/com/fr/design/gui/syntax/ui/rtextarea/RUndoManager.java

@ -8,6 +8,8 @@
*/
package com.fr.design.gui.syntax.ui.rtextarea;
import com.fr.general.Inter;
import java.util.ResourceBundle;
import javax.swing.Action;
import javax.swing.UIManager;
@ -40,9 +42,6 @@ public class RUndoManager extends UndoManager {
private int internalAtomicEditDepth;
private static final String MSG = "com.fr.design.gui.syntax.ui.rtextarea.RTextArea";
/**
* Constructor.
*
@ -50,9 +49,8 @@ public class RUndoManager extends UndoManager {
*/
public RUndoManager(RTextArea textArea) {
this.textArea = textArea;
ResourceBundle msg = ResourceBundle.getBundle(MSG);
cantUndoText = msg.getString("Action.CantUndo.Name");
cantRedoText = msg.getString("Action.CantRedo.Name");
cantUndoText = Inter.getLocText("Action.CantUndo.Name");
cantRedoText = Inter.getLocText("Action.CantRedo.Name");
}

Loading…
Cancel
Save