Log uninplemented plural expressions (#4017)

This commit is contained in:
Anders Jenbo 2022-02-01 08:30:08 +01:00 committed by GitHub
commit d11eeaa9ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,6 +100,12 @@ void SetPluralForm(char *string)
return;
}
// bg, da, de, es, it, sv
if (strcmp(expression, "(n != 1)") == 0) {
GetLocalPluralId = [](int n) -> int { return n != 1 ? 1 : 0; };
return;
}
// fr, pt_BR
if (strcmp(expression, "(n > 1)") == 0) {
GetLocalPluralId = [](int n) -> int { return n > 1 ? 1 : 0; };
@ -154,8 +160,7 @@ void SetPluralForm(char *string)
return;
}
// bg, da, de, es, it, sv
// (n != 1)
LogError("Unknown plural expression: '{}'", expression);
}
/**