More BabelDjango -> django-babel
This commit is contained in:
6
AUTHORS
6
AUTHORS
@@ -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:
|
contributors:
|
||||||
|
|
||||||
Maintainer and Current Project Lead:
|
Maintainer and Current Project Lead:
|
||||||
@@ -11,6 +11,6 @@ Contributors:
|
|||||||
- Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
|
- Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
|
||||||
- Ramiro Morales <cramm0@gmail.com>
|
- Ramiro Morales <cramm0@gmail.com>
|
||||||
|
|
||||||
BabelDjango was previously developed under the Copyright of Edgewall Software.
|
django-babel was previously developed under the Copyright of Edgewall Software.
|
||||||
The following copyright notice holds true for releases before 2013: "Copyright
|
The following copyright notice holds true for releases before 2013: "Copyright
|
||||||
(c) 2007 - 2011 by Edgewall Software"
|
(c) 2007 - 2011 by Edgewall Software"
|
||||||
|
2
COPYING
2
COPYING
@@ -1,4 +1,4 @@
|
|||||||
Copyright (C) 2013 BabelDjango Team
|
Copyright (C) 2013-2014 django-babel Team
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
10
README.md
10
README.md
@@ -19,7 +19,7 @@ needs to be in your project package directory.
|
|||||||
|
|
||||||
### Extraction Method Mapping
|
### 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
|
localizable messages from Django template files. Python is supported out of the
|
||||||
box by Babel. To use this extraction functionality, create a file called
|
box by Babel. To use this extraction functionality, create a file called
|
||||||
`babel.cfg` in your project directory (the directory above your project
|
`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
|
“mypkg” with the actual name of your Django project package) are processed by
|
||||||
the “python” extraction method.
|
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
|
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
|
“django” maps to. This is done in an extra section at the top of the
|
||||||
configuration file:
|
configuration file:
|
||||||
@@ -149,12 +149,12 @@ locale from a thread-local cache.
|
|||||||
|
|
||||||
## Using the Template Tags
|
## 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
|
number values in a locale-sensitive manner, providing much more powerful
|
||||||
alternatives to the `date`, `time`, and `floatformat` filters that come with
|
alternatives to the `date`, `time`, and `floatformat` filters that come with
|
||||||
Django.
|
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:
|
the list of `INSTALLED_APPS` in your settings module:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@@ -166,7 +166,7 @@ INSTALLED_APPS = (
|
|||||||
```
|
```
|
||||||
|
|
||||||
And in every template you want to use the filters, you need to explicitly load
|
And in every template you want to use the filters, you need to explicitly load
|
||||||
the BabelDjango library:
|
the django-babel library:
|
||||||
|
|
||||||
```jinja
|
```jinja
|
||||||
{% load babel %}
|
{% load babel %}
|
||||||
|
13
README.txt
13
README.txt
@@ -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>
|
|
Reference in New Issue
Block a user