Skip to content

Commit

Permalink
Add FileTreePanel Chinese translation
Browse files Browse the repository at this point in the history
  • Loading branch information
wszf committed Feb 25, 2014
1 parent 76153f1 commit 26bc445
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
20 changes: 11 additions & 9 deletions src/AndroratServer/src/gui/panel/FileTreePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
import javax.swing.tree.TreePath;

import utils.MyFile;
import java.util.ResourceBundle;

public class FileTreePanel extends JPanel {
private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("gui.panel.messages"); //$NON-NLS-1$

private JTree tree;
private DefaultMutableTreeNode trunk;
Expand Down Expand Up @@ -87,49 +89,49 @@ public FileTreePanel(UserGUI gui) {

JPanel panel = new JPanel();
splitPane.setRightComponent(panel);
panel.setBorder(new TitledBorder(null, "Informations",
panel.setBorder(new TitledBorder(null, BUNDLE.getString("Informations"),
TitledBorder.LEADING, TitledBorder.TOP, null, null));

JButton btnTreeRequest = new JButton("Get FileTree");
JButton btnTreeRequest = new JButton(BUNDLE.getString("Get-FileTree")); //$NON-NLS-1$
btnTreeRequest.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
fireButtonRequestTree();
}
});

btnDownload = new JButton("Download File");
btnDownload = new JButton(BUNDLE.getString("Download-File")); //$NON-NLS-1$
btnDownload.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
fireButtonDownload();
}
});
btnDownload.setEnabled(false);

JLabel lblName = new JLabel("Name :");
JLabel lblName = new JLabel(BUNDLE.getString("Name;")); //$NON-NLS-1$

lblValname = new JLabel("val_name");

JLabel lblSize = new JLabel("Size :");
JLabel lblSize = new JLabel(BUNDLE.getString("Size;")); //$NON-NLS-1$

lblValsize = new JLabel("val_size");

JLabel lblHidden = new JLabel("Hidden :");
JLabel lblHidden = new JLabel(BUNDLE.getString("Hidden;")); //$NON-NLS-1$

lblValhidden = new JLabel("val_hidden");

JLabel lblAccess = new JLabel("Access :");
JLabel lblAccess = new JLabel(BUNDLE.getString("Access;")); //$NON-NLS-1$

lblValaccess = new JLabel("val_access");

JLabel lblLastModification = new JLabel("Last modification :");
JLabel lblLastModification = new JLabel(BUNDLE.getString("Last-modification;")); //$NON-NLS-1$

lblVallastmodif = new JLabel("val_last_modif");

txtDir = new JTextField();
txtDir.setText("download/");
txtDir.setColumns(10);

JLabel lblDownloadDirectory = new JLabel("Download directory :");
JLabel lblDownloadDirectory = new JLabel(BUNDLE.getString("Download-directory;")); //$NON-NLS-1$
GroupLayout gl_panel = new GroupLayout(panel);
gl_panel.setHorizontalGroup(
gl_panel.createParallelGroup(Alignment.TRAILING)
Expand Down
8 changes: 8 additions & 0 deletions src/AndroratServer/src/gui/panel/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ SMS=SMS
Refresh-list=Refresh list
Informations=Informations
General-options=General options
#Free Tree Panel
Size;=Size :
Hidden;=Hidden :
Access;=Access :
Last-modification;=Last modification :
Download-directory=Download directory :
Download-File=Download File
Get-FileTree=Get FileTree
10 changes: 9 additions & 1 deletion src/AndroratServer/src/gui/panel/messages_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ Call=\u547C\u53EB
SMS=\u77ED\u4FE1
Refresh-list=\u5237\u65B0\u5217\u8868
Informations=\u4FE1\u606F
General-options=\u5E38\u89C4\u9009\u9879
General-options=\u5E38\u89C4\u9009\u9879
#Free Tree Panel
Size;=\u5927\u5C0F :
Hidden;=\u9690\u85CF :
Access;=\u8BBF\u95EE :
Last-modification;=\u6700\u540E\u4FEE\u6539 :
Download-directory;=\u4E0B\u8F7D\u76EE\u5F55 :
Download-File=\u4E0B\u8F7D\u6587\u4EF6
Get-FileTree=\u83B7\u53D6\u6587\u4EF6\u5217\u8868

0 comments on commit 26bc445

Please sign in to comment.