File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -329,14 +329,10 @@ def process_long_string(string: str) -> str:
329329
330330
331331def 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
You can’t perform that action at this time.
0 commit comments