fix(color): Inactivity alarm suffix proper grammar (singular/plural) (#3064)

* Add translations for "minutes"

* Add missing PLURAL2

* fix grammar

* Next attempt

* include limits.h

* minor cleanup

* Addin some translations for some languages based on inputs

* chore: Remove BREAKSPACE, add ignore flag
And some minor cleanup / formatting

* chore: Revert `TR_USE_VARIABLE_PLURAL`
Use `TR_USE_SINGULAR_IN_PLURAL` properly... thanks @eshifri

Co-authored-by: eshifri <eshifri@hotmail.com>
This commit is contained in:
Peter Feerick
2023-01-20 12:07:08 +10:00
committed by GitHub
co-authored by eshifri
parent fd04f4a257
commit 15dca01f42
18 changed files with 228 additions and 5 deletions
+13
View File
@@ -30,6 +30,19 @@
* \0 -ends current string
*/
#define TR_MIN_PLURAL2 2
#define TR_MAX_PLURAL2 2
// For this number of minute in the last decimal place singular form is used in
// plural
#define TR_USE_SINGULAR_IN_PLURAL 1
#define TR_USE_PLURAL2_SPECIAL_CASE 0
// If the number of minutes is above this value PLURAL2 is used
#define TR_USE_PLURAL2 INT_MAX
#define TR_MINUTE_SINGULAR "minut"
#define TR_MINUTE_PLURAL1 "minutter"
#define TR_MINUTE_PLURAL2 "minutter"
#define TR_OFFON "FRA","TIL"
#define TR_MMMINV "---","INV"
#define TR_VBEEPMODE "Stille","Alarm","NoKey","Alle"