Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling and grammar fixes #1008

Merged
merged 1 commit into from Jun 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion babel/lists.py
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
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
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
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
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