Skip to content

Commit

Permalink
Ссылка на бусти
Browse files Browse the repository at this point in the history
  • Loading branch information
YanSergey committed Apr 23, 2024
1 parent 8f5b500 commit d66fedb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class AboutDialog extends Dialog {
"https://github.com/YanSergey/OneS_ClusterAdmin"; //$NON-NLS-1$
private static final String TELEGRAM_LINK = "https://t.me/YanSergey"; //$NON-NLS-1$
private static final String EMAIL_LINK = "mailto:yanyginsa@gmail.com"; //$NON-NLS-1$
private static final String BOOSTY_LINK = "https://boosty.to/YanSergeyCoder"; // $NON-NLS-1$

Config config = Config.currentConfig;

Expand Down Expand Up @@ -91,6 +92,10 @@ protected Control createDialogArea(Composite parent) {
linkEmail.setText(Strings.EMAIL_DESCRIPTION);
linkEmail.addSelectionListener(goToLinkListener);

Link linkBoosty = new Link(container, 0);
linkBoosty.setText(Strings.BOOSTY_DESCRIPTION);
linkBoosty.addSelectionListener(goToLinkListener);

return container;
}

Expand Down Expand Up @@ -166,6 +171,8 @@ private static class Strings {
String.format(getString("Telegram_Description"), TELEGRAM_LINK);
static final String EMAIL_DESCRIPTION =
String.format(getString("Email_Description"), EMAIL_LINK);
static final String BOOSTY_DESCRIPTION =
String.format(getString("Boosty_Description"), BOOSTY_LINK);

static String getString(String key) {
return Messages.getString("AboutDialog." + key); //$NON-NLS-1$
Expand All @@ -174,6 +181,6 @@ static String getString(String key) {

@Override
protected Point getInitialSize() {
return new Point(500, 380);
return new Point(500, 418);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#Sun Apr 17 15:13:55 MSK 2022

AboutDialog.Autor = Autor:\r\nYanygin Sergey (Tula)
AboutDialog.Boosty_Description = Support the project on Boosty:\r\n<a>%s</a>
AboutDialog.CurrentVersion = version %s
AboutDialog.CurrentVersionIsLatest = (the latest version is installed)
AboutDialog.CurrentVersionIsOld = (latest version is %s, <a>download</a>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#Thu Sep 09 18:06:08 MSK 2021

AboutDialog.Autor = \u0410\u0432\u0442\u043E\u0440:\r\n\u042F\u043D\u044B\u0433\u0438\u043D \u0421\u0435\u0440\u0433\u0435\u0439 (\u0433. \u0422\u0443\u043B\u0430)
AboutDialog.Boosty_Description = \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044C \u043F\u0440\u043E\u0435\u043A\u0442 \u043D\u0430 Boosty:\r\n<a>%s</a>
AboutDialog.CurrentVersion = \u0432\u0435\u0440\u0441\u0438\u044F %s
AboutDialog.CurrentVersionIsLatest = (\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0432\u0435\u0440\u0441\u0438\u044F)
AboutDialog.CurrentVersionIsOld = (\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u0432\u0435\u0440\u0441\u0438\u044F %s, <a>\u0441\u043A\u0430\u0447\u0430\u0442\u044C</a>)
Expand Down

0 comments on commit d66fedb

Please sign in to comment.