intellecton/venv/lib/python3.12/site-packages/babel/__pycache__/languages.cpython-312.pyc

53 lines
3.8 KiB
Text
Raw Normal View History

<EFBFBD>
g<>j2 <00><01>H<00>ddlmZddlmZ d dd<03>Z dd<04>Zy) <09>)<01> annotations)<01>
get_globalc<01><><00>t|<00>j<00>}dh}|r|jd<02>|r|jd<03>td<04>j |i<00>}|j <00>D<00><05>cgc]\}}|j d<05>|vr|d|f<02><02>!}}}|j d<07><08>td <09>|D<00><00>Scc}}w)
a^
Get the official language(s) for the given territory.
The language codes, if any are known, are returned in order of descending popularity.
If the `regional` flag is set, then languages which are regionally official are also returned.
If the `de_facto` flag is set, then languages which are "de facto" official are also returned.
.. warning:: Note that the data is as up to date as the current version of the CLDR used
by Babel. If you need scientifically accurate information, use another source!
:param territory: Territory code
:type territory: str
:param regional: Whether to return regionally official languages too
:type regional: bool
:param de_facto: Whether to return de-facto official languages too
:type de_facto: bool
:return: Tuple of language codes
:rtype: tuple[str]
<20>official<61>official_regional<61>de_facto_official<61>territory_languages<65>official_status<75>population_percentT)<01>reversec3<01>&K<00>|] \}}|<02><01><00> y<00>w)N<>)<03>.0<EFBFBD>_<>langs <20>R/home/antigravity/intellecton/venv/lib/python3.12/site-packages/babel/languages.py<70> <genexpr>z)get_official_languages.<locals>.<genexpr>/s<00><00><><00>+<2B>'<27>!<21>T<EFBFBD><14>+<2B>s<00>)<08>str<74>upper<65>addr<00>get<65>items<6D>sort<72>tuple)<08> territory<72>regional<61>de_facto<74> allowed_stati<74> languages<65>language<67>info<66>pairss r<00>get_official_languagesr#s<><00><00>6<14>I<EFBFBD><0E>$<24>$<24>&<26>I<EFBFBD><1F>L<EFBFBD>M<EFBFBD><0F><15><19><19>-<2D>.<2E><0F><15><19><19>-<2D>.<2E><1A>0<>1<>5<>5<>i<EFBFBD><12>D<>I<EFBFBD>(<28>o<EFBFBD>o<EFBFBD>/<2F> <06> <1A>H<EFBFBD>d<EFBFBD> <0F>8<EFBFBD>8<EFBFBD>%<25> &<26>-<2D> 7<>
<0E>"<22> #<23>X<EFBFBD>.<2E> <06>E<EFBFBD> <06>

<EFBFBD>J<EFBFBD>J<EFBFBD>t<EFBFBD>J<EFBFBD><1C> <10>+<2B>U<EFBFBD>+<2B> +<2B>+<2B><>  s<00>1$B<c<01><><00>t|<00>j<00>}td<01>j|i<00>j <00>S)a!
Get a dictionary of language information for a territory.
The dictionary is keyed by language code; the values are dicts with more information.
The following keys are currently known for the values:
* `population_percent`: The percentage of the territory's population speaking the
language.
* `official_status`: An optional string describing the officiality status of the language.
Known values are "official", "official_regional" and "de_facto_official".
.. warning:: Note that the data is as up to date as the current version of the CLDR used
by Babel. If you need scientifically accurate information, use another source!
.. note:: Note that the format of the dict returned may change between Babel versions.
See https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html
:param territory: Territory code
:type territory: str
:return: Language information dictionary
:rtype: dict[str, dict]
r )rrrr<00>copy)rs r<00>get_territory_language_infor&2s8<00><00>6<14>I<EFBFBD><0E>$<24>$<24>&<26>I<EFBFBD> <15>+<2B> ,<2C> 0<> 0<><19>B<EFBFBD> ?<3F> D<> D<> F<>F<>N)FF)rrr<00>boolrr(<00>returnztuple[str, ...])rrr)z(dict[str, dict[str, float | str | None]])<06>
__future__r<00>
babel.corerr#r&rr'r<00><module>r,sU<00><01>"<22>!<21>
<1B><1A>),<2C><12>),<2C><12>),<2C><13>),<2C><15> ),<2C>XG<01><12>G<01>-<2D>Gr'