fix(i18n): a failed RSS poll over one channel reads as one, and keeps its stops
rss_all_failed is a plural pair counted on the raw total (the values are formatted strings, which pick no plural form); both sentences end with a stop. The Hungarian 'show N more' uses the house's megjelenítése.
This commit is contained in:
@@ -48,7 +48,10 @@ export function jobFailureText(t: TFunction, result: unknown, lang: string): str
|
||||
for (const [k, v] of Object.entries(params))
|
||||
values[k] = typeof v === "number" ? formatNumber(v, lang) : String(v);
|
||||
if (typeof params.cause === "string") values.cause = rssCause(t, params.cause);
|
||||
return t(`scheduler.failure.${failure}`, { ...values, defaultValue: "" }) || null;
|
||||
// A failure counted over `total` reads as a plural pair: i18next picks the form from a NUMERIC
|
||||
// count, and the formatted values above are strings ("1 399" would pick none).
|
||||
const count = typeof params.total === "number" ? params.total : undefined;
|
||||
return t(`scheduler.failure.${failure}`, { ...values, count, defaultValue: "" }) || null;
|
||||
}
|
||||
|
||||
/** Why a feed did not answer, from the poll's reason code (`http_404`, `transport`, …). */
|
||||
|
||||
Reference in New Issue
Block a user