For more information please visit the Babel web site:
-http://babel.pocoo.org/
+https://babel.pocoo.org/
Join the chat at https://gitter.im/python-babel/babel
>>> Locale('de', 'DE').languages['ja']
u'Japanisch'
- See `ISO 639 <http://www.loc.gov/standards/iso639-2/>`_ for
+ See `ISO 639 <https://www.loc.gov/standards/iso639-2/>`_ for
more information.
"""
return self._data['languages']
>>> Locale('en', 'US').scripts['Hira']
u'Hiragana'
- See `ISO 15924 <http://www.evertype.com/standards/iso15924/>`_
+ See `ISO 15924 <https://www.unicode.org/iso15924/>`_
for more information.
"""
return self._data['scripts']
>>> Locale('es', 'CO').territories['DE']
u'Alemania'
- See `ISO 3166 <http://www.iso.org/iso/en/prods-services/iso3166ma/>`_
+ See `ISO 3166 <https://en.wikipedia.org/wiki/ISO_3166>`_
for more information.
"""
return self._data['territories']
# TODO: maybe implement pattern expansion?
# Based on the implementation in
- # http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java
+ # https://github.com/unicode-org/icu/blob/main/icu4j/main/core/src/main/java/com/ibm/icu/text/DateIntervalInfo.java
# Filter out falsy values and sort for stability; when `interval_formats` is passed in, there may be a None key.
options = sorted(option for option in options if option)
def get_currency_unit_pattern(
- currency: str,
+ currency: str, # TODO: unused?!
count: float | decimal.Decimal | None = None,
locale: Locale | str | None = None,
) -> str:
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
- * are also available at http://babel.edgewall.org/wiki/License.
+ * are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
*
* This software consists of voluntary contributions made by many
* individuals. For the exact contribution history, see the revision
- * history and logs, available at http://babel.edgewall.org/log/.
+ * history and logs, available at https://github.com/python-babel/babel/commits/master/.
*/
/**
You can download the documentation in other formats as well:
</p>
<ul>
- <li><a href="http://babel.pocoo.org/docs/babel-docs.pdf">as PDF</a>
- <li><a href="http://babel.pocoo.org/docs/babel-docs.zip">as zipped HTML</a>
+ <li><a href="https://babel.pocoo.org/docs/babel-docs.pdf">as PDF</a>
+ <li><a href="https://babel.pocoo.org/docs/babel-docs.zip">as zipped HTML</a>
</ul>
<h3>Useful Links</h3>
<ul>
- <li><a href="http://babel.pocoo.org/">Babel Website</a></li>
+ <li><a href="https://babel.pocoo.org/">Babel Website</a></li>
<li><a href="https://pypi.org/project/Babel/">Babel @ PyPI</a></li>
<li><a href="https://github.com/python-babel/babel">Babel @ github</a></li>
<li><a href="https://github.com/python-babel/babel/issues">Issue Tracker</a></li>
{%- block footer %}
<div class="footer">
© Copyright {{ copyright }}.
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
+ Created using <a href="https://sphinx.pocoo.org/">Sphinx</a>.
</div>
{% if pagename == 'index' %}
</div>
@import url("basic.css");
-@import url(http://fonts.googleapis.com/css?family=Bree+Serif);
+@import url(://fonts.googleapis.com/css?family=Bree+Serif);
/* -- page layout ----------------------------------------------------------- */
extracted from source files can not only depend on the file extension, but
needs to be controllable in a precise manner.
-.. _`Jinja2`: http://jinja.pocoo.org/
+.. _`Jinja2`: https://jinja.pocoo.org/
.. _`Genshi`: https://genshi.edgewall.org/
Babel accepts a configuration file to specify this mapping of files to
extraction function directly. But whenever possible, the entry point
should be declared to make configuration more convenient.
-.. _`setuptools`: http://peak.telecommunity.com/DevCenter/setuptools
+.. _`setuptools`: https://setuptools.pypa.io/en/latest/setuptools.html
-------------------
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
from optparse import OptionParser
from pprint import pprint
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import os
import pickle
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import collections
import logging
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import copy
import datetime
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import unittest
from datetime import datetime
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import codecs
import sys
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import logging
import os
import re
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import os
import unittest
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import pytest
from babel import Locale
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import unittest
from datetime import datetime
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import pytest
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import calendar
from datetime import date, datetime, time, timedelta
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import os
import pickle
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import decimal
import unittest
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import decimal
import unittest
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import datetime
import inspect
#
# This software is licensed as described in the file LICENSE, which
# you should have received as part of this distribution. The terms
-# are also available at http://babel.edgewall.org/wiki/License.
+# are also available at https://github.com/python-babel/babel/blob/master/LICENSE.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
-# history and logs, available at http://babel.edgewall.org/log/.
+# history and logs, available at https://github.com/python-babel/babel/commits/master/.
import __future__