From 235cf4b3317fb5be913c8d4c1c27c21b0216e00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9F=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=D0=BF=D0=BE=D0=B2?= Date: Sat, 21 Dec 2024 14:46:49 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8E=20=D0=B4=D0=BB=D1=8F=20SnackBar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- l10n/app_en.arb | 4 ++-- l10n/app_ru.arb | 4 ++-- lib/components/locale/l10n/app_locale.dart | 4 ++-- lib/components/locale/l10n/app_locale_en.dart | 4 ++-- lib/components/locale/l10n/app_locale_ru.dart | 4 ++-- lib/presentation/home_page/home_page.dart | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/l10n/app_en.arb b/l10n/app_en.arb index a01051c..91b1da2 100644 --- a/l10n/app_en.arb +++ b/l10n/app_en.arb @@ -2,8 +2,8 @@ "@@locale": "en", "search": "Search", - "liked": "liked!", - "disliked": "disliked :(", + "liked": "You liked:", + "disliked": "You disliked:", "arbEnding": "Чтобы не забыть про отсутствие запятой :)" } \ No newline at end of file diff --git a/l10n/app_ru.arb b/l10n/app_ru.arb index 7b30d41..37cd287 100644 --- a/l10n/app_ru.arb +++ b/l10n/app_ru.arb @@ -2,8 +2,8 @@ "@@locale": "ru", "search": "Поиск", - "liked": "понравился!", - "disliked": "разонравился :(", + "liked": "Вы поставили лайк:", + "disliked": "Вы убрали лайк:", "arbEnding": "Чтобы не забыть про отсутствие запятой :)" } \ No newline at end of file diff --git a/lib/components/locale/l10n/app_locale.dart b/lib/components/locale/l10n/app_locale.dart index 0922eb1..dd8048a 100644 --- a/lib/components/locale/l10n/app_locale.dart +++ b/lib/components/locale/l10n/app_locale.dart @@ -104,13 +104,13 @@ abstract class AppLocale { /// No description provided for @liked. /// /// In ru, this message translates to: - /// **'понравился!'** + /// **'Вы поставили лайк:'** String get liked; /// No description provided for @disliked. /// /// In ru, this message translates to: - /// **'разонравился :('** + /// **'Вы убрали лайк:'** String get disliked; /// No description provided for @arbEnding. diff --git a/lib/components/locale/l10n/app_locale_en.dart b/lib/components/locale/l10n/app_locale_en.dart index 599548c..e859367 100644 --- a/lib/components/locale/l10n/app_locale_en.dart +++ b/lib/components/locale/l10n/app_locale_en.dart @@ -10,10 +10,10 @@ class AppLocaleEn extends AppLocale { String get search => 'Search'; @override - String get liked => 'liked!'; + String get liked => 'You liked:'; @override - String get disliked => 'disliked :('; + String get disliked => 'You disliked:'; @override String get arbEnding => 'Чтобы не забыть про отсутствие запятой :)'; diff --git a/lib/components/locale/l10n/app_locale_ru.dart b/lib/components/locale/l10n/app_locale_ru.dart index b8d5444..abe3438 100644 --- a/lib/components/locale/l10n/app_locale_ru.dart +++ b/lib/components/locale/l10n/app_locale_ru.dart @@ -10,10 +10,10 @@ class AppLocaleRu extends AppLocale { String get search => 'Поиск'; @override - String get liked => 'понравился!'; + String get liked => 'Вы поставили лайк:'; @override - String get disliked => 'разонравился :('; + String get disliked => 'Вы убрали лайк:'; @override String get arbEnding => 'Чтобы не забыть про отсутствие запятой :)'; diff --git a/lib/presentation/home_page/home_page.dart b/lib/presentation/home_page/home_page.dart index 631984f..4c403c5 100644 --- a/lib/presentation/home_page/home_page.dart +++ b/lib/presentation/home_page/home_page.dart @@ -202,7 +202,7 @@ class _BodyState extends State<_Body> { WidgetsBinding.instance.addPostFrameCallback((_) { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text( - '${isLiked ? 'Вы поставили лайк: ' : 'Вы убрали лайк: '} $title', + '${isLiked ? context.locale.liked : context.locale.disliked } $title', style: const TextStyle( color: Colors.black45, fontSize: 20, fontWeight: FontWeight.bold), ),