Skip to main content

Registers the Tag model for simple-translation and extends the Tag admin.

Project description

Registers the Tag model of django-tagging for simple-translation and extends the Tag admin.

Installation

Prerequisites:

  • Django

  • django-tagging

  • simple-translation

If you want to install the latest stable release from PyPi:

$ pip install django-tagging-translated

If you feel adventurous and want to install the latest commit from GitHub:

$ pip install -e git://github.com/bitmazk/django-tagging-translated.git#egg=tagging_translated

Add tagging_translated to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...,
    'tagging_translated',
)

Run the South migrations:

./manage.py migrate tagging_translated

Usage

When you create tags, for example via the Entry admin of cmsplugin-blog, the english translation will be generated automatically. You can use it in your templates like so:

{% load i18n simple_translation_tags %}

{% with tag|get_preferred_translation_from_request:request as tag_title %}
<p>{{ tag_title.trans_name }}</p>
{% endwith %}

Roadmap

Check the issue tracker on github for milestones and features to come.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-tagging-translated-0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-tagging-translated-0.1.tar.gz.

File metadata

File hashes

Hashes for django-tagging-translated-0.1.tar.gz
Algorithm Hash digest
SHA256 062afcaa8f6d327d72e7e08f38ca6aa7a04dfe6a40e0ce713f04ba1411b41e59
MD5 d5077874bccddefdfb98020714089a1e
BLAKE2b-256 7fb7c177f6a827fed9d6f4c83aa9ec5cc32f869014ff8a731ede9032fe0500b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page