Skip to content

Commit 59f02c9

Browse files
committed
License clarification and cleanup
1 parent 1f67eab commit 59f02c9

20 files changed

+195
-284
lines changed

AUTHORS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ Contributors:
1717
- Daniel Neuhäuser <dasdasich@gmail.com>
1818
- Nick Retallack <nick@bitcasa.com>
1919
- Thomas Waldmann <tw@waldmann-edv.de>
20+
- Lennart Regebro <regebro@gmail.com>
2021

2122
Babel was previously developed under the Copyright of Edgewall Software. The
2223
following copyright notice holds true for releases before 2013: "Copyright (c)
2324
2007 - 2011 by Edgewall Software"
25+
26+
In addition to the regular contributions Babel includes a fork of Lennart
27+
Regebro's tzlocal that originally was licensed under the CC0 license. The
28+
original copyright of that project is "Copyright 2013 by Lennart Regebro".

babel/__init__.py

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
2+
"""
3+
babel
4+
~~~~~
135
14-
"""Integrated collection of utilities that assist in internationalizing and
15-
localizing applications.
6+
Integrated collection of utilities that assist in internationalizing and
7+
localizing applications.
168
17-
This package is basically composed of two major parts:
9+
This package is basically composed of two major parts:
1810
19-
* tools to build and work with ``gettext`` message catalogs
20-
* a Python interface to the CLDR (Common Locale Data Repository), providing
21-
access to various locale display names, localized number and date
22-
formatting, etc.
11+
* tools to build and work with ``gettext`` message catalogs
12+
* a Python interface to the CLDR (Common Locale Data Repository), providing
13+
access to various locale display names, localized number and date
14+
formatting, etc.
2315
24-
:see: http://www.gnu.org/software/gettext/
25-
:see: http://docs.python.org/lib/module-gettext.html
26-
:see: http://www.unicode.org/cldr/
16+
:copyright: (c) 2013 by the Babel Team.
17+
:license: BSD, see LICENSE for more details.
2718
"""
2819

2920
from babel.core import UnknownLocaleError, Locale, default_locale, \

babel/_compat.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
151
import sys
162

173
PY2 = sys.version_info[0] == 2

babel/core.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
"""Core locale representation and locale data access."""
2+
"""
3+
babel.core
4+
~~~~~~~~~~
5+
6+
Core locale representation and locale data access.
7+
8+
:copyright: (c) 2013 by the Babel Team.
9+
:license: BSD, see LICENSE for more details.
10+
"""
1511

1612
import os
1713

babel/dates.py

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
"""Locale dependent formatting and parsing of dates and times.
15-
16-
The default locale for the functions in this module is determined by the
17-
following environment variables, in that order:
18-
19-
* ``LC_TIME``,
20-
* ``LC_ALL``, and
21-
* ``LANG``
2+
"""
3+
babel.dates
4+
~~~~~~~~~~~
5+
6+
Locale dependent formatting and parsing of dates and times.
7+
8+
The default locale for the functions in this module is determined by the
9+
following environment variables, in that order:
10+
11+
* ``LC_TIME``,
12+
* ``LC_ALL``, and
13+
* ``LANG``
14+
15+
:copyright: (c) 2013 by the Babel Team.
16+
:license: BSD, see LICENSE for more details.
2217
"""
2318

2419
from __future__ import division

babel/localedata.py

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
"""Low-level locale data access.
15-
16-
:note: The `Locale` class, which uses this module under the hood, provides a
17-
more convenient interface for accessing the locale data.
2+
"""
3+
babel.localedata
4+
~~~~~~~~~~~~~~~~
5+
6+
Low-level locale data access.
7+
8+
:note: The `Locale` class, which uses this module under the hood, provides a
9+
more convenient interface for accessing the locale data.
10+
11+
:copyright: (c) 2013 by the Babel Team.
12+
:license: BSD, see LICENSE for more details.
1813
"""
1914

2015
import os

babel/localtime/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
babel.localtime
4+
~~~~~~~~~~~~~~~
5+
6+
Babel specific fork of tzlocal to determine the local timezone
7+
of the system.
8+
9+
:copyright: (c) 2013 by the Babel Team.
10+
:license: BSD, see LICENSE for more details.
11+
"""
12+
113
import sys
214
import pytz
315
import time

babel/messages/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
2+
"""
3+
babel.messages
4+
~~~~~~~~~~~~~~
135
14-
"""Support for ``gettext`` message catalogs."""
6+
Support for ``gettext`` message catalogs.
7+
8+
:copyright: (c) 2013 by the Babel Team.
9+
:license: BSD, see LICENSE for more details.
10+
"""
1511

1612
from babel.messages.catalog import *

babel/messages/catalog.py

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
"""Data structures for message catalogs."""
2+
"""
3+
babel.messages.catalog
4+
~~~~~~~~~~~~~~~~~~~~~~
5+
6+
Data structures for message catalogs.
7+
8+
:copyright: (c) 2013 by the Babel Team.
9+
:license: BSD, see LICENSE for more details.
10+
"""
1511

1612
from cgi import parse_header
1713
from datetime import datetime, time as time_

babel/messages/checkers.py

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright (C) 2007-2011 Edgewall Software
4-
# All rights reserved.
5-
#
6-
# This software is licensed as described in the file COPYING, which
7-
# you should have received as part of this distribution. The terms
8-
# are also available at http://babel.edgewall.org/wiki/License.
9-
#
10-
# This software consists of voluntary contributions made by many
11-
# individuals. For the exact contribution history, see the revision
12-
# history and logs, available at http://babel.edgewall.org/log/.
13-
14-
"""Various routines that help with validation of translations.
15-
16-
:since: version 0.9
2+
"""
3+
babel.messages.checkers
4+
~~~~~~~~~~~~~~~~~~~~~~~
5+
6+
Various routines that help with validation of translations.
7+
8+
:since: version 0.9
9+
10+
:copyright: (c) 2013 by the Babel Team.
11+
:license: BSD, see LICENSE for more details.
1712
"""
1813

1914
from babel.messages.catalog import TranslationError, PYTHON_FORMAT

0 commit comments

Comments
 (0)