[gnome-clocks] Fixes #118 - Set distinct contexts for alarm repeat toggle letters
- From: Zander Brown <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Fixes #118 - Set distinct contexts for alarm repeat toggle letters
- Date: Sun, 21 Feb 2021 14:13:23 +0000 (UTC)
commit ff42c028fdaffb0143b5ea00355d16a2298ccd94
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Jul 15 09:14:43 2020 +0200
Fixes #118 - Set distinct contexts for alarm repeat toggle letters
src/utils.vala | 26 ++++++++++++++++++--------
1 file changed, 18 insertions(+), 8 deletions(-)
---
diff --git a/src/utils.vala b/src/utils.vala
index eebad84..d5594e7 100644
--- a/src/utils.vala
+++ b/src/utils.vala
@@ -186,19 +186,29 @@ public class Weekdays {
private const string[] SYMBOLS = {
// Translators: This is used in the repeat toggle for Monday
- NC_("Alarm|Repeat-On", "M"),
+ NC_("Alarm|Repeat-On|Monday", "M"),
// Translators: This is used in the repeat toggle for Tuesday
- NC_("Alarm|Repeat-On", "T"),
+ NC_("Alarm|Repeat-On|Tuesday", "T"),
// Translators: This is used in the repeat toggle for Wednesday
- NC_("Alarm|Repeat-On", "W"),
+ NC_("Alarm|Repeat-On|Wednesday", "W"),
// Translators: This is used in the repeat toggle for Thursday
- NC_("Alarm|Repeat-On", "T"),
+ NC_("Alarm|Repeat-On|Thursday", "T"),
// Translators: This is used in the repeat toggle for Friday
- NC_("Alarm|Repeat-On", "F"),
+ NC_("Alarm|Repeat-On|Friday", "F"),
// Translators: This is used in the repeat toggle for Saturday
- NC_("Alarm|Repeat-On", "S"),
+ NC_("Alarm|Repeat-On|Saturday", "S"),
// Translators: This is used in the repeat toggle for Sunday
- NC_("Alarm|Repeat-On", "S")
+ NC_("Alarm|Repeat-On|Sunday", "S")
+ };
+
+ private const string[] EN_DAYS = {
+ "Monday",
+ "Tuesday",
+ "Wednesday",
+ "Thursday",
+ "Friday",
+ "Saturday",
+ "Sunday"
};
private const string[] PLURALS = {
@@ -212,7 +222,7 @@ public class Weekdays {
};
public string symbol () {
- return dpgettext2 (null, "Alarm|Repeat-On", SYMBOLS[this]);
+ return dpgettext2 (null, "Alarm|Repeat-On|" + EN_DAYS[this], SYMBOLS[this]);
}
public string plural () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]