Changeset View
Changeset View
Standalone View
Standalone View
pillar/config.py
| Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | |||||
| # Mapping from user role to capabilities obtained by users with that role. | # Mapping from user role to capabilities obtained by users with that role. | ||||
| USER_CAPABILITIES = defaultdict(**{ | USER_CAPABILITIES = defaultdict(**{ | ||||
| 'subscriber': {'subscriber', 'home-project'}, | 'subscriber': {'subscriber', 'home-project'}, | ||||
| 'demo': {'subscriber', 'home-project'}, | 'demo': {'subscriber', 'home-project'}, | ||||
| 'admin': {'subscriber', 'home-project', 'video-encoding', 'admin', | 'admin': {'subscriber', 'home-project', 'video-encoding', 'admin', | ||||
| 'view-pending-nodes', 'edit-project-node-types', 'create-organization'}, | 'view-pending-nodes', 'edit-project-node-types', 'create-organization'}, | ||||
| 'org-subscriber': {'subscriber', 'home-project'}, | 'org-subscriber': {'subscriber', 'home-project'}, | ||||
| }, default_factory=frozenset) | }, default_factory=frozenset) | ||||
| # Internationalization and localization | |||||
| USE_I18 = False # Whether to use internationalization and localization | |||||
sybren: See earlier comment, should be `USE_I18N`. If you really want to be a special snowflake, at… | |||||
dfelintoAuthorUnsubmitted Not Done Inline ActionsL6G S7G N1W E3Y D1Y T3K Y1U! dfelinto: L6G S7G N1W E3Y D1Y T3K Y1U! | |||||
| DEFAULT_LOCALE = 'en' # Default locale (e.g., en, pt,) for the project | |||||
sybrenUnsubmitted Done Inline ActionsThis needs documentation about allowed values. For example, a locale can also include a territory, a codeset, and a modifier. Especially territories are important, because nl_NL is not the same language as nl_BE. sybren: This needs documentation about allowed values. For example, a locale [can also include a… | |||||
| # All the available languages will be determined based on available translations | |||||
Not Done Inline ActionsAre different codesets supported by Pillar then? Don't we always assume UTF-8? And what do those modifiers do? If you include this text, it's important to know what will work and what won't. sybren: Are different codesets supported by Pillar then? Don't we always assume UTF-8? And what do… | |||||
Not Done Inline ActionsMaybe mention that all translations should be in UTF-8? sybren: Maybe mention that all translations should be in UTF-8? | |||||
| # in the //translations/ folder. The exception is English, since all the text is | |||||
| # originally in English already. That said, if rare occasions we may want to | |||||
| # never show the site in English. | |||||
| SUPPORT_ENGLISH = True | |||||
See earlier comment, should be USE_I18N. If you really want to be a special snowflake, at least use USE_I19 ;-)
FYI, "i18n" just means "an 'i' and an 'n' with 18 letters in between".