scotu / aloha

A Django template tag that renders "Hello" in different langauges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=====
aloha
=====

This package provides you with the aloha template tag that allows you
to render "Hello" in different languages. It is flickr inspired and 
you are welcome to contribute more translations.

To install, place the `aloha` directory somewhere on your python path,
then add `aloha` to `INSTALLED_APPS` in your `settings.py` file.

{% aloha %}
===========
The aloha tag generates a random greeting, renders it, and updates 
the context with additional variables containing further details
of the greeting language.
 
 Syntax::
     {% load aloha %}
     {% aloha %}
     {% aloha language as [varname] and info as [varname] %}
 
 Example usage::
 
     {% aloha language as aloha_lang and info as aloha_info %}

 Example usage::
    
     <h1>{% aloha %}!</h1>
     {% ifnotequal aloha_language "English" %}
     	<h2>{{aloha_info}}</h2>
     {% endifnotequal %}

About

A Django template tag that renders "Hello" in different langauges

License:Other