Skip to content
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
31 changes: 13 additions & 18 deletions HMCL/src/main/java/org/jackhuang/hmcl/ui/Controllers.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.jackhuang.hmcl.ui;

import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXDialogLayout;
import com.jfoenix.validation.base.ValidatorBase;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
Expand All @@ -33,7 +32,6 @@
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.ButtonBase;
import javafx.scene.control.Label;
import javafx.scene.layout.Region;
import javafx.scene.paint.Color;
import javafx.stage.Screen;
Expand Down Expand Up @@ -443,22 +441,19 @@ public static void initialize(Stage stage) {
.build());
}

if (globalConfig().getAgreementVersion() < 1) {
JFXDialogLayout agreementPane = new JFXDialogLayout();
agreementPane.setHeading(new Label(i18n("launcher.agreement")));
agreementPane.setBody(new Label(i18n("launcher.agreement.hint")));
JFXHyperlink agreementLink = new JFXHyperlink(i18n("launcher.agreement"));
agreementLink.setExternalLink(Metadata.EULA_URL);
JFXButton yesButton = new JFXButton(i18n("launcher.agreement.accept"));
yesButton.getStyleClass().add("dialog-accept");
yesButton.setOnAction(e -> {
globalConfig().setAgreementVersion(1);
agreementPane.fireEvent(new DialogCloseEvent());
});
JFXButton noButton = new JFXButton(i18n("launcher.agreement.decline"));
noButton.getStyleClass().add("dialog-cancel");
noButton.setOnAction(e -> javafx.application.Platform.exit());
agreementPane.setActions(agreementLink, yesButton, noButton);
if (globalConfig().getAgreementVersion() < 2 ) {
MessageDialogPane agreementPane = new MessageDialogPane.Builder(
i18n("launcher.agreement.hint"),
i18n("launcher.agreement"),
MessageDialogPane.MessageType.INFO
)
.addHyperLink(i18n("launcher.agreement"), Metadata.EULA_URL)
.addAction(i18n("launcher.agreement.accept"), () -> {
globalConfig().setAgreementVersion(2);
})
.addCancel(i18n("launcher.agreement.decline"), Platform::exit)
.build();

Controllers.dialog(agreementPane);
}

Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N.properties
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ launcher=Launcher
launcher.agreement=ToS and EULA
launcher.agreement.accept=Accept
launcher.agreement.decline=Decline
launcher.agreement.hint=You must agree to the EULA to use this software.
launcher.agreement.hint=You must agree to the EULA to use this software.\nHMCL is free and open-source software and has never authorized any third party to sell it.\nIf you paid to obtain this software, we recommend requesting a refund from the relevant platform and reporting the seller to avoid being scammed.
Copy link
Copy Markdown
Contributor

@3gf8jv4dv 3gf8jv4dv May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
launcher.agreement.hint=You must agree to the EULA to use this software.\nHMCL is free and open-source software and has never authorized any third party to sell it.\nIf you paid to obtain this software, we recommend requesting a refund from the relevant platform and reporting the seller to avoid being scammed.
launcher.agreement.hint=You must agree to the EULA to use this software.\n\nHMCL is free, open-source project and is not for sale. If you paid to download HMCL, you should request a refund from the platform where you bought it and report the seller to help others avoid being scammed.

launcher.april_fools.switch_lzh=HMCL Launcher now supports Classical Chinese, do you want to switch to Classical Chinese mode?\nYou can switch back to English in "置設 → 貫用 → 文".
launcher.april_fools.switch_lzh.confirm=Confirm switching to Classical Chinese mode?\nClick "OK" to exit HMCL and restart it in Classical Chinese mode; click "Cancel" to keep the current language and enter HMCL homepage.
launcher.background=Background Image
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_ar.properties
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ launcher=المشغّل
launcher.agreement=الشروط واتفاقية الترخيص
launcher.agreement.accept=قبول
launcher.agreement.decline=رفض
launcher.agreement.hint=يجب الموافقة على اتفاقية الترخيص لاستخدام هذا البرنامج.
launcher.agreement.hint=يجب الموافقة على اتفاقية الترخيص لاستخدام هذا البرنامج.\nHMCL برنامج مجاني مفتوح المصدر، لم يُصرح لأي طرف ثالث ببيعه.\nإذا دفعت مقابل الحصول على هذا البرنامج، يُنصح بطلب استرداد الأموال والإبلاغ عن المنصة لتجنب الاحتيال.
launcher.background=صورة الخلفية
launcher.background.choose=اختر صورة الخلفية
launcher.background.classic=كلاسيكي
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_es.properties
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ launcher=Launcher
launcher.agreement=Términos de servicio y EULA
launcher.agreement.accept=Aceptar
launcher.agreement.decline=Rechazar
launcher.agreement.hint=Debe aceptar el EULA para utilizar este software.
launcher.agreement.hint=Debe aceptar el EULA para utilizar este software.\nHMCL es software libre y gratuito, nunca se ha autorizado a terceros su venta.\nSi pagó por obtener este software, se recomienda solicitar el reembolso e informar a la plataforma para evitar fraudes.
launcher.background=Imagen de fondo
launcher.background.choose=Elige una imagen de fondo
launcher.background.classic=Clásico
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ launcher=ランチャー
launcher.agreement=EULA
launcher.agreement.accept=同意します
launcher.agreement.decline=同意しません
launcher.agreement.hint=このソフトウェアを使用するには、EULAに同意する必要があります。
launcher.agreement.hint=このソフトウェアを使用するには、EULAに同意する必要があります。\nHMCL は無料のオープンソースソフトウェアであり、第三者への販売を許可したことはありません。\n本ソフトウェアの入手に費用を支払った場合は、関連プラットフォームへ返金申請と通報を行い、詐欺にご注意ください。
launcher.background=背景画像
launcher.background.classic=クラシック
launcher.background.choose=背景画像ファイルを選択してください
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ launcher=Лаунчер
launcher.agreement=Пользовательское соглашение
launcher.agreement.accept=Принять
launcher.agreement.decline=Отклонить
launcher.agreement.hint=Нужно принять пользовательское соглашение, чтобы использовать это программное обеспечение.
launcher.agreement.hint=Нужно принять пользовательское соглашение, чтобы использовать это программное обеспечение.\nHMCL — бесплатное ПО с открытым исходным кодом, никогда не разрешалось третьим лицам на продажу.\nЕсли вы заплатили за получение этого ПО, рекомендуем обратиться за возвратом средств и пожаловаться на платформу, чтобы избежать мошенничества.
launcher.background=Фоновое изображение
launcher.background.choose=Выберите фоновое изображение
launcher.background.classic=Классическое
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_uk.properties
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ launcher=Лаунчер
launcher.agreement=ToS та EULA
launcher.agreement.accept=Прийняти
launcher.agreement.decline=Відхилити
launcher.agreement.hint=Ви повинні погодитися з EULA, щоб використовувати це програмне забезпечення.
launcher.agreement.hint=Ви повинні погодитися з EULA, щоб використовувати це програмне забезпечення.\nHMCL — безкоштовне програмне забезпечення з відкритим кодом, ніколи не дозволялося третім особам на продаж.\nЯкщо ви заплатили за отримання цього ПЗ, радимо подати заявку на повернення коштів та поскаржитися на платформу, щоб уникнути шахрайства.
launcher.background=Фонове зображення
launcher.background.choose=Вибрати фонове зображення
launcher.background.classic=Класичний
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_zh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ launcher=啟動器
launcher.agreement=使用者協議與免責宣告
launcher.agreement.accept=同意
launcher.agreement.decline=拒絕
launcher.agreement.hint=同意本軟體的使用者協議與免責宣告以使用本軟體。
launcher.agreement.hint=同意本軟體的使用者協議與免責宣告以使用本軟體。\nHMCL 是免費開源軟體,從未授權任何第三方進行銷售。\n如您為取得本軟體支付了費用,建議向相關平台申請退款並檢舉,以防受騙。
Copy link
Copy Markdown
Contributor

@3gf8jv4dv 3gf8jv4dv May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
launcher.agreement.hint=同意本軟體的使用者協議與免責宣告以使用本軟體。\nHMCL 是免費開源軟體,從未授權任何第三方進行銷售。\n如您為取得本軟體支付了費用,建議向相關平台申請退款並檢舉,以防受騙
launcher.agreement.hint=同意本軟體的使用者協議與免責宣告以使用本軟體。\n\nHMCL 為自由開源專案,禁止任何販售行為。若您是透過付費取得 HMCL,建議立即向購買平台要求退款並檢舉賣家,以維護您的權益並避免更多人受騙

launcher.april_fools.switch_lzh=HMCL 啟動器現已支援文言文,我們誠邀你參與體驗。是否要將介面語言切換至中文 (文言)?\n在切換語言後,你可以在「置設 → 貫用 → 文」中將語言切換回中文 (繁體)。
launcher.april_fools.switch_lzh.confirm=確認切換語言?\n點擊「確定」後 HMCL 將自動重新啟動並將介面語言切換至中文 (文言);點擊「取消」將繼續使用中文 (繁體) 進入 HMCL 主頁。
launcher.background=背景圖片
Expand Down
2 changes: 1 addition & 1 deletion HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ launcher=启动器
launcher.agreement=用户协议与免责声明
launcher.agreement.accept=同意
launcher.agreement.decline=拒绝
launcher.agreement.hint=同意本软件的用户协议与免责声明以使用本软件。
launcher.agreement.hint=同意本软件的用户协议与免责声明以使用本软件。\nHMCL 是免费开源软件,从未授权任何第三方进行销售。\n如您为获取本软件支付了费用,建议向相关平台申请退款并举报,谨防受骗。
Copy link
Copy Markdown
Contributor

@3gf8jv4dv 3gf8jv4dv May 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
launcher.agreement.hint=同意本软件的用户协议与免责声明以使用本软件。\nHMCL 是免费开源软件,从未授权任何第三方进行销售。\n如您为获取本软件支付了费用,建议向相关平台申请退款并举报,谨防受骗。
launcher.agreement.hint=同意本软件的用户协议与免责声明以使用本软件。\n\nHMCL 是免费开源软件,从未授权任何第三方进行销售。如您为获取本软件支付了费用,建议向相关平台申请退款并举报,谨防受骗。

launcher.april_fools.switch_lzh=HMCL 启动器现已支持文言文,我们诚邀你参与体验。是否要将界面语言切换至中文 (文言)?\n在切换语言后,你可以在“置設 → 貫用 → 文”中将语言切换回中文 (简体)。
launcher.april_fools.switch_lzh.confirm=确认切换语言?\n点击“确定”后 HMCL 将自动重启并将界面语言切换至中文 (文言);点击“取消”将继续使用中文 (简体) 进入 HMCL 主页。
launcher.background=背景图片
Expand Down