From fdb80b8b2e5f231b345adf23d7c5f1dc9ba54008 Mon Sep 17 00:00:00 2001 From: bhabesh <bhabesh.mukhopadhyay@nibio.no> Date: Tue, 14 Apr 2020 10:19:56 +0200 Subject: [PATCH] License text Include license text --- .../alternariamodel/AlternariaModel.java | 2 +- .../model/alternariamodel/texts.properties | 22 ++++++++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java b/src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java index 8bcef03..e0be83a 100644 --- a/src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java +++ b/src/main/java/no/nibio/vips/model/alternariamodel/AlternariaModel.java @@ -215,7 +215,7 @@ public class AlternariaModel extends I18nImpl implements Model{ * * date : Expression date is undefined on line 20, column 19 in Templates/Classes/Code/GeneratedMethodBody. Expression time is undefined on line 20, column 27 in Templates/Classes/Code/GeneratedMethodBody. */ - return "TODO - License Text"; + return this.getText("license", Model.DEFAULT_LANGUAGE); } @Override diff --git a/src/main/resources/no/nibio/vips/model/alternariamodel/texts.properties b/src/main/resources/no/nibio/vips/model/alternariamodel/texts.properties index bbd6651..a75556f 100644 --- a/src/main/resources/no/nibio/vips/model/alternariamodel/texts.properties +++ b/src/main/resources/no/nibio/vips/model/alternariamodel/texts.properties @@ -1,12 +1,12 @@ -# Copyright (c) 2016 NIBIO <http://www.nibio.no/>. +# Copyright (c) 2020 NIBIO <http://www.nibio.no/>. # # This file is part of MamestraBrassicaeModel. -# MamestraBrassicaeModel is free software: you can redistribute it and/or modify +# Altenaria Model is free software: you can redistribute it and/or modify # it under the terms of the NIBIO Open Source License as published by # NIBIO, either version 1 of the License, or (at your option) any # later version. # -# MamestraBrassicaeModel is distributed in the hope that it will be useful, +# Altenaria Model is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # NIBIO Open Source License for more details. @@ -19,3 +19,19 @@ name=TOMCAST (FAST - Dew) model description={{filename="/images/early_blight.jpg" description="Photo: -"}}\n<h3>Description of model</h3>\n<p>TODO</p> statusInterpretation=Early blight are primarily foliar pathogens. It typically appear first on older leaves after fruit set begins. Early bilght causes dark brown leaf spots with concentric rings. \t usage=TODO +license= Copyright (c) 2020 NIBIO <http://www.nibio.no/>. \ +\ +This file is part of Altenaria Model. \ + Altenaria Model is free software: you can redistribute it and/or modify \ + it under the terms of the NIBIO Open Source License as published by \ +NIBIO, either version 1 of the License, or (at your option) any \ +later version. \ +\ +MamestraBrassicaeModel is distributed in the hope that it will be useful, \ +but WITHOUT ANY WARRANTY; without even the implied warranty of \ +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the \ +NIBIO Open Source License for more details. \ +\ +You should have received a copy of the NIBIO Open Source License \ +along with Altenaria Model. If not, see <http://www.nibio.no/licenses/>. + -- GitLab