]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Replace dead or insecure links
authorAarni Koskela <akx@iki.fi>
Mon, 13 Jan 2025 11:40:23 +0000 (13:40 +0200)
committerAarni Koskela <akx@iki.fi>
Tue, 14 Jan 2025 07:52:31 +0000 (09:52 +0200)
26 files changed:
README.rst
babel/core.py
babel/dates.py
babel/numbers.py
contrib/babel.js
docs/_templates/sidebar-links.html
docs/_themes/babel/layout.html
docs/_themes/babel/static/babel.css_t
docs/messages.rst
scripts/dump_data.py
scripts/dump_global.py
scripts/import_cldr.py
tests/messages/test_catalog.py
tests/messages/test_checkers.py
tests/messages/test_extract.py
tests/messages/test_frontend.py
tests/messages/test_mofile.py
tests/messages/test_plurals.py
tests/messages/test_pofile.py
tests/test_core.py
tests/test_dates.py
tests/test_localedata.py
tests/test_numbers.py
tests/test_plural.py
tests/test_support.py
tests/test_util.py

index c708f9da67a9724b5f46da120e96bb78d8b476db..290223cccc928edf427742eb1e640359c9240b8b 100644 (file)
@@ -9,7 +9,7 @@ Details can be found in the HTML files in the ``docs`` folder.
 
 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
 
index d03be0d9d8efabec698d9a8cbc040be1ad4bdefa..39a2cf6eddafb34289a3f85006a8ad8c8a5bfab3 100644 (file)
@@ -583,7 +583,7 @@ class Locale:
         >>> 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']
@@ -595,7 +595,7 @@ class Locale:
         >>> 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']
@@ -607,7 +607,7 @@ class Locale:
         >>> 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']
index 740e8495546dcf708f8a8036963d4c6c73551f49..98dd3f044ba63de865bf23089f7452590b141ce1 100644 (file)
@@ -1946,7 +1946,7 @@ def match_skeleton(skeleton: str, options: Iterable[str], allow_different_fields
     # 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)
index 701e288e42a4a599838c87deda48167406a41106..6d334918aa809c4ef2cebf97202332354f410c02 100644 (file)
@@ -165,7 +165,7 @@ def get_currency_precision(currency: str) -> int:
 
 
 def get_currency_unit_pattern(
-    currency: str,
+    currency: str,  # TODO: unused?!
     count: float | decimal.Decimal | None = None,
     locale: Locale | str | None = None,
 ) -> str:
index b1ad341d15e8cf10923a9c03fb4513cfd571c7f7..0cd4666a288fb7ee790e45e8ff3570e84ac1bb07 100644 (file)
@@ -6,11 +6,11 @@
  *
  * 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/.
  */
 
 /**
index 71d11b850e589db8544bc38db39b25bfae8ae763..e71dec48762bab8ebfb05daf9de320e5222628ab 100644 (file)
@@ -3,12 +3,12 @@
   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>
index 1fd054eae58636a5b2819c57d3e9433affa7af97..fd2f0205e29897a29e1161d5f714740428d95a6e 100644 (file)
@@ -19,7 +19,7 @@
 {%- block footer %}
   <div class="footer">
     &copy; 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>
index bd1a1cdfeaaf1ac62eb206c72ac081858cc5a808..04b115822db773879be661cca27ec21f10c01c5d 100644 (file)
@@ -15,7 +15,7 @@
 
 @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 ----------------------------------------------------------- */
 
index 3ac035607a8877f43a770f8394ba6f1832453f86..aeb23123a9dd31596abf3f2468245fce28296e8f 100644 (file)
@@ -80,7 +80,7 @@ languages (for whatever reason). Therefore the way in which messages are
 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
@@ -265,7 +265,7 @@ extraction.
           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
 
 
 -------------------
index 639c14d43befbd9ba613125c499647521309cca5..1d738347faadc74896acb93438369e693c52aa98 100755 (executable)
@@ -5,11 +5,11 @@
 #
 # 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
index e03fc0278c8dcf5f2afd3c53c66f374870119646..edb42fed43ee14558d05292d360ad6c767478c57 100755 (executable)
@@ -5,11 +5,11 @@
 #
 # 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
index 2ab8d0bf81662d322f9e9bcdb9dc80ee5988e4b8..7e5cdbab3a1e3afafe8c4c93186cda0912f62705 100755 (executable)
@@ -5,11 +5,11 @@
 #
 # 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
index 2df85debb8bec14571f0e53b86b3942cd2217503..244d832ab6e31f0a1ffe7b69606f9deff54e27f8 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index b2dc9dc4ef118933ebbf6e66d80a03d1258a29b1..6d87b742e120fdbe39c5619bc35a50f0cd5969a7 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index bcc6aa475e6da19d250b1c3837c3ad8a67fc6b55..a9b2d117805e05cd7231a5ca5160d2c558a9f78d 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index b05f9f683edf65c056d1a11d57be3d6834d61a25..e42d903a3242a0a46c28489df01f8c6e1c721db0 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index 7a699041d9c13c4056296aaa31ad848eadf8de4c..9b27a203d518c13d507d284a8d4b8d020ae2c1b8 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index e9f8e80fd1dc45e8767f47ccd84c58fdee4c3c12..33e08ad7a258c7a95870de5b27ac983c699e7e74 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index 9d43073629bc116b9a99a481a87ecf2c30c13f1c..51b9ef701feabda2b4bf92c6b70e6bfa0fc32d05 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index 8aa21b4cc464e92c89f2b1a14546b6a1bdf92051..f51eedb94955dc36e3b6753b8a71af737f759ac1 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
 
index 6c0a7ab17dc6d9d42aa0c04da153684c3356de92..bc6107f39baedaf93b5032d888da631c4b070d3a 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index 721b91fba100b1b22f8693ad68074c2b632ad426..4a1678467d197f0213a848445ddd389f7b6797ac 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index e64fcfb75e97c6226184fcfc3ead5fbca220b67a..cf0e8d1ba6cb1a2249f005056b42f6444d560e31 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index b10ccf5ad398921e2d1fc4a085b39f92ebd4d8aa..0e58a422e9e2a3087a8862aa2014c2a988094e70 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
 
index 65147210b58c95595828570d3b619caa4bff8368..44d5afb15d2eaef39d961edb1cd3a8421b670a7a 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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
index c661894c8ade5cc4e23986b518569ed30a5fa90f..c51bab23ef5a50b6619f31c8a18a4f438395e0b4 100644 (file)
@@ -4,11 +4,11 @@
 #
 # 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__