1312 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
c985fdae56 Update config form for hostnames and domainnames
- Make minimum length 1 for the fields.

- Write tests.

- Update description to reflect the new conditions.
2015-11-15 10:59:27 +05:30
Joel Valleroy
45fff7057b Allow hyphens in hostname and domainname. Fixes #275. 2015-11-14 17:23:06 -05:00
Sunil Mohan Adapa
86d3d714fc Move missed out nb locale file too 2015-11-14 13:04:42 +05:30
Sunil Mohan Adapa
0b4f56c59d Fix bug in i18n of change password link 2015-11-14 12:05:27 +05:30
Sunil Mohan Adapa
de70396261 Update translations for i18n fixes 2015-11-14 11:43:18 +05:30
Sunil Mohan Adapa
01d50c7ae8 Fix i18n of template expressions 2015-11-14 11:42:32 +05:30
Sunil Mohan Adapa
b84534eaec Create a fake locale translation for testing
To test whether internationalization is done properly, rename this folder
a known non-existing locale.  Set browser to contain that locale and
visit Plinth.  Every string that is i18ned properly will show up in
capitals.  Other strings will show as regular string.
2015-11-13 22:44:46 +05:30
Sunil Mohan Adapa
6483732fa2 Ignore the compiled message files 2015-11-13 22:44:00 +05:30
Sunil Mohan Adapa
8c91d9101b Move .po file to correct location
Django picks up locale files from project directory and application
directories.  Move the locales into project directory.

Also update the po files using 'django-admin makemessages'.
2015-11-13 22:42:04 +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
Sunil Mohan Adapa
02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa
139db064a9 Enable localized numbers and dates 2015-11-13 21:18:37 +05:30
Sunil Mohan Adapa
6c3c863619 Enable switching locale on a per-request basis 2015-11-13 21:18:04 +05:30
Petter Reinholdtsen
86c787feeb Add more nb translations. 2015-11-09 10:08:00 +01:00
Petter Reinholdtsen
8ae7d830ee Start on Norwegian Bokmål translation. 2015-11-08 19:38:40 +01:00
Philippe Baret
36a146b68a Small unique correcion django.po (fr) 2015-11-08 16:09:56 +05:30
Philippe Baret
29b8382c7a Update django.po (self corrections)
next = corrections from debian french translator list
2015-11-08 16:09:56 +05:30
Philippe Baret
a2f82b9437 100% translated
done after 6 hours (with multitasking), no corrections done yet
2015-11-08 16:09:56 +05:30
Philippe Baret
88ba8e34b4 Translation 60% FR local file Django
Done in 3 hours, auto corrections + Debian french translators mailing list corrections to be done
2015-11-08 16:09:56 +05:30
James Valleroy
903a11824e Merge pull request #265 from fonfon/restore
Added reStore module/application
2015-11-04 08:00:55 -05:00
James Valleroy
24418e2469 openvpn: minor fixes 2015-11-04 07:05:27 -05:00
Sunil Mohan Adapa
646763ff3c openvpn: New module VPN into FreedomBox
- Authentication using client certificates.  Extra password based
  authentication for later.

- Auto setup of CA, server and client certificates.

- Provides a .ovpn profile for each user for easy setup.

- Use 4096 bit Diffie-Hellman parameters for better security.  If this
  takes to much time, reduce it to 2048 or 1024, at least during
  debugging.
2015-11-03 20:24:40 -05:00
Sunil Mohan Adapa
52bfb475e8 Return the process for async actions
So that the caller can manage and later look for return status.
2015-11-03 20:24:40 -05:00
Nick Daly
bcb26cc52c Added de, es, fr, it, pt langs. 2015-10-31 15:34:39 -05:00
Sunil Mohan Adapa
20d4d32153 firstboot: Show network diagram at the end
- Fix an issue with not showing message in state 1 (no messages to show
  as of now).

- Provide options to go to Applications or Network configuration page as
  discussed in first boot redesign.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
