zope.i18n 5.1__py3-none-any.whl → 5.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- zope/i18n/format.py +1 -1
- zope/i18n/testmessagecatalog.py +2 -2
- zope/i18n/tests/test_formats.py +603 -714
- zope/i18n/tests/test_translationdomain.py +11 -4
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/METADATA +14 -3
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/RECORD +11 -11
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/WHEEL +1 -1
- /zope.i18n-5.1-py3.11-nspkg.pth → /zope.i18n-5.2-py3.11-nspkg.pth +0 -0
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/LICENSE.txt +0 -0
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/namespace_packages.txt +0 -0
- {zope.i18n-5.1.dist-info → zope.i18n-5.2.dist-info}/top_level.txt +0 -0
@@ -113,10 +113,17 @@ class TestGlobalTranslationDomain(TestITranslationDomain, unittest.TestCase):
|
|
113
113
|
mapping={})
|
114
114
|
msgid2 = factory("48-not-there", 'Message 2 and $msg1',
|
115
115
|
mapping={})
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
116
|
+
try:
|
117
|
+
msgid1.mapping['msg2'] = msgid2
|
118
|
+
msgid2.mapping['msg1'] = msgid1
|
119
|
+
except TypeError:
|
120
|
+
# this is a `zope.i118nmessageid >= 7` message id enforcing
|
121
|
+
# immutability; circular references therefore
|
122
|
+
# cannot be created in this way
|
123
|
+
pass
|
124
|
+
else:
|
125
|
+
self.assertRaises(ValueError,
|
126
|
+
translate, msgid1, None, None, 'en', "default")
|
120
127
|
# Recursive translations also work if the original message id wasn't a
|
121
128
|
# message id but a Unicode with a directly passed mapping
|
122
129
|
self.assertEqual(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: zope.i18n
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.2
|
4
4
|
Summary: Zope Internationalization Support
|
5
5
|
Home-page: https://github.com/zopefoundation/zope.i18n
|
6
6
|
Author: Zope Foundation and Contributors
|
@@ -13,18 +13,18 @@ Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: License :: OSI Approved :: Zope Public License
|
14
14
|
Classifier: Programming Language :: Python
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
16
|
-
Classifier: Programming Language :: Python :: 3.7
|
17
16
|
Classifier: Programming Language :: Python :: 3.8
|
18
17
|
Classifier: Programming Language :: Python :: 3.9
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
21
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
22
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
23
23
|
Classifier: Natural Language :: English
|
24
24
|
Classifier: Operating System :: OS Independent
|
25
25
|
Classifier: Topic :: Internet :: WWW/HTTP
|
26
26
|
Classifier: Framework :: Zope :: 3
|
27
|
-
Requires-Python: >=3.
|
27
|
+
Requires-Python: >=3.8
|
28
28
|
License-File: LICENSE.txt
|
29
29
|
Requires-Dist: setuptools
|
30
30
|
Requires-Dist: python-gettext
|
@@ -88,6 +88,17 @@ localization.
|
|
88
88
|
CHANGES
|
89
89
|
=========
|
90
90
|
|
91
|
+
5.2 (2024-09-27)
|
92
|
+
================
|
93
|
+
|
94
|
+
- Add support for Python 3.12.
|
95
|
+
|
96
|
+
- Drop support for Python 3.7.
|
97
|
+
|
98
|
+
- Fix test incompatibility for ``zope.i18nmessageid >= 7.0``
|
99
|
+
(`#62 <https://github.com/zopefoundation/zope.i18n/issues/62>`_).
|
100
|
+
|
101
|
+
|
91
102
|
5.1 (2023-08-28)
|
92
103
|
================
|
93
104
|
|
@@ -1,16 +1,16 @@
|
|
1
|
-
zope.i18n-5.
|
1
|
+
zope.i18n-5.2-py3.11-nspkg.pth,sha256=SWEVH-jEWsKYrL0qoC6GBJaStx_iKxGoAY9PQycFVC4,529
|
2
2
|
zope/i18n/__init__.py,sha256=NMpvR4IsTXy_OficD1vx2eR6yzJMWRaONWmMibaX-l8,7514
|
3
3
|
zope/i18n/compile.py,sha256=0kpclbhChlZQIbfTctPp4Cqc2F5RqEcR7jquLnkcLh4,1429
|
4
4
|
zope/i18n/config.py,sha256=20aYlJ4eg-2iuSXHDRqXkkzALDa4URhRchKvFPH9Y6I,1669
|
5
5
|
zope/i18n/configure.zcml,sha256=oebDJrOzCVDc6U957WVABZiA4GpG061rEHil-9lJ_Uc,278
|
6
|
-
zope/i18n/format.py,sha256=
|
6
|
+
zope/i18n/format.py,sha256=Y69ArTTdfYKlqsR_mQmHMbSrqgiFgi3NwoLnusILtRM,34945
|
7
7
|
zope/i18n/gettextmessagecatalog.py,sha256=kyGa_Y4X2_EY6X3viIvz3GuLOVZvk_vSAFEAb0SMOgM,3726
|
8
8
|
zope/i18n/i18nobject.txt,sha256=mi5UD13ZvBxNLSNGvPMVy1We2rFCMpuF1fTJnl9Rc8I,3074
|
9
9
|
zope/i18n/meta.zcml,sha256=ymIRohOID745zvv_jCCRUOkrvRMeOOx_umKSS_0EtME,396
|
10
10
|
zope/i18n/negotiator.py,sha256=RNLHH1YYouj6IcceQr5Q_1m6whRx0nMMHJyw9iB7GnI,2159
|
11
11
|
zope/i18n/simpletranslationdomain.py,sha256=idz4JmY9U70bJK2Ut8TReYhB70Rjd2TgFxNYuVJps7E,2669
|
12
12
|
zope/i18n/testing.py,sha256=hZlCwqiY-mfaRjOdsynCLQz39lJrUGDrQiJM6jieZiM,2052
|
13
|
-
zope/i18n/testmessagecatalog.py,sha256=
|
13
|
+
zope/i18n/testmessagecatalog.py,sha256=kmyXIjJmps5RvHPRxm6aXZgzCazikwpOTYbRNg-D4E4,1703
|
14
14
|
zope/i18n/testmessagecatalog.rst,sha256=SdsHRBM6rus52_XmPgztuzg7oA2cjBhfofHPstLBJec,1910
|
15
15
|
zope/i18n/translationdomain.py,sha256=6TWaKavvCUrpd3Phprcmy0WliRaO6IVXzTgZiIa6bvs,7645
|
16
16
|
zope/i18n/zcml.py,sha256=qFQ7fFigMbXrJOI-almGq5yojtN79mY2ccSVmK-Dmuw,5080
|
@@ -317,7 +317,7 @@ zope/i18n/tests/__init__.py,sha256=690b_c98_VbdhbkaIIiCjDZc8aFNpJYPu9eSy_5lq-w,6
|
|
317
317
|
zope/i18n/tests/configure.txt,sha256=QwqTf4X5jAy_YfBel4dbablEVqCzsqllr5vm33jmpvU,488
|
318
318
|
zope/i18n/tests/test.py,sha256=pzvIS-cWySb-MN4sF50bdcTOfuCpWa7Xickbm_qe9Rk,1146
|
319
319
|
zope/i18n/tests/test_compile.py,sha256=9XGD7n_IRuurzspmqOtyyArknHWgOuUxHhWd-SRvKJM,2274
|
320
|
-
zope/i18n/tests/test_formats.py,sha256=
|
320
|
+
zope/i18n/tests/test_formats.py,sha256=zb0jRqZHrJ1LuTsUzR8gbV8rIgJBYixgzPCo8Ih158Y,62010
|
321
321
|
zope/i18n/tests/test_gettextmessagecatalog.py,sha256=gbT9eUtXmIqaWqx6NeZrEw-PYvMC9XstNLhYu6oKe7E,1356
|
322
322
|
zope/i18n/tests/test_imessagecatalog.py,sha256=vEAdVNT-csTV_lHk9JYAwy8k9DJOZAQ12zzJ31wDYfs,2304
|
323
323
|
zope/i18n/tests/test_itranslationdomain.py,sha256=XvkndUhZZ7CplyWoVjfb5Kdfw6RZKVJZGc0ql4lTbyU,4114
|
@@ -325,7 +325,7 @@ zope/i18n/tests/test_negotiator.py,sha256=SKCHns3rgUVAGgcxCfaB91gUeDPawkM7Us7LXj
|
|
325
325
|
zope/i18n/tests/test_plurals.py,sha256=RpVI5MmYJu47cxV4wr-YRs4UhatP17ITq-Glf_0bBuA,12821
|
326
326
|
zope/i18n/tests/test_simpletranslationdomain.py,sha256=JK0-yjKb2tvOGw8DrlcE0fG0aBdAf849jerUHROktEc,1409
|
327
327
|
zope/i18n/tests/test_testmessagecatalog.py,sha256=lJdxoaqwXyAdpkUVtL9iO2vKrU8gfrq1OHQF11dmOk0,783
|
328
|
-
zope/i18n/tests/test_translationdomain.py,sha256=
|
328
|
+
zope/i18n/tests/test_translationdomain.py,sha256=Mp7ZJ8d02xyBjaRyuJAkqalG89XdaHKNpZScVliFZFI,12084
|
329
329
|
zope/i18n/tests/test_zcml.py,sha256=zRH5g0WCTzD0l0hlU_0is51vwqBY3QoTDMeZlnMvLhY,7055
|
330
330
|
zope/i18n/tests/testi18nawareobject.py,sha256=MxG1mOYvcB5-pI_lHjdG3trQlW6A_aRA3wQsExqGpRE,3218
|
331
331
|
zope/i18n/tests/locale/de/LC_MESSAGES/zope-i18n.mo,sha256=hvyVplTpEPj_Du85TmnqGTV5t0GqPO04A7NdBy15BLs,277
|
@@ -356,9 +356,9 @@ zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n.mo,sha256=8yHbDhd1pX_kC8c4gUoqb
|
|
356
356
|
zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n.po,sha256=93dkAV6YWB1n31wDtAzlIHln-9StXSkLNzcbGMoO8VY,294
|
357
357
|
zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n2.mo,sha256=_1PrSjMzwuIv6-vsT7_EQmphH4QTLIj9ltK98C_bbKo,291
|
358
358
|
zope/i18n/tests/locale3/en/LC_MESSAGES/zope-i18n2.po,sha256=5q-1okvFJffR926Z4NUiz6EmEbTp8lR0iM-OckZ8R3k,290
|
359
|
-
zope.i18n-5.
|
360
|
-
zope.i18n-5.
|
361
|
-
zope.i18n-5.
|
362
|
-
zope.i18n-5.
|
363
|
-
zope.i18n-5.
|
364
|
-
zope.i18n-5.
|
359
|
+
zope.i18n-5.2.dist-info/LICENSE.txt,sha256=PmcdsR32h1FswdtbPWXkqjg-rKPCDOo_r1Og9zNdCjw,2070
|
360
|
+
zope.i18n-5.2.dist-info/METADATA,sha256=OROtwLLZwNd4EsPvzLpjdsqkwfTQLgO0pfDdiwhyIuA,14162
|
361
|
+
zope.i18n-5.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
362
|
+
zope.i18n-5.2.dist-info/namespace_packages.txt,sha256=QpUHvpO4wIuZDeEgKY8qZCtD-tAukB0fn_f6utzlb98,5
|
363
|
+
zope.i18n-5.2.dist-info/top_level.txt,sha256=QpUHvpO4wIuZDeEgKY8qZCtD-tAukB0fn_f6utzlb98,5
|
364
|
+
zope.i18n-5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|