Carl, You lost me. You mean make the states numerical and in the array related its (numeric) keys to the, then translatable, 'words'?
If so, the problem would be that the ease of use in coding would stop to exist. The statemachine dynamically creates methods so you can use stuff like order.bill() and order.is_billed() If not, please clearify. Thanx a lot. Regards, Gerard. Carl Meyer wrote: > On Sep 30, 2:58 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote: >> It is indeed stored, I'm using a state machine >> (http://www.djangosnippets.org/snippets/737/). Setting this up multilingual >> could result in unusable orders states, when users change their locale >> during the state/transition of an order. >> >> The tricky thing is that the states (used for control) also have a meaning >> to the user displayed in the template. So I would want to translate them at >> the last moment, and not store them as such. > > Use a choices array with numerical keys and just translate the values > (which are never stored in the DB). > > -- urls = { 'fun': 'www.zonderbroodje.nl', 'tech': 'www.gp-net.nl' } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---