577 Commits

Author SHA1 Message Date
James Valleroy
aa7593e634 Release 0.7 2015-12-06 14:46:35 -05:00
Sunil Mohan Adapa
196248e7e9 Update remaining translations
- By running ./setup.py update_translations
2015-12-07 00:54:42 +05:30
Sunil Mohan Adapa
fa213b8b06 Update Norwegian Bokmål from Transifex 2015-12-07 00:52:01 +05:30
Sunil Mohan Adapa
98eabd6460 Update Dutch and translate 1 string
- Translation 1 newly introduced string

- Run ./setup update_translations
2015-12-07 00:41:56 +05:30
Sunil Mohan Adapa
bc81471297 Update German translations from Transifex 2015-12-07 00:23:47 +05:30
Sunil Mohan Adapa
ba4efbe015 Create Telugu translation from Transifex 2015-12-07 00:15:09 +05:30
Mikkel Kirkgaard Nielsen
9019adf775 Update Danish (da) translation before 0.7 freeze. 2015-12-06 18:10:59 +05:30
Daniel Steglich
ff412c2af1 network: Fix changing addressing method (GH #307)
When changing the addressing method from manual to automatic, the IP
addresses where removed from connection object without removing the
Gateway property.  This causes a networkmanager error.

Create new SettingIP4Config object to avoid the need to reset all
propertys when changing methods
2015-12-06 18:01:49 +05:30
Sunil Mohan Adapa
3e8a6f553a Minor styling fix 2015-12-06 15:52:14 +05:30
James Valleroy
0695ee5abb tor: Switch to obfs4proxy.
Replaces scramblesuit, and also supports obfs3.
Also add tor-geoipdb which is useful for bridges.
2015-12-06 12:21:22 +05:30
Philippe Baret
05c9acd311 Django FR: 27 new strings translated
100% translated, 100% self proof read.
2015-12-05 17:58:42 +01:00
Sunil Mohan Adapa
34ba546d9d config: Simplify tests
- Using the new configuration module changes meant for easy tests,
  simplify all test cases.

- Reading file is tested separately from find the configuration file.
2015-12-05 09:51:50 -05:00
Sunil Mohan Adapa
bbef41af7a Fix missing option in test configuration
Add danube_edition option to the Misc section of the configuration file.
Without this option, this 'missing section' test case will fail with
'missing option' instead of 'missing section'.  Coupled with the
unpredictable order of reading options, this only happens sometimes.
2015-12-05 09:51:50 -05:00
Sunil Mohan Adapa
a1d5486c82 config: Refactor for easy testing
- Split the read method into two separate methods for getting the config
  file and for reading config file.

- Use logging module for printing error.

- Fix global variable naming.

- Get/set/show the realpath of the config file.

- Convert config items into a list so that the order is more
  predictable.  This is the reason for unpredictable failures in test
  cases.
2015-12-05 09:51:50 -05:00
Sunil Mohan Adapa
db548a4e24 Make migration work for older version upgrades
With the --fake-initial argument to migrate, Django will detect the
existance of initial table with the precondition that the table schema
must be the same as the first migration (it is in this case).

https://docs.djangoproject.com/en/1.8/topics/migrations/#adding-migrations-to-apps
2015-12-05 09:33:23 -05:00
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