Skip to content

Commit

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

import utils.Contact;
import java.util.ResourceBundle;

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

private JList list;
private JLabel lblValId;
Expand Down Expand Up @@ -90,10 +92,10 @@ public void mouseClicked(MouseEvent e) {
splitPane.setRightComponent(panel_2);

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

btnCall = new JButton("Call");
btnCall = new JButton(BUNDLE.getString("Call")); //$NON-NLS-1$
btnCall.setEnabled(false);
btnCall.addActionListener(new ActionListener() {
@Override
Expand All @@ -102,7 +104,7 @@ public void actionPerformed(ActionEvent e) {
}
});

btnSms = new JButton("SMS");
btnSms = new JButton(BUNDLE.getString("SMS")); //$NON-NLS-1$
btnSms.setEnabled(false);
btnSms.addActionListener(new ActionListener() {
@Override
Expand All @@ -111,7 +113,7 @@ public void actionPerformed(ActionEvent e) {
}
});

btnMoreInformations = new JButton("More informations");
btnMoreInformations = new JButton(BUNDLE.getString("More-informations")); //$NON-NLS-1$
btnMoreInformations.setEnabled(false);
btnMoreInformations.addActionListener(new ActionListener() {
@Override
Expand All @@ -124,15 +126,15 @@ public void actionPerformed(ActionEvent e) {

lblValId = new JLabel("n/a");

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

lblValname = new JLabel("n/a");

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

lblValnumber = new JLabel("n/a");

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

txtrValaddr = new JTextArea();
txtrValaddr.setText("n/a");
Expand Down Expand Up @@ -251,10 +253,10 @@ public void actionPerformed(ActionEvent e) {
panel.setLayout(gl_panel);

JPanel panel_1 = new JPanel();
panel_1.setBorder(new TitledBorder(null, "General options",
panel_1.setBorder(new TitledBorder(null, BUNDLE.getString("General-options"),
TitledBorder.LEADING, TitledBorder.TOP, null, null));

JButton btnRefreshList = new JButton("Refresh list");
JButton btnRefreshList = new JButton(BUNDLE.getString("Refresh-list")); //$NON-NLS-1$
btnRefreshList.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Expand Down
12 changes: 11 additions & 1 deletion src/AndroratServer/src/gui/panel/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,14 @@ Not-after=Not after
Min-duration;=Min duration :
Get-call-logs=Get call logs
All-calls=All calls
Optional-filters=Optional filters
Optional-filters=Optional filters
#Contact Panel
Name;=Name :
Number;=Number :
Address;=Address :
More-informations=More informations
Call=Call
SMS=SMS
Refresh-list=Refresh list
Informations=Informations
General-options=General options
12 changes: 11 additions & 1 deletion src/AndroratServer/src/gui/panel/messages_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,14 @@ Not-after=\u5728\u6B64\u4E4B\u540E
Min-duration;=\u6700\u5C0F\u533A\u95F4 :
Get-call-logs=\u83B7\u53D6\u901A\u8BDD\u8BB0\u5F55
All-calls=\u5168\u90E8\u7C7B\u578B
Optional-filters=\u8FC7\u6EE4\u9009\u9879
Optional-filters=\u8FC7\u6EE4\u9009\u9879
#Contact Panel
Name;=\u540D\u5B57 :
Number;=\u53F7\u7801 :
Address;=\u5730\u5740 :
More-informations=\u66F4\u591A\u4FE1\u606F
Call=\u547C\u53EB
SMS=\u77ED\u4FE1
Refresh-list=\u5237\u65B0\u5217\u8868
Informations=\u4FE1\u606F
General-options=\u5E38\u89C4\u9009\u9879

0 comments on commit 76153f1

Please sign in to comment.