From 6b19e581935616138c69fc8846986bc31c2832cc Mon Sep 17 00:00:00 2001 From: Christopher Grebs Date: Sat, 22 Feb 2014 14:24:23 +0100 Subject: [PATCH] More BabelDjango -> django-babel --- AUTHORS | 6 +++--- COPYING | 2 +- README.md | 10 +++++----- README.txt | 13 ------------- 4 files changed, 9 insertions(+), 22 deletions(-) delete mode 100644 README.txt diff --git a/AUTHORS b/AUTHORS index 1b17e13..4b9665b 100644 --- a/AUTHORS +++ b/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: Maintainer and Current Project Lead: @@ -11,6 +11,6 @@ Contributors: - Jeroen Ruigrok van der Werven - Ramiro Morales -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" diff --git a/COPYING b/COPYING index b8684c6..364e7b0 100644 --- a/COPYING +++ b/COPYING @@ -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 diff --git a/README.md b/README.md index 07baa69..453f2e0 100644 --- a/README.md +++ b/README.md @@ -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 %} diff --git a/README.txt b/README.txt deleted file mode 100644 index e4a5db1..0000000 --- a/README.txt +++ /dev/null @@ -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: - -