text improvement

This commit is contained in:
Theophile Terraz committed 2024-08-05 09:55:12 +02:00
1 parent 5e018fc8f0
commit d32baa61a1
4 files changed
+8 -7

No files matched your search

+1 -1
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
+1
View File
@@ -431,6 +431,7 @@ class ProfileXYZ(Profile, SQLSubModel):
area = 0.0 area = 0.0
for line in lines: for line in lines:
if len(line.coords) > 2:
poly = geometry.Polygon(line) poly = geometry.Polygon(line)
area += poly.area area += poly.area
return area return area
+2 -2
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>
+4 -4
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"/>