• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / zc.form / 16248976557

21 Oct 2024 07:16AM UTC coverage: 82.759%. Remained the same
16248976557

push

github

icemac
Back to development: 2.2

126 of 180 branches covered (70.0%)

Branch coverage included in aggregate %.

786 of 922 relevant lines covered (85.25%)

0.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/zc/form/i18n.py
1
##############################################################################
2
#
3
# Copyright (c) 2003-2004 Zope Foundation and Contributors.
4
# All Rights Reserved.
5
#
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
12
#
13
##############################################################################
14
"""I18N support for the form package.
15

16
This defines a `MessageFactory` for the I18N domain for the zc.form
17
package.  This is normally used with this import::
18

19
  from i18n import MessageFactory as _
20

21
The factory is then used normally.  Two examples::
22

23
  text = _('some internationalized text')
24
  text = _('helpful-descriptive-message-id', 'default text')
25
"""
26
__docformat__ = "reStructuredText"
1✔
27

28

29
from zope import i18nmessageid
1✔
30

31

32
MessageFactory = _ = i18nmessageid.MessageFactory("zc.form")
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc