Skip to content

Commit ddce9d3

Browse files
committed
Fix inaccurate plural documentation
1 parent e5604fe commit ddce9d3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

notifier/digest.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,10 @@ def process_long_string(string: str) -> str:
329329

330330

331331
def pluralise(string: str, lang: str) -> str:
332-
"""Pluralises a string.
332+
"""Pluralises a string based on the language.
333333
334-
Substrings of the form `plural(N|X|Y)` with are replaced with X if N is
335-
an integer and is 1, and Y otherwise.
336-
337-
For specific languages a Substring form of 'plural(N|X|Y|LANG|S)'
338-
can be used to pass the pluraliser a language code and special information
339-
Check the polish language translation for more information!
334+
E.g. for English, substrings of the form `plural(N|X|Y)` with are replaced
335+
with X if N is 1, and Y otherwise.
340336
"""
341337
plural = re.compile(r"plural\((.*?)\|(.*?)\)")
342338

0 commit comments

Comments
 (0)