Support for imperial depth on worldmap export

This will use the depth units from user preferences when exporting the
worldmap.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2016-01-10 12:12:39 +02:00 committed by Dirk Hohndel
parent 82c87204e4
commit 7701975d98
3 changed files with 27 additions and 3 deletions

View file

@ -40,9 +40,9 @@ void writeMarkers(struct membuffer *b, const bool selected_only)
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Duration:"));
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "min"));
put_duration(b, dive->duration, pre, post);
snprintf(pre, sizeof(pre), "<p>%s ", translate("gettextFromC", "Max. depth:"));
snprintf(post, sizeof(post), " %s</p>", translate("gettextFromC", "m"));
put_depth(b, dive->maxdepth, pre, post);
put_string(b, "<p> ");
put_HTML_quoted(b, translate("gettextFromC", "Max. depth:"));
put_HTML_depth(b, dive, " ", "</p>");
put_string(b, "<p> ");
put_HTML_quoted(b, translate("gettextFromC", "Air temp.:"));
put_HTML_airtemp(b, dive, " ", "</p>");