11bf585025 networks: Show network diagram
- As discussed in the first boot redesign proposal.

- Images are taken from Tango icon set, GNOME icons or created.

- Responsive, works for very small widths also.

- First cut, special cases of network connectivity are not handled.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
96b98fae9f networks: Handle unavailability of device 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8228440319 first_boot: Allow accessing help during first boot 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8fb6e31e9a first_boot: Remove login from account creation 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
26737293e4 first_boot: Reduce the width of administrator form 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
5cd1b7e4b3 first_boot: Remove sidebar in favor of help icon 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
f3a0c70d23 first_boot: Add separate greeting page 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
23eb40fce8 first_boot: Require password confirmation
- Use existing UserCreationForm from auth module.

- Use cleaned data for login.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
62185a5960 first_boot: Don't ask for a new hostname
- Setting a new hostname is not one of the most buring issues to be take
  care of during the setup process.

- Also, most likely the user will access the FreedomBox machine using
  mDNS hostname such as freedombox.local.  Changing the hostname mid
  setup might have consequences that need to thought about properly.
2015-10-28 20:02:56 -04:00
fonfon
125cb88336 Removed cfg.product_name entry and tests
The name 'Plinth' (cfg.product_name) is not used anymore after my previous
commits.
Reason for the complete removal: I do not think that users should know or have
to care about the internal name of the web interface of the FreedomBox.
2015-10-28 19:52:14 -04:00
fonfon
c2bd038ef2 changed description texts in the main landing pages 2015-10-28 19:52:14 -04:00
fonfon
b934668dc5 renamed menu entry 'FreedomBox' to 'Applications' 2015-10-28 19:52:14 -04:00
fonfon
5591047df3 base template: added titles to the main menu 2015-10-28 19:52:14 -04:00
Sunil Mohan Adapa
c318ecd580 Update readme to links to wiki & manual
- Remove repeated links

- Flatten the headings

- Rewrap

- Add links to FreedomBox wiki and FreedomBox manual.
2015-10-23 13:22:58 +05:30
Rich Keyzor
4397c25550 fixes #263 2015-10-22 15:12:24 +01:00
fonfon
fb7841938a reStore: added (empty) tests 2015-10-21 13:15:20 +00:00
fonfon
be325f8879 added reStore module 2015-10-21 11:54:34 +00:00
Sunil Mohan Adapa
705084ef9d datetime: Fix triggering install callback 2015-10-17 21:41:54 -04:00
Sunil Mohan Adapa
2ef22ec1b4 Require library version for GObject introspection
Specify the version of a library before importing it using GObject
introspection.  Mainly to avoid warnings with recent version of
pygobject.  Closes #247.
2015-10-17 21:13:35 -04:00
Sunil Mohan Adapa
4ecc416f3a Remove references to removed TODO file (GH: #245) 2015-10-17 19:33:21 -04:00
fonfon
81e09a1280 networks: increased column size; added TODO 2015-10-14 12:54:21 +00:00
Sunil Mohan Adapa
7170d3db38 networks: Ability to enable/disable without JS
- Avoid using a drop down menu.

- Separate out the status indicator and activate/deactivate button.

- Closes #173.
2015-10-14 12:51:34 +00:00
fonfon
2ab99588ba Merge pull request #252 from SunilMohanAdapa/pagekite-speed
I tested the changes and confirm that everything works as before, only faster :)
2015-10-14 13:33:40 +02:00
Sunil Mohan Adapa
26e312b3f3 Require older version of coverage for Travis build
This patch installs coverage 3.7 instead of latest coverage 4.0 on
Travis before a build. Coverage 4.0 does not support Python 3.2.  Due to
need for system-installed, python-dependency packages and due to Travis
infrastructure using Ubuntu 12.04, we can only build on Python 3.2 in
Travis.
2015-10-13 20:23:46 +05:30
Sunil Mohan Adapa
5ccbd6f35c pagekite: Make Augeas loading narrower and faster 2015-10-12 22:26:14 +05:30