Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chinese profile #281

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions src/main/java/com/tagtraum/perf/gcviewer/view/AboutDialog.java
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
package com.tagtraum.perf.gcviewer.view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.SoftBevelBorder;
import javax.swing.plaf.basic.BasicHTML;
import javax.swing.text.View;

import com.tagtraum.perf.gcviewer.util.BuildInfoReader;
import com.tagtraum.perf.gcviewer.util.LocalisationHelper;
import com.tagtraum.perf.gcviewer.view.util.ImageHelper;
import com.tagtraum.perf.gcviewer.view.util.UrlDisplayHelper;

import javax.swing.*;
import javax.swing.border.SoftBevelBorder;
import javax.swing.plaf.basic.BasicHTML;
import javax.swing.text.View;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
* About dialog showing version and contributors information.
*
Expand Down Expand Up @@ -134,7 +123,7 @@ public AboutDialog(Frame f) {
Panel buttonPanel = new Panel();
buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
if (UrlDisplayHelper.displayUrlIsSupported()) {
JButton homePageButton = new JButton("Homepage");
JButton homePageButton = new JButton(LocalisationHelper.getString("button_homepage"));
homePageButton.setActionCommand(ACTION_HOMEPAGE);
homePageButton.addActionListener(this);
buttonPanel.add(homePageButton);
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/localStrings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ button_cancel = Cancel

button_ok = OK

button_homepage = Homepage

data_panel_acc_fullgcpauses = Accumulated full GC

data_panel_acc_gcpauses = Accumulated GC
Expand Down
Loading