From e8cf8fec3f2391f0362106af5654675a24fb963a Mon Sep 17 00:00:00 2001 From: Nikita Iarychenko Date: Fri, 7 Mar 2025 11:32:08 +0400 Subject: [PATCH] OPENIDE #97 License and Eula in OpenIDE (fix russian) (cherry picked from commit 3a5ac0e15ec59592229973b0db5741f0d1003e7b) (cherry picked from commit c3b3aa9084d98a99e26dc4631dd81d1d7494b1fe) (cherry picked from commit a3a4a61a21d8809dc29461405a9d55786889c006) (cherry picked from commit dea543c87f4170aff4ca2aca0490b65df544e35b) (cherry picked from commit 99a008f13870fb530f6f6ecf75d16286a5f78e8a) --- .../messages/AgreementsBundle_ru_RU.properties | 17 +++++++++++++++++ .../src/com/intellij/ide/gdpr/Agreements.kt | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 platform/platform-impl/resources/messages/AgreementsBundle_ru_RU.properties diff --git a/platform/platform-impl/resources/messages/AgreementsBundle_ru_RU.properties b/platform/platform-impl/resources/messages/AgreementsBundle_ru_RU.properties new file mode 100644 index 000000000000..2615412ef985 --- /dev/null +++ b/platform/platform-impl/resources/messages/AgreementsBundle_ru_RU.properties @@ -0,0 +1,17 @@ +# OpenIDE Project +# Copyright (C) 2025 “Open Development Platform” Ltd. (https://openide.ru) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License version 3 or later as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +userAgreement.dialog.userAgreement.title=Пользовательское соглашение +userAgreement.dialog.continue=Продолжить +userAgreement.dialog.exit=Выход +userAgreement.dialog.checkBox=Я подтверждаю, что прочитал(а) и принимаю условия данного Пользовательского соглашения \ No newline at end of file diff --git a/platform/platform-impl/src/com/intellij/ide/gdpr/Agreements.kt b/platform/platform-impl/src/com/intellij/ide/gdpr/Agreements.kt index 5a3765a6b47b..c0f49a15f243 100644 --- a/platform/platform-impl/src/com/intellij/ide/gdpr/Agreements.kt +++ b/platform/platform-impl/src/com/intellij/ide/gdpr/Agreements.kt @@ -1,4 +1,7 @@ // Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// +// Modified by Nikita Iarychenko at 2025 as part of the OpenIDE project (https://openide.ru). +// Any modifications are available on the same license terms as the original source code. @file:JvmName("Agreements") @file:ApiStatus.Internal package com.intellij.ide.gdpr @@ -24,7 +27,7 @@ import kotlin.system.exitProcess fun showEndUserAndDataSharingAgreements(agreement: EndUserAgreement.Document) { val isPrivacyPolicy = agreement.isPrivacyPolicy - val bundle = DynamicBundle.getResourceBundle(DynamicBundle::class.java.classLoader, "messages.AgreementsBundle", LocalizationUtil.getLocale()) + val bundle = DynamicBundle.getResourceBundle(DynamicBundle::class.java.classLoader, "messages.AgreementsBundle", Locale("ru", "RU")) showAgreementUi { htmlText = agreement.text title = if (isPrivacyPolicy) {