{"comment":{"created_at":"2011-10-24T17:00:32Z","body":"You have to consider **when** is the runtime for the specific piece of code.\r\n\r\nPer example:\r\n\r\nFor a **class attribute**, *runtime* means **import time** (use `ugettext_lazy` or get server locale settings)\r\nfor **code within a method or property**, *runtime* means **when it is invoked** (use `ugettext` to get client locale settings)\r\n\r\nThis is the main difference\r\n\r\n","updated_at":"2011-10-24T17:00:32Z","url":"https://api.github.com/repos/seldon/django-flexi-auth/issues/comments/2506112","id":2506112,"user":{"gravatar_id":"1f54010908244c844389dc9d7514f737","avatar_url":"https://secure.gravatar.com/avatar/1f54010908244c844389dc9d7514f737?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/feroda","id":232176,"login":"feroda"}},"action":"created","issue":{"number":14,"created_at":"2011-10-21T07:01:43Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When you (we) represent role we have the `__unicode__` method that returns \r\n`u\"%(role)s for %(params)s\"` as in line https://github.com/seldon/django-flexi-auth/blob/master/flexi_auth/models.py#L164\r\n\r\nYou have to apply ugettext to this string in order to make it translatable in other languages.\r\n\r\n","comments":4,"title":"I18n for role representation","updated_at":"2011-10-24T17:00:32Z","url":"https://api.github.com/repos/seldon/django-flexi-auth/issues/14","id":2012869,"assignee":null,"milestone":null,"closed_at":"2011-10-21T17:24:38Z","user":{"gravatar_id":"1f54010908244c844389dc9d7514f737","avatar_url":"https://secure.gravatar.com/avatar/1f54010908244c844389dc9d7514f737?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/feroda","id":232176,"login":"feroda"},"html_url":"https://github.com/seldon/django-flexi-auth/issues/14","labels":[],"state":"closed"},"legacy":{"issue_id":2012869,"comment_id":2506112}}