From 2949deeaca0b2747f1fb5f9b7506860cf4388f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 6 May 2024 05:00:41 +0300 Subject: [PATCH] i18n: Add context for Add Calendar buttons Due to some languages using the "nplurals=1; plural=0" plural form, and the string already in use in src/gui/calendar-management/gcal-new-calendar-page.c with g_dngettext, add context to the other "Add Calendar" strings to fix the problem. AFAIK, other locales (confirmed: be_BY, fa_IR, id_ID, kk_KZ, ko_KR, my_MM, zh_CN) are also affected by this issue. --- src/gui/calendar-management/gcal-new-calendar-page.c | 2 +- src/gui/calendar-management/gcal-new-calendar-page.ui | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/calendar-management/gcal-new-calendar-page.c b/src/gui/calendar-management/gcal-new-calendar-page.c index 13be4a96..8086f9d1 100644 --- a/src/gui/calendar-management/gcal-new-calendar-page.c +++ b/src/gui/calendar-management/gcal-new-calendar-page.c @@ -162,7 +162,7 @@ update_add_button (GcalNewCalendarPage *self) } else { - add_button_label = g_strdup (_("Add Calendar")); + add_button_label = g_strdup (C_("button", "Add Calendar")); } gtk_button_set_label (GTK_BUTTON (self->add_button), add_button_label); diff --git a/src/gui/calendar-management/gcal-new-calendar-page.ui b/src/gui/calendar-management/gcal-new-calendar-page.ui index f0e07046..e4fab338 100644 --- a/src/gui/calendar-management/gcal-new-calendar-page.ui +++ b/src/gui/calendar-management/gcal-new-calendar-page.ui @@ -190,7 +190,7 @@ center - Add Calendar + Add Calendar False