15 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
74214c18ae
*: Use Django gettext functions instead of ugettext
- ugettext functions will be removed in Django 4.0. Each use emits a warning
when running with Django 3.2. Since we have warnings enabled in developer mode,
we see quite a few messages because of this.

- ugettext is already a simple alias of gettext. So, no regressions are
expected.

Tests:

- Accessing an affected app in UI with Django 3.2 and Django 2.2 works fine.

- Using Django 3.2 there are no warnings related to removal of ugettext
functions.

- Ran regular unit tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2021-09-20 16:50:16 -04:00
Sunil Mohan Adapa
9368504da5
*.py: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:38:55 +02:00
Alice Kile
eb83e00011
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-12-07 13:08:35 -05:00
Veiko Aasa
6cd6742d8f
ikiwiki: Allow full Unicode text in wiki/blog title names
Closes: #1523

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
[sunil@medhas.org Fix issue with enabling shortcuts on daemon start]
[sunil@medhas.org Run isort and yapf]
[sunil@medhas.org Prevent change in i18n string]
[sunil@medhas.org Fix flake8 warning about uniform return values]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-10-08 14:33:36 -07:00
Sunil Mohan Adapa
dea4af17fb
Rename Plinth to FreedomBox in license headers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2018-02-16 20:10:09 -05:00
James Valleroy
758234de7b
ikiwiki: Add help text about name restriction 2016-09-21 12:08:29 -04:00
Hemanth Kumar Veeranki
68046b638b
ikiwiki: Allow only alphanumerics in wiki/blog name 2016-09-21 12:02:23 -04:00
Sunil Mohan Adapa
a0e676c51c
ikiwiki: Use common view for configuration 2016-02-28 19:38:44 +05:30
Caly
15312fe595
Update messages for simplicity/consistency/grammer
- Closes #375 and #380.

- More use of configurable brand name.
2016-01-24 12:14:25 +05:30
Sunil Mohan Adapa
3df1a88824 Switch to Django i18n for code strings
Django i18n layer is on top of gettext and provide may crucial features
such as per-request locales, lazy translations etc.
2015-11-13 22:08:43 +05:30
James Valleroy
6a8fa93477 ikiwiki: Don't redefine built-in type. 2015-05-24 12:50:23 +05:30
Sunil Mohan Adapa
9b674292c8 ikiwiki: Update UI messages and minor refactoring
- In manage page, show a message to create new blog/wiki when there are
  none.

- Elaborate on what gets deleted in delete page.

- Add Ikiwiki in menu item label.  This is in order to allow for other
  Wiki/Blog modules.

- Indentation changes.
2015-04-18 20:59:24 +05:30
James Valleroy
35dcde00de ikiwiki: Create admin account for new wiki/blog. 2015-04-13 20:43:07 +05:30
James Valleroy
1464ff3184 ikiwiki: Create and manage wikis/blogs. 2015-04-13 20:43:07 +05:30
James Valleroy
fbce204180 Add ikiwiki module with initial setup and option to enable site. 2015-04-13 20:43:07 +05:30