From fec824d00a7f83b49aeba9a949cddd3fb5f00074 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Tue, 29 Aug 2017 15:46:03 +0300 Subject: [PATCH] donation link in home screen --- src/dlangide/ui/homescreen.d | 3 +++ views/res/i18n/en.ini | 2 ++ views/res/i18n/ru.ini | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/dlangide/ui/homescreen.d b/src/dlangide/ui/homescreen.d index 3a542a2..4013ac3 100644 --- a/src/dlangide/ui/homescreen.d +++ b/src/dlangide/ui/homescreen.d @@ -69,6 +69,9 @@ class HomeScreen : ScrollWidget { _column2.addChild(new UrlImageTextButton(null, UIString.fromId("DLANG_TOUR"c).value, "https://tour.dlang.org/")); _column2.addChild(new UrlImageTextButton(null, UIString.fromId("DLANG_VIBED"c).value, "http://vibed.org/")); _column2.addChild(new UrlImageTextButton(null, UIString.fromId("DLANG_FORUM"c).value, "http://forum.dlang.org/")); + _column1.addChild(new VSpacer()); + _column2.addChild((new TextWidget(null, UIString.fromId("DLANG_IDE_DONATE"c))).fontSize(20).textColor(linkColor)); + _column2.addChild(new UrlImageTextButton(null, UIString.fromId("DLANG_IDE_DONATE_PAYPAL"c).value, "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H2ADZV8S6TDHQ")); _column2.addChild(new VSpacer()); contentWidget = _content; diff --git a/views/res/i18n/en.ini b/views/res/i18n/en.ini index a939423..01867cc 100644 --- a/views/res/i18n/en.ini +++ b/views/res/i18n/en.ini @@ -13,6 +13,8 @@ DLANG_IDE=DLangIDE on GitHub DLANG_TOUR=DLang Tour DLANG_VIBED=Vibe-D DLANG_FORUM=Dlang Forum +DLANG_IDE_DONATE=Donate DlangIDE +DLANG_IDE_DONATE_PAYPAL=PayPal EXIT=Exit ALL_FILES=All files diff --git a/views/res/i18n/ru.ini b/views/res/i18n/ru.ini index e375437..4b499bf 100644 --- a/views/res/i18n/ru.ini +++ b/views/res/i18n/ru.ini @@ -13,6 +13,8 @@ DLANG_IDE=DLangIDE на GitHub DLANG_TOUR=Интерактивный тур D DLANG_VIBED=Vibe-D DLANG_FORUM=Форум D +DLANG_IDE_DONATE=Поддержать DlangIDE +DLANG_IDE_DONATE_PAYPAL=PayPal EXIT=Выход ALL_FILES=Все файлы