Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
babel.messages.catalog Namespace Reference

Classes

class  Catalog
 
class  Message
 
class  TranslationError
 

Functions

 get_close_matches (word, possibilities, n=3, cutoff=0.6)
 
bool _has_python_brace_format (str string)
 
datetime.datetime _parse_datetime_header (str value)
 
dict[str, str] parse_separated_header (str value)
 
str _force_text (str|bytes s, str encoding='utf-8', str errors='strict')
 

Variables

TypeAlias _MessageID = str | tuple[str, ...] | list[str]
 
 PYTHON_FORMAT = re.compile(, re.VERBOSE)
 
str DEFAULT_HEADER
 

Detailed Description

    babel.messages.catalog
    ~~~~~~~~~~~~~~~~~~~~~~

    Data structures for message catalogs.

    :copyright: (c) 2013-2025 by the Babel Team.
    :license: BSD, see LICENSE for more details.

Function Documentation

◆ get_close_matches()

babel.messages.catalog.get_close_matches (   word,
  possibilities,
  n = 3,
  cutoff = 0.6 
)
A modified version of ``difflib.get_close_matches``.

It just passes ``autojunk=False`` to the ``SequenceMatcher``, to work
around https://github.com/python/cpython/issues/90825.

Variable Documentation

◆ DEFAULT_HEADER

str babel.messages.catalog.DEFAULT_HEADER
Initial value:
1= """\
2# Translations template for PROJECT.
3# Copyright (C) YEAR ORGANIZATION
4# This file is distributed under the same license as the PROJECT project.
5# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
6#"""