]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/urls.py
Merged pt_BR locale from https://github.com/OSQA/osqa/commit/676fdbc347f8f5e91a66b215...
[osqa.git] / forum / settings / urls.py
1 from base import Setting, SettingSet
2 from django.utils.translation import ugettext as _
3
4 URLS_SET = SettingSet('urls', _('URL settings'), _("Some settings to tweak behaviour of site urls (experimental)."))
5
6 INCLUDE_ID_IN_USER_URLS = Setting('INCLUDE_ID_IN_USER_URLS', True, URLS_SET, dict(
7 label = _("Include IDs in user URLs"),
8 help_text = _("Choose this if you want to have IDs included in the user-related URLs."),
9 required=False))
10
11 ALLOW_UNICODE_IN_SLUGS = Setting('ALLOW_UNICODE_IN_SLUGS', False, URLS_SET, dict(
12 label = _("Allow unicode in slugs"),
13 help_text = _("Allow unicode/non-latin characters in urls."),
14 required=False))
15
16 FORCE_SINGLE_URL = Setting('FORCE_SINGLE_URL', True, URLS_SET, dict(
17 label = _("Force single url"),
18 help_text = _("Redirect the request in case there is a mismatch between the slug in the url and the actual slug"),
19 required=False))
20