コード例 #1
0
class RoleWithI18n(Role):
    grok.name(_('RoleWithI18n'))
    grok.description(_('My role with i18n'))
コード例 #2
0
class RoleWithI18nTitle(Role):
    grok.name('RoleWithI18nTitle')
    grok.title(_('RoleWithI18n'))
    grok.description(_('My role with i18n'))
コード例 #3
0
class RoleWithoutI18n(Role):
    grok.name('RoleWithoutI18n')
    grok.description('My role without i18n')