Skip to content

Commit

Permalink
Spelling and grammar fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and akx committed Jun 11, 2023
1 parent 8b152db commit 7ef7300
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion babel/lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def format_list(lst: Sequence[str],
A typical 'and' list for arbitrary placeholders.
eg. "January, February, and March"
* standard-short:
A short version of a 'and' list, suitable for use with short or abbreviated placeholder values.
A short version of an 'and' list, suitable for use with short or abbreviated placeholder values.
eg. "Jan., Feb., and Mar."
* or:
A typical 'or' list for arbitrary placeholders.
Expand Down
2 changes: 1 addition & 1 deletion babel/plural.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
def extract_operands(source: float | decimal.Decimal) -> tuple[decimal.Decimal | int, int, int, int, int, int, Literal[0], Literal[0]]:
"""Extract operands from a decimal, a float or an int, according to `CLDR rules`_.
The result is a 8-tuple (n, i, v, w, f, t, c, e), where those symbols are as follows:
The result is an 8-tuple (n, i, v, w, f, t, c, e), where those symbols are as follows:
====== ===============================================================
Symbol Value
Expand Down
2 changes: 1 addition & 1 deletion babel/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_unit_name(

def _find_unit_pattern(unit_id: str, locale: Locale | str | None = LC_NUMERIC) -> str | None:
"""
Expand an unit into a qualified form.
Expand a unit into a qualified form.
Known units can be found in the CLDR Unit Validity XML file:
https://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml
Expand Down
2 changes: 1 addition & 1 deletion contrib/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

/**
* A simple module that provides a gettext like translation interface.
* The catalog passed to load() must be a object conforming to this
* The catalog passed to load() must be an object conforming to this
* interface::
*
* {
Expand Down
2 changes: 1 addition & 1 deletion tests/messages/test_plurals.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_get_plural_selection(locale, num_plurals, plural_expr):
assert plurals.get_plural(locale) == (num_plurals, plural_expr)


def test_get_plural_accpets_strings():
def test_get_plural_accepts_strings():
assert plurals.get_plural(locale='ga') == (5, '(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 : n>=7 && n<=10 ? 3 : 4)')


Expand Down

0 comments on commit 7ef7300

Please sign in to comment.