Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmihelac/django-app-name-translation-in-admin
Application names i18n in the admin app
https://github.com/bmihelac/django-app-name-translation-in-admin
Last synced: 28 days ago
JSON representation
Application names i18n in the admin app
- Host: GitHub
- URL: https://github.com/bmihelac/django-app-name-translation-in-admin
- Owner: bmihelac
- Created: 2012-01-11T07:43:48.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-09T09:01:18.000Z (about 12 years ago)
- Last Synced: 2024-08-01T22:57:00.313Z (3 months ago)
- Language: Python
- Homepage:
- Size: 157 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
====================================
Django app name translation in admin
====================================This application allows translation of application names in the admin interface.
Works with Django 1.3.x (for Django 1.4.x, use ``next`` branch).
Installation
------------Using pip, you can install from the git repo.
For Django 1.4.x (using ``next`` branch):
pip install git+git://github.com/bmihelac/django-app-name-translation-in-admin.git@next
Previous versions (using ``master`` branch):
pip install git+git://github.com/bmihelac/django-app-name-translation-in-admin.git@master
Configuration and usage
-----------------------1. Put ``app_name_translation_in_admin`` into your ``INSTALLED_APPS`` **before**
``django.contrib.admin``::INSTALLED_APPS = (
...
'app_name_translation_in_admin',
'django.contrib.admin',
...
)2. Define the app names and mark them for translations. Use title cased app
name.::
from django.utils.translation import ugettext_lazy as _
_(u'Auth') # for auth app_name
_(u'Sites')
_(u'User_Addresses') # for user_addresses app_nameNotes
-----Related tickets:
* `Ticket #3591 add support for custom app_label and verbose_name `_.
When this ticket is resolved, this application would be excessive.* `Ticket #10436 - Application names i18n in the admin app broken `_
* this `thread `_