text improvement

adists_release
Theophile Terraz 2024-08-05 09:55:12 +02:00
parent 5e018fc8f0
commit d32baa61a1
4 changed files with 10 additions and 9 deletions

View File

@ -1334,7 +1334,7 @@ https://gitlab.irstea.fr/theophile.terraz/pamhyr
You can improve or add translation for the project. To contribute to You can improve or add translation for the project. To contribute to
Pamhyr2 translate, you need to use Qt Linguist[fn:qt-linguist]. Open Pamhyr2 translate, you need to use Qt Linguist[fn:qt-linguist]. Open
Qt-linguist and edite the translation ({{{file(.ts)}}}) file, finally, Qt-linguist and edit the translation ({{{file(.ts)}}}) file, finally,
commit the new version of file and make a merge request. commit the new version of file and make a merge request.
If you want add a new language, edit the script If you want add a new language, edit the script

View File

@ -431,8 +431,9 @@ class ProfileXYZ(Profile, SQLSubModel):
area = 0.0 area = 0.0
for line in lines: for line in lines:
poly = geometry.Polygon(line) if len(line.coords) > 2:
area += poly.area poly = geometry.Polygon(line)
area += poly.area
return area return area
return poly.area return poly.area

View File

@ -27,14 +27,14 @@
<item> <item>
<widget class="QPushButton" name="pushButton_generate_1"> <widget class="QPushButton" name="pushButton_generate_1">
<property name="text"> <property name="text">
<string>Generate from height</string> <string>Generate height</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="pushButton_generate_2"> <widget class="QPushButton" name="pushButton_generate_2">
<property name="text"> <property name="text">
<string>Generate from discharge</string> <string>Generate discharge</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -2168,13 +2168,13 @@
</message> </message>
<message> <message>
<location filename="../View/ui/InitialConditions.ui" line="30"/> <location filename="../View/ui/InitialConditions.ui" line="30"/>
<source>Generate from height</source> <source>Generate height</source>
<translation>Générer pour une hauteur donnée</translation> <translation>Générer une hauteur</translation>
</message> </message>
<message> <message>
<location filename="../View/ui/InitialConditions.ui" line="37"/> <location filename="../View/ui/InitialConditions.ui" line="37"/>
<source>Generate from discharge</source> <source>Generate discharge</source>
<translation>Générer pour un débit donné</translation> <translation>Générer un débit</translation>
</message> </message>
<message> <message>
<location filename="../View/ui/InitialConditions.ui" line="98"/> <location filename="../View/ui/InitialConditions.ui" line="98"/>