Add --version to command line options

Displays Subsurface and libdivecomputer versions.

Suggested-by: Jef Driesen <jefdriesen@telenet.be>
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add --help command line option

Added a simple usage text on the command line.  Also added a
--verbose alias for completeness.

Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fix a mistake naming for the da_dk alias localisation

The country code is da, not dk.

Suggested-by: Sylvestre Ledru <sylvestre@debian.org>
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Support for aquadivelog UDDF import

This implements limited support for importing dives from a Palm divelog
software called aquadivelog. Basic depth graph is imported but most of
the metadata is currently discarded.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Include more information on Aquadivelog import

This adds information on cylinders and gas changes and some other basic
stuff like buddy, dive site, weights.

Visibility should probably be ignored as UDDF specifies it as meters and
we have a scale of 0-5. But currently it is copied as is to the
visibility field in Subsurface.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Visibility scaling for UDDF import

Visibility is defined in meters in UDDF and we use scale up to 5 stars.
Thus the meters are scaled to our star rating using one-size-fits all
method.

< 1m => 1 star
<= 3m => 2 star
<= 5m => 3 star
<= 10m => 4 star
> 10m => 5 star

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Translation updates

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Turn off https for Mac as well

While this works fine in the install directory I cannot seem to bundle
things in a way that the Subsurface.app is able to https.

Giving up and falling back to http for Mac as well.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add troubleshooting instructions to user manual

Let's cover at least the most common problem (modem manager interfering)
and also have instructions of how to dump debug log from the transfer.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Update Italian translation

(from Transifex so only with my SOB... I'm trying to figure out how to
give the translators correct 'git commit' credits :-) )

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Preparing for 3.1.1 and doc updates

This updates the versions to 3.1.1, does some minor doc cleanup for
consistency and adds the suggestion to submit the output of subsurface
--version in bug reports and the udev rules to blacklist dive computers in
Modem Manager (as suggested by Bearsch).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fixing typos and syntax from User Manual

There was emphasising and bolding instructions in wrong order when
combined. At least on my system this must be started with *+ and ended
with +*. (There was also two cases when the ending was in same
order as starting also spoiling the XML syntax.) These prevented XML
validation thus terminating the compilation of the final documentation.
I fixed also a bunch of typos while at it.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Try to open ZIP files

Let's just give a try to opening ZIP files. Especially since we have one
of them in the test dives directory.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Skip tank volume if not present on UDCF import

Concatenating unit to empty value will give a "Strange volume reading"
error on subsurface (console output) when importing. Getting rid of it.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Vietnamese translation

Pulled from Transifex, so just with my SOB.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Minor documentation update

Signed-off-by: Thomas Maisl <exp-122004@maisl.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>