diff --git a/roughage/locale/nb/LC_MESSAGES/django.po b/roughage/locale/nb/LC_MESSAGES/django.po index 1a7eaf3083b1c18fe6b95f0d077eb401bfe0528f..f11814d613014a3a360e8595b6f8694903b5d2aa 100755 --- a/roughage/locale/nb/LC_MESSAGES/django.po +++ b/roughage/locale/nb/LC_MESSAGES/django.po @@ -3,116 +3,109 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # -#, fuzzy msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-01-05 14:07+0100\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -"Language-Team: LANGUAGE <LL@li.org>\n" -"Language: \n" +"POT-Creation-Date: 2020-06-09 13:00+0200\n" +"PO-Revision-Date: 2020-06-09 13:01+0200\n" +"Language: nb\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Last-Translator: \n" +"Language-Team: \n" +"X-Generator: Poedit 2.0.6\n" -#: templates/roughage/nutrition.html:24 -#: templates/roughage/nutrition.html:26 +#: templates/roughage/nutrition.html:24 templates/roughage/nutrition.html:27 msgid "Roughage nutrition model" msgstr "Grovfôrmodellen" -#: templates/roughage/nutrition.html:59 +#: templates/roughage/nutrition.html:72 msgid "Soil type" msgstr "Jordtype" -#: templates/roughage/nutrition.html:69 +#: templates/roughage/nutrition.html:82 msgid "Clover share" msgstr "Kløverandel" -#: templates/roughage/nutrition.html:79 +#: templates/roughage/nutrition.html:92 msgid "First harvest date" msgstr "Dato førsteslått" -#: templates/roughage/nutrition.html:84 +#: templates/roughage/nutrition.html:97 msgid "Second harvest date" msgstr "Dato andreslått" -#: templates/roughage/nutrition.html:89 -msgid "Run model" -msgstr "Kjør modell" - -#: templates/roughage/nutrition.html:108 +#: templates/roughage/nutrition.html:119 msgid "Use weather scenarios" msgstr "Bruk værscenarier" -#: templates/roughage/nutrition.html:111 +#: templates/roughage/nutrition.html:122 msgid "Mean daily temperature" msgstr "Middeltemperatur pr. døgn" -#: templates/roughage/nutrition.html:120 +#: templates/roughage/nutrition.html:131 msgid "Daily precipitation" msgstr "Nedbør pr. døgn" -#: templates/roughage/nutrition.html:129 +#: templates/roughage/nutrition.html:140 msgid "Daily global radiation" msgstr "Globalstråling pr. døgn" -#: templates/roughage/nutrition.html:143 +#: templates/roughage/nutrition.html:154 msgid "Add artificial watering" msgstr "Legg til vanning" -#: templates/roughage/nutrition.html:193 -#: templates/roughage/nutrition.html:255 +#: templates/roughage/nutrition.html:164 +msgid "Delete matrix contents" +msgstr "Tøm matrise for kalibreringsverdier" + +#: templates/roughage/nutrition.html:212 templates/roughage/nutrition.html:274 msgid "Time of day" msgstr "Klokkeslett" -#: templates/roughage/nutrition.html:205 -#: templates/roughage/nutrition.html:267 +#: templates/roughage/nutrition.html:224 templates/roughage/nutrition.html:286 msgid "Harvest width" msgstr "Slåttebredde" -#: templates/roughage/nutrition.html:212 -#: templates/roughage/nutrition.html:274 +#: templates/roughage/nutrition.html:231 templates/roughage/nutrition.html:293 msgid "Estimated harvest" msgstr "Estimert avling" -#: templates/roughage/nutrition.html:221 -#: templates/roughage/nutrition.html:283 +#: templates/roughage/nutrition.html:240 templates/roughage/nutrition.html:302 msgid "Conditioning" msgstr "Kondisjonering" -#: templates/roughage/nutrition.html:223 -#: templates/roughage/nutrition.html:285 +#: templates/roughage/nutrition.html:242 templates/roughage/nutrition.html:304 msgid "Weak" msgstr "Svak" -#: templates/roughage/nutrition.html:224 -#: templates/roughage/nutrition.html:286 +#: templates/roughage/nutrition.html:243 templates/roughage/nutrition.html:305 msgid "Strong" msgstr "Sterk" -#: templates/roughage/nutrition.html:225 -#: templates/roughage/nutrition.html:287 +#: templates/roughage/nutrition.html:244 templates/roughage/nutrition.html:306 msgid "Crushed" msgstr "Knust" -#: templates/roughage/nutrition.html:232 -#: templates/roughage/nutrition.html:294 +#: templates/roughage/nutrition.html:251 templates/roughage/nutrition.html:313 msgid "String width" msgstr "Strengbredde" -#: templates/roughage/nutrition.html:239 -#: templates/roughage/nutrition.html:301 +#: templates/roughage/nutrition.html:258 templates/roughage/nutrition.html:320 msgid "Estimated dry matter fraction" msgstr "Anslått tørrstoffprosent" -#: templates/roughage/nutrition.html:314 +#: templates/roughage/nutrition.html:332 +msgid "Run model" +msgstr "Kjør modell" + +#: templates/roughage/nutrition.html:336 msgid "Model is running, please wait" msgstr "Modellen kjører, vennligst vent" -#: templates/roughage/nutrition.html:333 +#: templates/roughage/nutrition.html:355 msgid "Results" msgstr "Resultater" - diff --git a/roughage/templates/roughage/nutrition.html b/roughage/templates/roughage/nutrition.html index 7f506f51099af9600182bd42e172064f01a95c65..2b0c48403a9e88b376b916edc25f7e3bb35d95b9 100755 --- a/roughage/templates/roughage/nutrition.html +++ b/roughage/templates/roughage/nutrition.html @@ -160,6 +160,9 @@ og <a href="http://gamlevips.nibio.no/models/mo1004s.jsp?grastype=raigras" target="new">raigras</a>. <a href="/information/12/#grovformodell_kalibrering" target="new">Les mer om kalibrering</a> </p> +<div class="form-group"> + <button type="button" class="btn btn-danger" onclick="emptyCalibrationForStation()">{% trans "Delete matrix contents" %} <span id="modelRunHourGlass"></span></button> +</div> <fieldset> <table id="optimeringstabell" class="table"> <tr> @@ -462,5 +465,24 @@ storeLocalSettings({"calibrationForStation":JSON.stringify(calibrationForStation)}); } }; + + /** + * Removes all calibration values for a station + */ + var emptyCalibrationForStation = function(){ + var theForm = document.getElementById("{{form_id}}"); + var weatherStationId = theForm.weatherStationId.selectedIndex >=0 ? theForm.weatherStationId.options[theForm.weatherStationId.selectedIndex].value : "-1"; + if(weatherStationId != "-1") + { + for(var i=0; i< calibrationFieldNames.length;i++) + { + var key=calibrationFieldNames[i]; + + theForm[key].value = ""; + storeCalibrationForStation(key,""); + } + } + }; + </script> {% endblock %}