ciao alessandro,

i am using transmeta for a project im developing and it seems to fit my
needs.
transmeta is easy to use and it creates a db column for every field you
defined as translatable.
the default and required language is the one you define as site language
in settings.py, and its also the "neutral" language which is shown even
on the other languages if you didnt write a translation.

in the last days i found a way to have a better behaviour for fields
which language doesnt exist but i dont want to show the default language:
in the template:
       {% ifequal LANGUAGE_CODE 'en' %}
        {% if object.body_en %}
            <p>{{ object.body_en|safe }}</p>
        {% else %}
            <p>Sorry but the requested content doesnt exist in this
language. </p>
        {% endif %}
       {% endifequal %}

i think in this way im having a clean way to avoid an ugly language mix.
im also using localeurl to get the language choice directly in the url
like http://www.mysite.com/en/my-content or
http://www.mysite.com/it/my-content

i hope this can help you

Alessandro Ronchi wrote:
> I need to make my model translatable into different languages.
> Is there any simple way to handle that in a transparent manner?
> I've fround transmeta project on google, anyone is using that?
>
> -- 
> Alessandro Ronchi
>
> SOASI
> Sviluppo Software e Sistemi Open Source
> http://www.soasi.com
> http://www.linkedin.com/in/ronchialessandro
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to