????
Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/aiohttp_babel/__pycache__/ |
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/aiohttp_babel/__pycache__/locale.cpython-311.pyc |
� @�Qg � �� � d Z ddlZddlZddlmZmZ ddlmZ ddl m Z dai a e t g� � adad� Zd � Zd � Z G d� de� � Zed k rddlZ ej � � dS dS )aO Internationalisation using Babel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The locale support of tornado as such is pretty basic and does not offer support for merging translation catalogs and several other features most multi language applications require. This module tries to retain the same API as that of tornado.locale while implement the required features with the support of babel. .. note:: CSV Translations are not supported :copyright: (c) 2012 by Openlabs Technologies & Consulting (P) Limited :copyright: (c) 2009 by Facebook (Tornado Project) :license: BSD, see LICENSE for more details. :changes: 12/11/23 - E. PASCUAL (Centre Scientifique et Technique du Batiment): fixed implementation of translations merge process in load_gettext_translations � N)�Translations�NullTranslations)�Locale)�dates�en_USFc � � t j | � S )a� Returns the closest match for the given locale codes. We iterate over all given locale codes in order. If we have a tight or a loose match for the code (e.g., "en" for "en_US"), we return the locale. Otherwise we move to the next code in the list. By default we return en_US if no translations are found for any of the specified locales. You can change the default locale with set_default_locale() below. )r �get_closest)�locale_codess �t/builddir/build/BUILD/imunify360-venv-2.5.0/opt/imunify360/venv/lib/python3.11/site-packages/aiohttp_babel/locale.py�getr &