1357 Commits

Author SHA1 Message Date
James Valleroy
90a1c334fe Skip tor tests unless root. 2015-12-04 09:16:06 +05:30
James Valleroy
66625c35a3 Handle error where /etc/tor/torrc does not exist when checking hidden service config.
Handle error where tor state file does not exist when getting list of ports.

Add test for checking if apt-transport-tor is enabled.
2015-12-04 09:16:06 +05:30
Sunil Mohan Adapa
f2a4ffe394 firewall: Make default zone as 'external'
Set the default firewall zone.  When network connections are configured
outside of FreedomBox/Plinth, they will not be able to serve the Plinth
web interface.  This is because all such interfaces will fall in the
default firewall zone and that is, by default, 'public'.  On 'public'
zone we don't allow Plinth web interface as this zone is not managed.

Configuration of network connections happen outside for
FreedomBox/Plinth for various reasons:

 - Existing network connections before installation of freedombox-setup

 - Connections configured in /etc/network/interfaces

 - Connections manually configured using nmtui

 - Connections created using GUI environments such as GNOME

Rather then clearing out /etc/network/interfaces during setup and
expecting the connections not to be created outside of Plinth, setting
the default firewall zone is a better approach.  This default zone
selection fits with the main purpose of FreedomBox to be a router which
is also reflected by the fact that only 'external'
2015-12-03 18:25:37 -05:00
Sunil Mohan Adapa
5234bffb3b Don't restart webserver unnecessary
Some of the important modules such as php5, cgi and authnz_ldap are
enabled by default in freedombox-setup.  However, when installing
ikiwiki we still restart the apache2 web server.  This patch fixes that
by restart or reloading only when the corresponding module/config/site
is not already in the state required.
2015-12-03 17:55:22 -05:00
Sunil Mohan Adapa
9be80b2483 packages: Fix issue with handling some errors
I got an error when one of the sources in my sources.list is untrusted.
The error code was available as 'gpg-error' and more description was
available.  Our untested code to handle that threw an exception in that
case.  This patch fixes it.  I have tested with the error I got as the
error was easily reproducible.
2015-12-03 17:55:22 -05:00
Sunil Mohan Adapa
8e8f8118c4 Remove trailing whitespaces in locale directory 2015-12-03 09:21:22 +05:30
Sunil Mohan Adapa
dac8e570df Remove incorrect locale 'dk' 2015-12-03 09:20:59 +05:30
Mikkel Kirkgaard Nielsen
944fe9f6d0 Update Danish .po from latest code.
Translate new and updated strings.
Fixes after proofreading and actual testing.
2015-12-03 03:40:01 +01:00
Philippe Baret
e39ec223ac Django.po [DE] updated from Transifex
100% translated, 0% proof read
2015-12-02 11:34:05 +01:00
Philippe Baret
8fa4af671f Update django.po [DA]
Added translated content (100% translated, 0% proof read)
2015-12-01 12:12:45 +01:00
Philippe Baret
63366ba2c6 Update translations for i18n fixes
Denmark po file to be filled.
2015-11-30 18:20:51 +01:00
Philippe Baret
5656a4c9cb Added Django.po for DK
File created and filled with template content
2015-11-30 18:08:39 +01:00
Philippe Baret
e1595582ca Create django.po 2015-11-30 18:06:22 +01:00
Philippe Baret
20b17ec4b9 Added Readme
Info on other platform to double check before starting translation work.
2015-11-29 13:03:44 +01:00
Philippe Baret
ca5f429798 Udate HACKING (## Translations)
Added ## Translations.
## Internationalization needs some updates.
2015-11-29 12:47:37 +01:00
Sunil Mohan Adapa
7cb96b62dd Compile and install translation files
- Add gettext as build dependency

- Add setup.py commands for compiling and updating .po files.

- Clean compiled .mo files on ./setup.py clean

- Install .po and .mo files to destination on ./setup.py install

- Compile .po files when running ./setup.py build

There doesn't seem to be a simple way to integrate Django .po file
dealing with ./setup.py mechanism.
2015-11-28 18:27:56 -05:00
Sunil Mohan Adapa
6fddac4471 Remove link from the FreedomBox logo
- Because having FreedomBox logo and the applications icon both
  redirecting to the same page is confusing.
2015-11-28 17:44:43 -05:00
Sunil Mohan Adapa
803f4ecc94 names: Update icon to not clash with applications 2015-11-28 17:44:43 -05:00
Sunil Mohan Adapa
e507fe163f Use icon for applications button intead of text
The concern that people are unable to find a way to get back to
applications is a correct one.  The recent changes does fix the problem.

However, it takes a step back in the design.  The 'Applications' text is
too prominent.  I propose that we replace it with the commonly used
icon.  Featured in mobile interfaces and on Google home page, users
should have no difficulty identifing it as applications icon.

After experimenting with the placement of the icon, it seems more
asthetically pleasing to have it at the place of 'Applications' text and
not at the center etc.
2015-11-28 17:44:43 -05:00
Philippe Baret
87571c1075 Updated Django FR Po File (local URL for wiki)
FreedomBox Transifex configuration has been edited to allow different URLs
2015-11-28 16:57:28 +01:00
Philippe Baret
8fc7ebcc95 Update Django FR Po file (proof read)
100% transalted, 100% proof read (1 time)
2015-11-27 14:50:19 +01:00
Philippe Baret
198f3453ae Update from Transifex (FR Django po file)
100% translated, need full proof read (360 strings to be done out of 500)
2015-11-27 12:15:47 +01:00
Sunil Mohan Adapa
a0da928dae power: Minor updates
- Change term 'reboot' to 'restart' as it is less techinical and more
  consistent with popular interaces on desktop/mobiles.

- Updated description for power module.

- Simplify the module title to just 'Power'.

- Update the use of elipses and angular quotes as angular quotes and
  elipses are both used to indicate that further user interface will be
  available after pressing the button.

- Remove suprious '\' in power_reboot.html.

- Notify to the user that web interface will not be available after
  reboot/shutdown.

- Redirect the user to application page after restart/shutdown.  If the
  page serve succeeds, they will have simply refresh/access it after
  restart/shutdown after waiting or powering on.
2015-11-27 11:40:09 +05:30
Joel Valleroy
a002ca300c Use POST for reboot/shutdown now 2015-11-26 17:05:34 -05:00
Joel Valleroy
eca36e6f96 add power module with reboot and shut down 2015-11-26 16:29:38 -05:00
Sunil Mohan Adapa
0220cff57c upgrades: Minor fixes
- Show error message based on return code rather than messages in
  stderr.

- Don't decorate the message paragraph with alert color, we are already
  doing that by showing a message at the top.

- Untabify.

- Improve message showing that upgrades are running, gramatically.

- Show errors messages decorated as errors.

- Minor cleanups.
2015-11-26 11:10:59 +05:30
Sunil Mohan Adapa
921f7c8767 upgrades: Make sure error output shows up 2015-11-26 11:05:26 +05:30
James Valleroy
24cd095c6e upgrades: Run as background task (Closes: #285). 2015-11-26 07:53:01 +05:30
Ruben Lubbes
e69189c99c Missing string added 2015-11-26 02:46:22 +01:00
fonfon
1dbc566515 names module, pagekite: moved updating names to utils 2015-11-25 15:22:27 +01:00
James Valleroy
d476326212 Internationalize names module. 2015-11-25 15:22:27 +01:00
James Valleroy
e0bfd1401f Name Services module 2015-11-25 15:22:27 +01:00
Sunil Mohan Adapa
5dfa2d0626 Minor fixes to NL translation 2015-11-25 19:03:38 +05:30
Ruben Lubbes
355bd450ce Added language NL translation 2015-11-25 12:42:07 +01:00
James Valleroy
af6ebff5ca minor styling fix 2015-11-22 11:20:29 -05:00
fonfon
027dd528db Fix KeyError on first run when no language is set 2015-11-22 10:34:58 +01:00
fonfon
aeaa6ab800 Adds a 'language' dropdown field to the system configuration
- The language choice is stored with the session, not persistently
- This removes confirmation messages if nothing was changed
2015-11-18 18:29:54 +01:00
Sunil Mohan Adapa
f8f7a979f2 restore: Fix minor styling issues
- Missing comment added and comment styling.

- Expanded the description.

- Change the title and menu item capitalization for consistency.
2015-11-17 10:15:45 +05:30
Sunil Mohan Adapa
cc181c79c3 Minor styling fixes for domain name validator 2015-11-16 22:00:25 +05:30
Joel Valleroy
e7fb549349 Updated domain name validation and unit tests 2015-11-16 22:00:25 +05:30
Sunil Mohan Adapa
0236bfa9a6 Don't depend on specific python versions in Travis 2015-11-16 09:55:57 +05:30
Sunil Mohan Adapa
9a2feae719 Remove unneeded python3-dbus dependency for Travis 2015-11-16 09:55:57 +05:30
Sunil Mohan Adapa
b6a40a78f4 Install pgi only for Travis 2015-11-16 09:55:57 +05:30
Sunil Mohan Adapa
cc858bbd6a Use pgi only when gi is not available
- Write a convenience utility to handle the import process.
2015-11-16 09:55:20 +05:30
Nik Nyby
608897b9ec Test on python 3.3 and 3.4 with travis
Python 3.2.x is deprecated, so I thought it would be
good to get tests running on some newer pythons. I've
switched from the python3-gi package to using 'pgi' from
pypi, because the apt-installed python3-gi was having trouble
importing.

pgi required python 3.3+ (see: https://pypi.python.org/pypi/pgi),
so I've removed python 3.2 from the test matrix. Let me know if
we're using python 3.2 anywhere, but as far as I know plinth is
run on python 3.4.3 with debian sid on the freedombox image.
2015-11-16 08:44:01 +05:30
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