562 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
e6117fbcdf Update TEMPLATES setting for Django 1.8+ 2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
a69f419c3c Make Django urlpatterns list of url()s
- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
a432e16ed7 Use migrate management command instead of syncdb
- syncdb has been deprecated in Django 1.7 in favor of migrate command.

- In Django 1.9 it has been removed.  Django 1.9 has already hit Debian
  unstable.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
61445f8b1a Create initial migration file for Plinth
- To automatically create a schema using syncdb is now deprecated and
  considered legacy.

- Having migrations will help us do schema upgrades in future smoothly.
2015-12-05 09:33:23 -05:00
Ruben Lubbes
59f36e1a87 Added 27 NL strings for 0.7 release. 2015-12-05 14:54:40 +01:00
Sunil Mohan Adapa
404a575aa4 Update latest messages for all locales 2015-12-05 18:15:34 +05:30
Sunil Mohan Adapa
f7b542a697 Update fake translations with latest messages 2015-12-05 18:12:50 +05:30
Sunil Mohan Adapa
f1ed32e9d2 Add POT file to the repository
Some web translation tools work better when a POT file is available.
Commit the initial version of the POT file.  We need to make a practise
of updating the POT file whenever someone makes changes to translatable
string in the code.
2015-12-05 12:13:59 +05:30
Sunil Mohan Adapa
7100429342 tor: Minor fixes
- Be a little bit more strict about Tor tests by requiring the module to
  be importable even when not running as root.
2015-12-04 10:14:47 +05:30
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
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
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
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
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