More BabelDjango -> django-babel

This commit is contained in:
Christopher Grebs 2014-02-22 14:24:23 +01:00
parent 2948312d3e
commit 6b19e58193
4 changed files with 9 additions and 22 deletions

View File

@ -1,4 +1,4 @@
BabelDjango is written and maintained by the BabelDjango team and various
django-babel is written and maintained by the django-babel team and various
contributors:
Maintainer and Current Project Lead:
@ -11,6 +11,6 @@ Contributors:
- Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
- Ramiro Morales <cramm0@gmail.com>
BabelDjango was previously developed under the Copyright of Edgewall Software.
The following copyright notice holds true for releases before 2013: "Copyright
django-babel was previously developed under the Copyright of Edgewall Software.
The following copyright notice holds true for releases before 2013: "Copyright
(c) 2007 - 2011 by Edgewall Software"

View File

@ -1,4 +1,4 @@
Copyright (C) 2013 BabelDjango Team
Copyright (C) 2013-2014 django-babel Team
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -19,7 +19,7 @@ needs to be in your project package directory.
### Extraction Method Mapping
So BabelDjango comes with an extraction method plugin that can extract
So django-babel comes with an extraction method plugin that can extract
localizable messages from Django template files. Python is supported out of the
box by Babel. To use this extraction functionality, create a file called
`babel.cfg` in your project directory (the directory above your project
@ -41,7 +41,7 @@ Also, any files with the extension `.py` inside your package directory (replace
“mypkg” with the actual name of your Django project package) are processed by
the “python” extraction method.
If you don't use setuptools, or for some reason haven't installed BabelDjango
If you don't use setuptools, or for some reason haven't installed django-babel
using setuptools/pip, you'll need to define what function the extraction method
“django” maps to. This is done in an extra section at the top of the
configuration file:
@ -149,12 +149,12 @@ locale from a thread-local cache.
## Using the Template Tags
The template filters provided by BabelDjango allow formatting of date/time and
The template filters provided by django-babel allow formatting of date/time and
number values in a locale-sensitive manner, providing much more powerful
alternatives to the `date`, `time`, and `floatformat` filters that come with
Django.
To make the template filters/tags available, you need to add BabelDjango to
To make the template filters/tags available, you need to add django-babel to
the list of `INSTALLED_APPS` in your settings module:
```python
@ -166,7 +166,7 @@ INSTALLED_APPS = (
```
And in every template you want to use the filters, you need to explicitly load
the BabelDjango library:
the django-babel library:
```jinja
{% load babel %}

View File

@ -1,13 +0,0 @@
Tools for using Babel with Django
=================================
This package contains various utilities for integration of Babel into the
Django web framework:
* A message extraction plugin for Django templates.
* A middleware class that adds the Babel `Locale` object to requests.
* A set of template tags for date and number formatting.
For more information please visit the wiki page for this package:
<http://babel.edgewall.org/wiki/BabelDjango>